/// <summary> /// /// </summary> void LoadingTask( ShooterClient client, string serverInfo ) { try { var world = new MPWorld( client, serverInfo ); World = world; } catch ( Exception e ) { Log.Error("{0}", e.ToString()); throw; } }
/// <summary> /// /// </summary> /// <param name="client"></param> /// <param name="serverInfo"></param> public ShooterLoader( ShooterClient client, string serverInfo ) { loadingTask = new Task( ()=>LoadingTask(client, serverInfo) ); loadingTask.Start(); }