public void execute(GameSession gameSession, byte[] bytes) { var read = new LogoutRequest(); read.readCommand(bytes); switch (read.request) { case LogoutRequest.REQUEST_LOGOUT: gameSession.Player.Logout(true); break; case LogoutRequest.ABORT_LOGOUT: gameSession.Player.AbortLogout(); break; } }
public void execute(GameSession gameSession, IByteBuffer buffer) { var cmd = new LogoutRequest(); cmd.readCommand(buffer); switch (cmd.request) { case LogoutRequest.REQUEST_LOGOUT: gameSession.Player.Controller.Miscs.Logout(true); break; case LogoutRequest.ABORT_LOGOUT: gameSession.Player.Controller.Miscs.AbortLogout(); break; } }