格子划分正常

This commit is contained in:
2025-06-15 20:14:45 +08:00
parent c7700419cb
commit bc58a9d0d5
29 changed files with 1546 additions and 107 deletions

View File

@@ -25,7 +25,7 @@ namespace HxGame
private readonly int _index;
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD> <20><><EFBFBD>ƶ<EFBFBD><C6B6><EFBFBD><EFBFBD><EFBFBD><E8B5B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
public MapManager.CellType cellType = MapManager.CellType.Obstacle;
public CellType cellType = CellType.Obstacle;
public int X { get { return _x; } }
public int Y { get { return _y; } }
@@ -55,14 +55,14 @@ namespace HxGame
return new Vector3(x, 0.03f, z);
}
public CellNode(int x, int y, int index, MapManager.CellType type)
public CellNode(int x, int y, int index, CellType type)
{
_x = x;
_y = y;
_index = index;
if (type == MapManager.CellType.Safe)
cellType |= MapManager.CellType.Safe;
if (type == CellType.Safe)
cellType |= CellType.Safe;
else
cellType = type;
}