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