Ejemplo n.º 1
0
        public World(IManager <Area> areaManager, Clock clock)
        {
            _areaManager = areaManager;
            _clock       = clock;

            Areas = new List <Area>();
            Rooms = new Dictionary <string, Room>();
            Mobs  = new Dictionary <string, Character>();
            Items = new Dictionary <string, Item>();

            _updateQueue = new TimedEventQueue(null);

            InitClock(_clock);
        }
Ejemplo n.º 2
0
Archivo: Room.cs Proyecto: kaerber/kmud
 public void Initialize(TimedEventQueue updateQueue)
 {
     base.Initialize();
     UpdateQueue = new TimedEventQueue(updateQueue);
 }
Ejemplo n.º 3
0
 public void Initialize(TimedEventQueue eventQueue)
 {
     base.Initialize();
     UpdateQueue = new TimedEventQueue(eventQueue);
     Rooms.ForEach(room => room.Initialize(UpdateQueue));
 }