import { PacketId , PacketSignature } from 'packets/definitions' ; class export class PacketBaseShared { public static headerLength = 4 ; public signature : number ; public sequence : number ; public length : number ; public id : PacketId ; returns public isValid ( ) { return this . signature === PacketSignature ; } }