Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / map / TileCellInfo.cs
@lijincheng lijincheng on 11 Jul 2023 461 bytes 绘制cell功能

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;
}