コード例 #1
0
 public static void EnableAsyncTasks(this ICoreClientAPI api)
 {
     api.Event.LevelFinalize += () =>
     {
         if (!api.IsClientSystemLoaded <ClientSystemAsyncActions>())
         {
             api.InjectClientThread("AsyncActions", new ClientSystemAsyncActions(api.AsClientMain()));
         }
     };
 }