void RefreshSelfOnly() { chunk.Refresh(); if (Statics) { Statics.ValidateLocation(); } }
void AddCellToChunk(int x, int z, TriCell cell) { int chunkX = x / TriMetrics.chunkSizeX; int chunkZ = z / TriMetrics.chunkSizeZ; TriGridChunk chunk = chunks[chunkX + chunkZ * chunkCountX]; int localX = x - chunkX * TriMetrics.chunkSizeX; int localZ = z - chunkZ * TriMetrics.chunkSizeZ; chunk.AddCell(localX + localZ * TriMetrics.chunkSizeX, cell); chunk.Refresh(); }