import { PolusBuffer } from "../../../../util/polusBuffer" ; import { Room } from "../../../../util/room" ; import { PacketHandler } from "../../../packet" ; import { RoomSettings } from "../../../packetElements/roomSettings" ; export interface SyncSettingsPacket { RoomSettings : RoomSettings ; } export const SyncSettings = { parse ( packet , room ) { let rs = new RoomSettings ( room ) ; rs . parse ( packet ) ; return { RoomSettings : rs } ; } , serialize ( packet ) { return packet . RoomSettings . serialize ( ) ; } , } ;