Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / map / TileCellData.cs
@小李xl 小李xl on 15 Dec 2023 478 bytes 鼠标右键选择图块功能, 开发中
  1.  
  2. using Godot;
  3.  
  4. /// <summary>
  5. /// 地图cell属性信息
  6. /// </summary>
  7. public class TileCellData
  8. {
  9. public TileCellData(int id, Vector2I autoTileCoord)
  10. {
  11. Id = id;
  12. AutoTileCoord = autoTileCoord;
  13. }
  14.  
  15. /// <summary>
  16. /// 在TileSet中的图块id, 也就是sourceId
  17. /// </summary>
  18. public int Id;
  19. /// <summary>
  20. /// 如果是图块集, 该属性就表示在图块集的位置
  21. /// </summary>
  22. public Vector2I AutoTileCoord;
  23. }