private static void InitializePlayerThread() { if (Config.Type != ServerTypes.Game) { return; } player_thread_manager = new TheadHelper(new List <Action>() { () => PlayerManager.Update() }); player_thread_manager.the_thread.Start(); }
private static void InitializeMapThread() { if (Config.Type != ServerTypes.Game) { return; } MapManager.AddConfigMapsToMapManager(); map_thread_manager = new TheadHelper(new List <Action>() { () => MapManager.Update() }); map_thread_manager.the_thread.Start(); }
private static void InitializeMainThread() { main_thread_manager = new TheadHelper(); main_thread_manager.the_thread.Start(); }
private void HostWebService() { TheadHelper.RunThread(WCFGo); }