コード例 #1
0
    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();
    }
コード例 #2
0
    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();
    }
コード例 #3
0
 private static void InitializeMainThread()
 {
     main_thread_manager = new TheadHelper();
     main_thread_manager.the_thread.Start();
 }
コード例 #4
0
 private void HostWebService()
 {
     TheadHelper.RunThread(WCFGo);
 }