UNPKG

@colyseus/core

Version:

Multiplayer Framework for Node.js.

9 lines (8 loc) 259 B
import type { Client } from '../Transport.ts'; export interface Serializer<T> { id: string; reset(data: any): void; getFullState(client?: Client): Uint8Array; applyPatches(clients: Client[], state: T): boolean; handshake?(): Uint8Array; }