using System.Drawing; using Milimoe.FunGame.Core.Entity; namespace Milimoe.FunGame.Core.Library.Common.Addon { public class Grid(int id, int x, int y, int z) { /// /// 空格子 /// public static Grid Empty { get; } = new Grid(-1, 0, 0, 0); /// /// 格子编号 /// public int Id { get; } = id; /// /// 格子在地图中的x坐标 /// public int X { get; } = x; /// /// 格子在地图中的y坐标 /// public int Y { get; } = y; /// /// 格子在地图中的z坐标 /// public int Z { get; } = z; /// /// 是谁站在这格子上? /// public HashSet Characters { get; set; } = []; /// /// 此格子目前受到了什么影响? /// public HashSet Effects { get; set; } = []; /// /// 此格子呈现的颜色(默认为 ) /// public Color Color { get; set; } = Color.Gray; } }