示例#1
0
文件: World.cs 项目: kaerber/kmud
        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);
        }
示例#2
0
文件: Room.cs 项目: kaerber/kmud
 public void Initialize(TimedEventQueue updateQueue)
 {
     base.Initialize();
     UpdateQueue = new TimedEventQueue(updateQueue);
 }
示例#3
0
 public void Initialize(TimedEventQueue eventQueue)
 {
     base.Initialize();
     UpdateQueue = new TimedEventQueue(eventQueue);
     Rooms.ForEach(room => room.Initialize(UpdateQueue));
 }