Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / map / TileCellInfo.cs
@小李xl 小李xl on 16 Jul 2023 459 bytes 保存地图数据

using Godot;

/// <summary>
/// 地图cell属性信息
/// </summary>
public class TileCellInfo
{
    public TileCellInfo(int id, Vector2I autoTileCoord)
    {
        Id = id;
        AutoTileCoord = autoTileCoord;
    }

    /// <summary>
    /// 在TileSet中的图块id
    /// </summary>
    public int Id;
    
    /// <summary>
    /// 如果是图块集, 该属性就表示在图块集的位置
    /// </summary>
    public Vector2I AutoTileCoord;
}