Exemplo n.º 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();
        }
Exemplo n.º 2
0
        private void Update()
        {
            if (isClient)
            {
                clientObject.Update();
            }

            if (isServer)
            {
                serverObject.Update();
            }
        }