Skip to content

Commit

Permalink
Map would store Tiles in a List<Tile>
Browse files Browse the repository at this point in the history
  • Loading branch information
iconstudio committed Oct 6, 2023
1 parent 0d44949 commit 5518025
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Editor/TestEditor/Contents/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ internal struct Map : IMapEntity<SerializedMap>
{
internal Tileset myTileset;
internal Rectangle myResolution;
internal Tile[] myTiles;
public static Map EmptyMap { get; }

public Tileset Tileset
Expand Down Expand Up @@ -40,7 +39,7 @@ public int Height
{
readonly get => myResolution.Height; set => myResolution.Height = value;
}
public readonly Tile[] Tiles => myTiles;
public List<Tile> Tiles { readonly get; set; }
public int HorizontalTiles { readonly get; set; }
public int VerticalTiles { readonly get; set; }
public readonly bool IsDeserializable => false;
Expand All @@ -65,10 +64,10 @@ public Map(in string name, in Tileset tileset)
{
myResolution = new();
myTileset = tileset;
myTiles = null;

Name = name;
Description = "";
Tiles = new();
HorizontalTiles = 0;
VerticalTiles = 0;
}
Expand Down

0 comments on commit 5518025

Please sign in to comment.