-
-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathObserverSerializer.d.ts
More file actions
14 lines (14 loc) · 771 Bytes
/
ObserverSerializer.d.ts
File metadata and controls
14 lines (14 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { World, ComponentRef } from 'bitecs';
export type ObserverSerializerOptions = {
buffer?: ArrayBuffer;
};
export declare const createObserverSerializer: (world: World, networkedTag: ComponentRef, components: ComponentRef[], options?: ObserverSerializerOptions) => ObserverSerializerFunction;
export type ObserverSerializerFunction = {
(): ArrayBuffer;
getRemovals: () => Set<number>;
};
export type ObserverDeserializerOptions = {
idMap?: Map<number, number>;
};
export declare const createObserverDeserializer: (world: World, networkedTag: ComponentRef, components: ComponentRef[], options?: ObserverDeserializerOptions) => (packet: ArrayBuffer, idMap?: Map<number, number>) => Map<number, number>;
//# sourceMappingURL=ObserverSerializer.d.ts.map