import { InPacketBase } from 'packets/in/packet' ; export enum RoomCountdownType { InProgress = 0 , Stop = 1 } class export class InRoomCountdown { public type : RoomCountdownType ; public count : number ; constructor ( inPacket ) { this . type = inPacket . readUInt8 ( ) ; if ( this . type === RoomCountdownType . InProgress ) { this . count = inPacket . readUInt8 ( ) ; } } returns public shouldCountdown ( ) { return this . type === RoomCountdownType . InProgress ; } }