import LoginClientPacket from "./LoginClientPacket" ; import { LoginFailReason } from "../../../enums/LoginFailReason" ; export default class LoginFail extends LoginClientPacket { _securityCard = false ; public FailReason ! : LoginFailReason ; readImpl ( ) { const _id = this . readC ( ) ; const _reason = this . readC ( ) ; if ( _reason === 0x1f ) { this . _securityCard = true ; } else { this . FailReason = _reason as LoginFailReason ; } return true ; } }