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