Exemplo n.º 1
0
        //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);
        }
Exemplo n.º 2
0
        //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);
        }