public abstract void ForEachCachedChunk(CachedChunkDelegate cmd);
public override void ForEachCachedChunk(CachedChunkDelegate cmd) { List<Chunk> cl = new List<Chunk>(mChunks.Values); foreach (Chunk c in cl) { cmd(c.Position.X, c.Position.Z, c); } }
public void ForEachCachedChunk(CachedChunkDelegate cmd) { Dictionary<string, Chunk> C = new Dictionary<string, Chunk>(mChunks); foreach (KeyValuePair<string, Chunk> k in C) { cmd(k.Value.Position.X, k.Value.Position.Y, k.Value); } }