Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }