@tamgl/colyseus-schema
Version:
Binary state serializer with delta encoding for games
33 lines (32 loc) • 1.18 kB
TypeScript
export declare const $track: unique symbol;
export declare const $encoder: unique symbol;
export declare const $decoder: unique symbol;
export declare const $filter: unique symbol;
export declare const $getByIndex: unique symbol;
export declare const $deleteByIndex: unique symbol;
/**
* Used to hold ChangeTree instances whitin the structures
*/
export declare const $changes: unique symbol;
/**
* Used to keep track of the type of the child elements of a collection
* (MapSchema, ArraySchema, etc.)
*/
export declare const $childType: unique symbol;
/**
* Optional "discard" method for custom types (ArraySchema)
* (Discards changes for next serialization)
*/
export declare const $onEncodeEnd: unique symbol;
/**
* When decoding, this method is called after the instance is fully decoded
*/
export declare const $onDecodeEnd: unique symbol;
/**
* Metadata
*/
export declare const $descriptors: unique symbol;
export declare const $numFields = "$__numFields";
export declare const $refTypeFieldIndexes = "$__refTypeFieldIndexes";
export declare const $viewFieldIndexes = "$__viewFieldIndexes";
export declare const $fieldIndexesByViewTag = "$__fieldIndexesByViewTag";