public static ChunkPosition FromTile(TilePosition position)
 {
     return(FromTile(position.X, position.Y));
 }
Example #2
0
 public bool TryGetTile(TilePosition position, out Tile tile)
 {
     return(TryGetTile(position.LocalX, position.LocalY, out tile));
 }
Example #3
0
 public bool TrySetTile(TilePosition position, Tile tile)
 {
     return(TrySetTile(position.LocalX, position.LocalY, tile));
 }
Example #4
0
        public Tile GetTile(TilePosition position)
        {
            int index = position.X + position.Y * Size;

            return(_tiles[index]);
        }
Example #5
0
        public void SetTile(TilePosition position, Tile tile)
        {
            int index = position.X + position.Y * Size;

            SetTile(index, tile);
        }