import { PolusBuffer } from "../../../../util/polusBuffer" ; import { PacketHandler } from "../../../packet" ; export interface CastVoteKickPacket { PlayerClientID : number ; SuspectClientID : number ; } export const CastVoteKick = { parse ( packet ) { return { PlayerClientID : packet . readU32 ( ) , SuspectClientID : packet . readU32 ( ) , } ; } , serialize ( packet ) { var buf = new PolusBuffer ( 8 ) ; buf . writeU32 ( packet . PlayerClientID ) ; buf . writeU32 ( packet . SuspectClientID ) ; return buf ; } , } ;