Skip to content

Commit

Permalink
Map do Serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
iconstudio committed Oct 2, 2023
1 parent 893bf6c commit 192ec85
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Editor/TestEditor/Contents/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,15 @@ public void SetTilesCount(int h, int v)
[Pure]
public readonly SerializedMap Serialize()
{
throw new NotImplementedException();
return new()
{
Tileset = Tileset.Serialize(),
Name = Name,
Description = Description,
X = X, Y = Y,
W = Width, H = Height,
HorizontalTiles = HorizontalTiles, VerticalTiles = VerticalTiles
};
}
}
}

0 comments on commit 192ec85

Please sign in to comment.