示例#1
0
 public World()
 {
     Realm = new Realm();
     Renderer = new RealmRenderer(Realm);
     MapGenerator = new MapGenerator(Realm);
     Requester = new RealmRequester(Realm);
 }
示例#2
0
 public virtual void update(Vector3i Location, Realm world)
 {
     throw new NotImplementedException();
     //if (BlockType.Liquid) {
     //    LiquidUpdated = moveDown(Location - new Vector3i(0, 0, 1), world);
     //    if (Level > 0) {
     //        List<Vector2> Copy = Directions.GetRange(0, Directions.Count);
     //        Copy.Shuffle();
     //        foreach (Vector2 dir in Copy) {
     //            LiquidUpdated |= moveTo(new Vector3i(Location.X + (int)dir.X, Location.Y + (int)dir.Y, Location.Z), world);
     //        }
     //    }
     //} else {
     //    world.RemoveUpdate(Location);
     //}
 }
示例#3
0
 public MapGenerator(Realm realm)
 {
     this.Realm = realm;
 }