Optional
data: Partial<TokenInterface>Readonly
idOptional
lockedOptional
parentIf the state is not null, return the status of the state. Otherwise, return the status of the ready state
The status of the state.
The function takes in a status and sets the status of the state to the status that was passed in
The status of the current game.
It serializes the object.
value: true
An object with the id, parent, history, and locked properties.
Optional
locked?: booleanOptional
parent?: stringStatic
buildIt creates a new instance of the Token class.
Optional
options: Partial<TokenInterface>The options object that will be passed to the constructor.
A new instance of the Token class.
Static
deserializeIt takes a JSON object and returns a new Token object with the same properties as the JSON object, except that the history property is an array of State objects instead of an array of JSON objects
Token - this is the data that is passed in from the deserialize function.
A new Token object with the data passed in and the history mapped to State objects.
Generated using TypeDoc
It returns the last element of the history array