Exemple #1
0
        private void HandleChangeCharacter(GameSession session)
        {
            session.FieldManager.RemovePlayer(session, session.FieldPlayer);
            DatabaseManager.UpdateCharacter(session.Player);
            AuthData authData = AuthStorage.GetData(session.Player.AccountId);

            session.SendFinal(MigrationPacket.GameToLogin(LoginEndpoint, authData));
        }
Exemple #2
0
        public override void Handle(GameSession session, PacketReader packet)
        {
            byte function = packet.ReadByte();

            if (function == 0)
            {
                session.FieldManager.RemovePlayer(session, session.FieldPlayer);
                AuthData authData = AuthStorage.GetData(session.Player.AccountId);

                session.SendFinal(MigrationPacket.GameToLogin(loginEndpoint, authData));
            }
        }
    private void HandleChangeCharacter(GameSession session)
    {
        session.FieldManager.RemovePlayer(session);

        session.SendFinal(MigrationPacket.GameToLogin(LoginEndpoint, session.Player.Account.AuthData), logoutNotice: true);
    }