Exemple #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);
                }
            }
        }
Exemple #2
0
 public FloorHeightMapMessageComposer(RoomModel Model)
 {
     base.WriteHeader(MessageComposerIds.FloorHeightMapMessageComposer);
     base.Write(Model.ParametersWithDoor);
 }