namespace  { using ; using ; using †; using System; using System.Collections; using System.Data; internal static class  { private static Hashtable  = new Hashtable(); public static Hashtable  = new Hashtable(); private static int ; public static void (int roomID,  Room) { if (!.ContainsKey(roomID)) { .Add(roomID, Room); Ž.WriteLine(string.Concat(new object[] { "Room [", roomID, ", publicroom: ", Room..ToString().ToLower(), "] loaded." }), Ž..); if (.Count > ) {  = .Count; } } } public static void (int roomID) { if (.ContainsKey(roomID)) { bool flag = (() [roomID]).; .Remove(roomID); (roomID, 0); Ž.WriteLine(string.Concat(new object[] { "Room [", roomID, ", publicroom: ", flag.ToString().ToLower(), "] destroyed." }), Ž..); GC.Collect(); } } public static bool (int roomID) { return .ContainsKey(roomID); } public static  (int roomID) { return () [roomID]; } public static void (int roomID, int visitorCount) { using (“ “ = „..ž()) { “.‰(string.Concat(new object[] { "UPDATE rooms SET visitors_now = '", visitorCount, "' WHERE id = '", roomID, "' LIMIT 1" })); } } public static string (int State) { if (State == 1) { return "closed"; } if (State == 2) { return "password"; } return "open"; } public static int (string State) { if (State == "closed") { return 1; } if (State == "password") { return 2; } return 0; } public static void (int roomID, int itemID, string cctName, string wallPosition, string itemVariable) { (roomID).(string.Concat(new object[] { "AU", itemID, Convert.ToChar(9), cctName, Convert.ToChar(9), " ", wallPosition, Convert.ToChar(9), itemVariable })); } public static void ž() { } public static int peakRoomCount { get { return ; } } public static int roomCount { get { return .Count; } } internal static class ‘ { public static string €(int roomID) { try { DataRow row; using (“ “ = „..ž()) { row = “.Š("SELECT preset_cur,preset_1,preset_2,preset_3 FROM furniture_moodlight WHERE roomid = '" + roomID + "'"); } string str = œ.€(3) + œ.€(Convert.ToInt32(row["preset_cur"])); for (int i = 1; i <= 3; i++) { string[] strArray = row[i].ToString().Split(new char[] { char.Parse(",") }); object obj2 = str; str = string.Concat(new object[] { obj2, œ.€(i), œ.€(int.Parse(strArray[0])), strArray[1], Convert.ToChar(2), œ.€(int.Parse(strArray[2])) }); } return str; } catch { return null; } } public static void (int roomID, bool isEnabled, int presetID, int bgState, string presetColour, int alphaDarkF) { int num; “ “; string str; string str3; using (“ = „..ž()) { num = “.("SELECT id FROM furniture_moodlight WHERE roomid = '" + roomID + "'"); } if (!isEnabled) { string str2; using (“ = „..ž()) { str2 = “.Œ("SELECT var FROM furniture WHERE id = '" + num + "'"); } if (str2.Substring(0, 1) == "2") { str = "1" + str2.Substring(1); } else { str = "2" + str2.Substring(1); } using (“ = „..ž()) { “.‰("UPDATE furniture SET var = '" + str + "' WHERE id = '" + num.ToString() + "' LIMIT 1"); } } else { str = "2," + presetID.ToString() + "," + bgState.ToString() + "," + presetColour + "," + alphaDarkF.ToString(); using (“ = „..ž()) { “.ˆ("var", str); “.ˆ("preset", bgState.ToString() + ", " + presetColour + ", " + alphaDarkF.ToString()); “.‰("UPDATE furniture SET var = @var WHERE id = '" + num.ToString() + "' LIMIT 1"); “.‰("UPDATE furniture_moodlight SET preset_cur = '" + presetID.ToString() + "',preset_" + presetID.ToString() + "= @preset WHERE id = '" + num.ToString() + "' LIMIT 1"); } } using (“ = „..ž()) { str3 = “.Œ("SELECT wallpos FROM furniture WHERE id = '" + num + "'"); } .(roomID, num, "roomdimmer", str3, str); } } } }