Example #1
0
 public TileEntityChunk(ChunkCoords coords)
 {
     Coords        = coords;
     TileEntityIDs = new int[TileChunk.Size, TileChunk.Size];
 }
Example #2
0
 public TileChunk(ChunkCoords coords, short[,] baseTiles)
 {
     BaseTiles = baseTiles;
     Coords    = coords;
 }
Example #3
0
 public static void TriggerPassiveTileChunkRequest(ChunkCoords coords)
 {
     Console.WriteLine($"PassiveTileChunkRequest {coords.Cx},{coords.Cy}");
     OnPassiveTileChunkRequest?.Invoke(coords);
 }
Example #4
0
 public static void TriggerTileChunkGenerated(ChunkCoords coords, TileChunk chunk)
 {
     Console.WriteLine($"TileChunkGenerated {coords.Cx},{coords.Cy}");
     OnTileChunkGenerated?.Invoke(coords, chunk);
 }
Example #5
0
 public static void TriggerTileChunkRemoved(ChunkCoords coords)
 {
     Console.WriteLine($"TileChunkRemoved {coords.Cx},{coords.Cy}");
     OnTileChunkRemoved?.Invoke(coords);
 }