ForEachChunk() public abstract method

public abstract ForEachChunk ( ChunkIteratorDelegate cmd ) : void
cmd ChunkIteratorDelegate
return void
Esempio n. 1
0
 public virtual void ResetLightingData(ref IMapHandler mh)
 {
     mh.ForEachChunk(delegate(IMapHandler _mh, long X, long Y)
     {
         Chunk c = _mh.GetChunk(X, Y);
         c.UpdateOverview();
         c.SkyLight = new byte[c.Size.X, c.Size.Y, c.Size.Z];
         c.BlockLight = new byte[c.Size.X, c.Size.Y, c.Size.Z];
         _mh.SetChunk(X, Y, c);
     });
 }
Esempio n. 2
0
 public virtual void ResetLightingData(ref IMapHandler mh)
 {
     mh.ForEachChunk(delegate(IMapHandler _mh, long X, long Y)
     {
         Chunk c = _mh.GetChunk(X, Y);
         c.UpdateOverview();
         c.SkyLight   = new byte[c.Size.X, c.Size.Y, c.Size.Z];
         c.BlockLight = new byte[c.Size.X, c.Size.Y, c.Size.Z];
         _mh.SetChunk(X, Y, c);
     });
 }
Esempio n. 3
0
 public virtual void SkylightGlobal(ref IMapHandler mh)
 {
     mh.ForEachChunk(DoSkyLighting);
 }
Esempio n. 4
0
 public virtual void BlocklightGlobal(ref IMapHandler mh)
 {
     mh.ForEachChunk(DoBlockLighting);
 }
Esempio n. 5
0
 public virtual void SkylightGlobal(ref IMapHandler mh)
 {
     mh.ForEachChunk(DoSkyLighting);
 }
Esempio n. 6
0
 public virtual void BlocklightGlobal(ref IMapHandler mh)
 {
     mh.ForEachChunk(DoBlockLighting);
 }