//Constructor public WorldManager(Random r) { worldPrototypes = new Dictionary<string, WorldConfig>(); random = r; worldFactory = new WorldFactory(r); worldTree = new Tree<World>(); curLevel = 1; Actor.Spawn += new EventHandler<SpawnEventArgs>(Actor_Spawn); }
//Constructor public WorldManager(Random r) { worldPrototypes = new Dictionary <string, WorldConfig>(); random = r; worldFactory = new WorldFactory(r); worldTree = new Tree <World>(); curLevel = 1; Actor.Use += new EventHandler <EventArgs>(Actor_Use); Actor.Spawn += new EventHandler <SpawnEventArgs>(Actor_Spawn); }