Ejemplo n.º 1
0
        public static void InvokeOnLoadWorkEnded_Postfix()
        {
            if (GameStatesManager.DuringReconnect)
            {
                string ip = "127.0.0.1:8469";
                if (Config.Options.RememberLastIP && !string.IsNullOrWhiteSpace(Config.Options.LastIP))
                {
                    ip = Config.Options.LastIP;
                }

                string password = "";
                if (Config.Options.RememberLastClientPassword && !string.IsNullOrWhiteSpace(Config.Options.LastClientPassword))
                {
                    password = Config.Options.LastClientPassword;
                }

                UIMainMenu_Patch.JoinGame(ip, password);
                GameStatesManager.DuringReconnect = false;
            }

            if (Multiplayer.IsDedicated)
            {
                NebulaPlugin.StartDedicatedServer(NebulaWorld.GameStates.GameStatesManager.ImportedSaveName);
            }
        }
Ejemplo n.º 2
0
        public static void InvokeOnLoadWorkEnded_Postfix()
        {
            if (GameStatesManager.DuringReconnect)
            {
                string ip = "127.0.0.1:8469";
                if (Config.Options.RememberLastIP && !string.IsNullOrWhiteSpace(Config.Options.LastIP))
                {
                    ip = Config.Options.LastIP;
                }

                UIMainMenu_Patch.JoinGame(ip);
                GameStatesManager.DuringReconnect = false;
            }
        }