import GameServerPacket from "./GameServerPacket" ; export default class RequestActionUse extends GameServerPacket { constructor ( public actionId , public ctrlPressed , public shiftPressed ) { super ( ) ; } write ( ) { this . writeC ( 0x56 ) ; this . writeD ( this . actionId ) ; this . writeD ( this . ctrlPressed ? 1 : 0 ) ; this . writeC ( this . shiftPressed ? 1 : 0 ) ; } }