public static EngineInstance Start(EngineInstanceStartupParameters startupParameters) { var ipHack = (GameInstanceStartupParameters)StartupParameters; var instance = new EngineInstance(); instance.IPEndpoint = ipHack.IPEndpoint; ipHack = null; instance.StartupParameters = StartupParameters; instance.Task = instance.StartAsync(); return(instance); }
public static EngineInstance Start(EngineInstanceStartupParameters startupParameters) { var instance = new EngineInstance(); try { var ipHack = (GameInstanceStartupParameters)startupParameters; instance.IpEndpoint = ipHack.IpEndpoint; ipHack = null; } catch { }; instance.StartupParameters = startupParameters; instance.Task = instance.StartAsync(); return(instance); }