import { PolusBuffer } from "../../../../util/polusBuffer" ; import { PacketHandler } from "../../../packet" ; export interface CheckNamePacket { Name : string ; } export const CheckName = { parse ( packet ) { return { Name : packet . readString ( ) } ; } , serialize ( packet ) { var buf = new PolusBuffer ( ) ; buf . writeString ( packet . Name ) ; return buf ; } , } ;