コード例 #1
0
ファイル: Game.cs プロジェクト: ArneVanDaele/GoldenTreeEMU
 public Game(int conns)
 {
     this.ClientManager = new GameClientManager(conns);
     if (GoldTree.GetConfig().data["client.ping.enabled"] == "1")
     {
         this.ClientManager.method_10();
     }
     DateTime arg_45_0 = DateTime.Now;
     Logging.smethod_0("Connecting to database...");
     using (DatabaseClient adapter = GoldTree.GetDatabase().GetClient())
     {
         Logging.WriteLine("completed!");
         GoldTree.Class3_0 = this;
         this.method_17(adapter);
         this.BanManager = new ModerationBanManager();
         this.RoleManager = new RoleManager();
         this.HelpTool = new HelpTool();
         this.Catalog = new Catalog();
         this.Navigator = new Navigator();
         this.ItemManager = new ItemManager();
         this.RoomManager = new RoomManager();
         this.AdvertisementManager = new AdvertisementManager();
         this.PixelManager = new PixelManager();
         this.AchievementManager = new AchievementManager();
         this.ModerationTool = new ModerationTool();
         this.BotManager = new BotManager();
         this.Marketplace = new Marketplace();
         this.QuestManager = new QuestManager();
         this.class8_0 = new GoldTreeEnvironment();
         this.Groups = new Groups();
         GoldTreeEnvironment.smethod_0(adapter);
         this.BanManager.method_0(adapter);
         LicenseTools.String_5 = "FB3A78763D7819F39D79781F6F8DFCCD";
         this.RoleManager.method_0(adapter);
         this.HelpTool.method_0(adapter);
         this.HelpTool.method_3(adapter);
         this.ModerationTool.method_1(adapter);
         this.ModerationTool.method_2(adapter);
         LicenseTools.String_5 = "B8AC48FA7DB791129E59CBA4BC2CC5DD";
         this.ItemManager.method_0(adapter);
         LicenseTools.String_5 = "7866151A40EEB2379D61F640B26ED23B";
         this.Catalog.method_0(adapter);
         this.Catalog.method_1();
         this.Navigator.method_0(adapter);
         LicenseTools.String_5 = LicenseTools.String_6;
         this.RoomManager.method_8(adapter);
         this.RoomManager.method_0();
         this.class276_0 = new NavigatorCache();
         this.AdvertisementManager.method_0(adapter);
         this.BotManager.method_0(adapter);
         LicenseTools.String_5 = LicenseTools.String_3;
         LicenseTools.String_5 = LicenseTools.String_6.Length.ToString();
         AchievementManager.smethod_0(adapter);
         this.PixelManager.method_0();
         ChatCommandHandler.smethod_0(adapter);
         LicenseTools.String_5 = LicenseTools.String_3.Length.ToString();
         this.QuestManager.method_0();
         Groups.smethod_0(adapter);
         this.method_0(adapter, 1);
     }
     this.task_0 = new Task(new Action(LowPriorityWorker.smethod_0));
     this.task_0.Start();
 }
コード例 #2
0
ファイル: Game.cs プロジェクト: ArneVanDaele/GoldenTreeEMU
 public void ContinueLoading()
 {
     if (this.task_0 != null)
     {
         this.task_0 = null;
     }
     using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
     {
         this.method_0(@class, 0);
     }
     if (this.GetClientManager() != null)
     {
         this.GetClientManager().method_6();
         this.GetClientManager().method_11();
     }
     if (this.GetPixelManager() != null)
     {
         this.PixelManager.KeepAlive = false;
     }
     this.ClientManager = null;
     this.BanManager = null;
     this.RoleManager = null;
     this.HelpTool = null;
     this.Catalog = null;
     this.Navigator = null;
     this.ItemManager = null;
     this.RoomManager = null;
     this.AdvertisementManager = null;
     this.PixelManager = null;
 }