Beispiel #1
0
        public void StopLoginServer()
        {
            isRunning = false;
            server.Update();
            server.Stop();

            foreach (var kp in activeSessions)
            {
                OnPreLoginSessionLogout(kp.Value);
                accountDatabase.UpdateAccount(kp.Value.account);
            }

            activeSessions.Clear();

            OnLoginServerStopped();
        }
Beispiel #2
0
        public void StopManager()
        {
            if (!isManagerActive)
            {
                return;
            }

            localClientId = ushort.MaxValue;

            clientObject.Disconnect();
            serverObject.Stop();

            clientOwners.Clear();
            players.Clear();

            CleanNetworkScene();

            isClient = false;
            isServer = false;
        }