import { PolusBuffer } from "../util/polusBuffer" ; import { DisconnectReason } from "./packetElements/disconnectReason" ; import { Room } from "../util/room" ; import { PacketHandler } from "./packet" ; export interface DisconnectPacket { DisconnectReason : DisconnectReason ; } export const Disconnect = { parse ( packet , room ) { return { DisconnectReason : new DisconnectReason ( packet , room ) } ; } , serialize ( packet ) { return packet . DisconnectReason . serialize ( ) ; } , } ;