예제 #1
0
        public RoomManager()
        {
            Models = new Dictionary<int, RoomModel>();
            Adapters = new Dictionary<int, RoomAdapter>();
            WeakSQLCache = new Dictionary<int, Room>();
            BlockCalculator = new BlockCalculator();
            RoomProgressTimer = new Timer(HandleTimer, RoomProgressTimer, 0, 530);

            foreach (DataRow Row in System.MySQLManager.GetObject(new RoomModelsQuery()).GetOutput<DataTable>().Rows)
            {
                RoomModel Model = new RoomModel(Row);

                if (!Models.ContainsKey(Model.Id))
                {
                    Models.Add(Model.Id, Model);
                }
            }
        }
예제 #2
0
파일: Rooms.cs 프로젝트: devMextur/Tazqon
 public FloorHeightMapMessageComposer(RoomModel Model)
 {
     base.WriteHeader(MessageComposerIds.FloorHeightMapMessageComposer);
     base.Write(Model.ParametersWithDoor);
 }