UNPKG

@colyseus/core

Version:

Multiplayer Framework for Node.js.

8 lines (7 loc) 414 B
{ "version": 3, "sources": ["../../src/serializer/Serializer.ts"], "sourcesContent": ["import type { Client } from '../Transport.ts';\n\nexport interface Serializer<T> {\n id: string;\n reset(data: any): void;\n getFullState(client?: Client): Uint8Array;\n applyPatches(clients: Client[], state: T): boolean;\n handshake?(): Uint8Array;\n}"], "mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;", "names": [] }