Пример #1
0
 public World(ChunkSource source)
 {
     TimeFactor = 0.02;
     EntityHandler = new EntityHandler(this);
     Lighting = new LightingEngine(this);
     ChunkCache = new ChunkCache(source, new FlatChunkGenerator(Lighting));
     ChunkPool = new ActiveChunkPool(this, ChunkCache);
 }
Пример #2
0
 public FlatChunkGenerator(LightingEngine lighting)
 {
     this.lighting = lighting;
 }
Пример #3
0
 public LightingUpdate(LightingEngine engine)
 {
     this.engine = engine;
 }