public void Fill(Room Room) { this.Id = Room.RoomId; this.Name = Room.Name; this.Description = Room.Description; this.Type = Room.Type; this.Owner = Room.Owner; this.Category = Room.Category; this.State = Room.State; this.UsersNow = Room.UsersNow; this.UsersMax = Room.UsersMax; this.ModelName = Room.ModelName; this.CCTs = Room.CCTs; this.Score = Room.Score; this.Tags = Room.Tags; this.AllowPet = Room.AllowPet; this.AllowPetsEating = Room.AllowPetsEating; this.AllowWalkthrough = Room.AllowWalkthrough; this.Hidewall = Room.Hidewall; this.Wallthick = Room.Wallthick; this.Floorthick = Room.Floorthick; this.myIcon = Room.myIcon; this.Password = Room.Password; this.Event = Room.Event; this.Wallpaper = Room.Wallpaper; this.Floor = Room.Floor; this.Landscape = Room.Landscape; this.Achievement = Room.Achievement; this.class28_0 = PhoenixEnvironment.GetGame().GetRoomManager().GetModel(ModelName, Id); }
public void FillNull(uint mId) { this.Id = mId; this.Name = "Unknown Room"; this.Description = "-"; this.Type = "private"; this.Owner = "-"; this.Category = 0; this.UsersNow = 0; this.UsersMax = 0; this.ModelName = "NO_MODEL"; this.CCTs = ""; this.Score = 0; this.Tags = new List <string>(); this.AllowPet = true; this.AllowPetsEating = false; this.AllowWalkthrough = true; this.Hidewall = false; this.Wallthick = 0; this.Floorthick = 0; this.Password = ""; this.Wallpaper = "0.0"; this.Floor = "0.0"; this.Landscape = "0.0"; this.Event = null; this.Achievement = 0; this.bool_3 = false; this.myIcon = new RoomIcon(1, 1, new Dictionary <int, int>()); this.class28_0 = PhoenixEnvironment.GetGame().GetRoomManager().GetModel(ModelName, mId); }
public void method_1(DataRow Row) { this.Id = (uint)Row["Id"]; this.Name = (string)Row["caption"]; this.Description = (string)Row["description"]; this.Type = (string)Row["roomtype"]; this.Owner = (string)Row["owner"]; this.Achievement = Convert.ToUInt32(Row["achievement"]); string text = Row["state"].ToString().ToLower(); if (text != null) { if (text == "open") { this.State = 0; goto IL_DF; } if (text == "password") { this.State = 2; goto IL_DF; } if (!(text == "locked")) { } } this.State = 1; IL_DF: this.Category = (int)Row["category"]; this.UsersNow = (int)Row["users_now"]; this.UsersMax = (int)Row["users_max"]; this.ModelName = (string)Row["model_name"]; this.CCTs = (string)Row["public_ccts"]; this.Score = (int)Row["score"]; this.Tags = new List <string>(); this.AllowPet = PhoenixEnvironment.EnumToBool(Row["allow_pets"].ToString()); this.AllowPetsEating = PhoenixEnvironment.EnumToBool(Row["allow_pets_eat"].ToString()); this.AllowWalkthrough = PhoenixEnvironment.EnumToBool(Row["allow_walkthrough"].ToString()); this.bool_3 = false; this.Hidewall = PhoenixEnvironment.EnumToBool(Row["allow_hidewall"].ToString()); this.Wallthick = (int)Row["wallthick"]; this.Floorthick = (int)Row["floorthick"]; this.Password = (string)Row["password"]; this.Wallpaper = (string)Row["wallpaper"]; this.Floor = (string)Row["floor"]; this.Landscape = (string)Row["landscape"]; this.Event = null; Dictionary <int, int> IconItems = new Dictionary <int, int>(); string[] array; if (Row["icon_items"].ToString() != "") { array = Row["icon_items"].ToString().Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { string text2 = array[i]; if (!string.IsNullOrEmpty(text2)) { string[] array2 = text2.Replace('.', ',').Split(new char[] { ',' }); int key = 0; int value = 0; int.TryParse(array2[0], out key); if (array2.Length > 1) { int.TryParse(array2[1], out value); } try { if (!IconItems.ContainsKey(key)) { IconItems.Add(key, value); } } catch (Exception ex) { Logging.LogException(string.Concat(new string[] { "Exception: ", ex.ToString(), "[", text2, "]" })); } } } } this.myIcon = new RoomIcon((int)Row["icon_bg"], (int)Row["icon_fg"], IconItems); array = Row["tags"].ToString().Split(new char[] { ',' }); for (int i = 0; i < array.Length; i++) { string Tag = array[i]; this.Tags.Add(Tag); } this.class28_0 = PhoenixEnvironment.GetGame().GetRoomManager().GetModel(this.ModelName, this.Id); }
private void method_66(bool bool_13) { if (!this.bool_12) { this.bool_12 = true; if (bool_13) { this.mGotRollers = false; if (this.timer_0 != null) { this.bool_6 = true; this.timer_0.Change(-1, -1); } this.method_64(); using (DatabaseClient @class = PhoenixEnvironment.GetDatabase().GetClient()) { @class.ExecuteQuery(string.Concat(new object[] { "UPDATE user_pets SET room_id = 0 WHERE room_id = ", this.Id, " AND NOT user_id = ", PhoenixEnvironment.GetGame().GetClientManager().GetIdByName(this.Owner) })); } this.timer_0.Dispose(); this.timer_0 = null; this.bool_9 = false; if (this.Tags != null) { this.Tags.Clear(); } this.Tags = null; if (this.UserList != null) { Array.Clear(this.UserList, 0, this.UserList.Length); } this.UserList = null; this.class29_0 = null; if (this.UsersWithRights != null) { this.UsersWithRights.Clear(); } this.class29_0 = null; if (this.dictionary_0 != null) { this.dictionary_0.Clear(); } this.dictionary_0 = null; this.Wallpaper = null; this.Floor = null; this.Landscape = null; if (this.mFloorItems != null) { this.mFloorItems.Clear(); } this.mFloorItems = null; if (this.mWallItems != null) { this.mWallItems.Clear(); } this.mWallItems = null; this.MoodlightData = null; if (this.ActiveTrades != null) { this.ActiveTrades.Clear(); } this.ActiveTrades = null; if (this.musicController != null) { this.musicController.UnLinkRoomOutputItem(); } this.musicController = null; } } }
public Room(uint uint_2, string string_10, string string_11, string string_12, string string_13, int int_17, int int_18, int int_19, string string_14, string string_15, int int_20, List<string> list_18, bool bool_13, bool bool_14, bool bool_15, bool bool_16, RoomIcon class29_1, string string_16, string string_17, string string_18, string string_19, RoomData class27_1, bool bool_17, int int_21, int int_22, uint uint_3) { this.bool_12 = false; this.Id = uint_2; this.Name = string_10; this.Description = string_11; this.Owner = string_13; this.Category = int_17; this.Type = string_12; this.State = int_18; this.UsersNow = 0; this.UsersMax = int_19; this.ModelName = string_14; this.CCTs = string_15; this.Score = int_20; this.Tags = list_18; this.AllowPet = bool_13; this.AllowPetsEating = bool_14; this.AllowWalkthrough = bool_15; this.Hidewall = bool_16; this.Wallthick = int_21; this.Floorthick = int_22; this.int_7 = 0; this.UserList = new RoomUser[500]; this.class29_0 = class29_1; this.Password = string_16; this.dictionary_0 = new Dictionary<uint, double>(); this.Event = null; this.Wallpaper = string_17; this.Floor = string_18; this.Landscape = string_19; this.mWallItems = new Hashtable(); this.mFloorItems = new Hashtable(); this.ActiveTrades = new List<Trade>(); this.class28_0 = PhoenixEnvironment.GetGame().GetRoomManager().GetModel(this.ModelName, this.Id); this.bool_6 = false; this.bool_7 = false; this.bool_5 = true; this.mRoomData = class27_1; this.bool_8 = bool_17; this.list_17 = new List<Phoenix.HabboHotel.Groups.Group>(); this.list_4 = new List<uint>(); this.bbTiles = new List<RoomItem>(); this.bbbTiles = new List<RoomItem>(); this.bbgTiles = new List<RoomItem>(); this.bbrTiles = new List<RoomItem>(); this.bbyTiles = new List<RoomItem>(); this.RedScoreboards = new List<RoomItem>(); this.YellowScoreboards = new List<RoomItem>(); this.BlueScoreboards = new List<RoomItem>(); this.GreenScoreboards = new List<RoomItem>(); this.int_10 = 0; this.int_11 = 0; this.int_9 = 0; this.int_12 = 0; this.int_13 = 0; this.StickiePoles = new List<RoomItem>(); this.WF_Triggers = new List<RoomItem>(); this.WF_Effects = new List<RoomItem>(); this.WF_Conditions = new List<RoomItem>(); this.byte_0 = new byte[this.Model.MapSizeX, this.Model.MapSizeY]; this.double_1 = new double[this.Model.MapSizeX, this.Model.MapSizeY]; this.double_2 = new double[this.Model.MapSizeX, this.Model.MapSizeY]; this.timer_0 = new Timer(new TimerCallback(this.method_32), null, 480, 480); this.int_8 = 0; this.RoomMuted = false; this.bool_9 = true; this.mGotRollers = false; this.int_16 = 0; this.int_15 = 4; this.Achievement = uint_3; this.bool_10 = false; this.mRemovedItems = new Hashtable(); this.mMovedItems = new Hashtable(); this.mAddedItems = new Hashtable(); this.method_23(); this.LoadFurniture(); this.GenerateMaps(); }
public void method_1(DataRow Row) { this.Id = (uint)Row["Id"]; this.Name = (string)Row["caption"]; this.Description = (string)Row["description"]; this.Type = (string)Row["roomtype"]; this.Owner = (string)Row["owner"]; this.Achievement = Convert.ToUInt32(Row["achievement"]); string text = Row["state"].ToString().ToLower(); if (text != null) { if (text == "open") { this.State = 0; goto IL_DF; } if (text == "password") { this.State = 2; goto IL_DF; } if (!(text == "locked")) { } } this.State = 1; IL_DF: this.Category = (int)Row["category"]; this.UsersNow = (int)Row["users_now"]; this.UsersMax = (int)Row["users_max"]; this.ModelName = (string)Row["model_name"]; this.CCTs = (string)Row["public_ccts"]; this.Score = (int)Row["score"]; this.Tags = new List<string>(); this.AllowPet = PhoenixEnvironment.EnumToBool(Row["allow_pets"].ToString()); this.AllowPetsEating = PhoenixEnvironment.EnumToBool(Row["allow_pets_eat"].ToString()); this.AllowWalkthrough = PhoenixEnvironment.EnumToBool(Row["allow_walkthrough"].ToString()); this.bool_3 = false; this.Hidewall = PhoenixEnvironment.EnumToBool(Row["allow_hidewall"].ToString()); this.Wallthick = (int)Row["wallthick"]; this.Floorthick = (int)Row["floorthick"]; this.Password = (string)Row["password"]; this.Wallpaper = (string)Row["wallpaper"]; this.Floor = (string)Row["floor"]; this.Landscape = (string)Row["landscape"]; this.Event = null; Dictionary<int, int> IconItems = new Dictionary<int, int>(); string[] array; if (Row["icon_items"].ToString() != "") { array = Row["icon_items"].ToString().Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { string text2 = array[i]; if (!string.IsNullOrEmpty(text2)) { string[] array2 = text2.Replace('.', ',').Split(new char[] { ',' }); int key = 0; int value = 0; int.TryParse(array2[0], out key); if (array2.Length > 1) { int.TryParse(array2[1], out value); } try { if (!IconItems.ContainsKey(key)) { IconItems.Add(key, value); } } catch (Exception ex) { Logging.LogException(string.Concat(new string[] { "Exception: ", ex.ToString(), "[", text2, "]" })); } } } } this.myIcon = new RoomIcon((int)Row["icon_bg"], (int)Row["icon_fg"], IconItems); array = Row["tags"].ToString().Split(new char[] { ',' }); for (int i = 0; i < array.Length; i++) { string Tag = array[i]; this.Tags.Add(Tag); } this.class28_0 = PhoenixEnvironment.GetGame().GetRoomManager().GetModel(this.ModelName, this.Id); }
public void FillNull(uint mId) { this.Id = mId; this.Name = "Unknown Room"; this.Description = "-"; this.Type = "private"; this.Owner = "-"; this.Category = 0; this.UsersNow = 0; this.UsersMax = 0; this.ModelName = "NO_MODEL"; this.CCTs = ""; this.Score = 0; this.Tags = new List<string>(); this.AllowPet = true; this.AllowPetsEating = false; this.AllowWalkthrough = true; this.Hidewall = false; this.Wallthick = 0; this.Floorthick = 0; this.Password = ""; this.Wallpaper = "0.0"; this.Floor = "0.0"; this.Landscape = "0.0"; this.Event = null; this.Achievement = 0; this.bool_3 = false; this.myIcon = new RoomIcon(1, 1, new Dictionary<int, int>()); this.class28_0 = PhoenixEnvironment.GetGame().GetRoomManager().GetModel(ModelName, mId); }