Class: AxMechanism

AxMechanism()

new AxMechanism()

Creates a base mechanism object. Used to serve as a base for other mechanism implementations. The mechanism is an object, which is used as a variable value and can output various types of data, including but not limited to resources
Source:

Methods

DeserializeChunk(reader) → {Boolean}

Reads the data of a chunk. The chunk header is already read by the reader and this method deserializes the contents of the chunk. Called continuously for each of the resource's chunks. Override to read chunks of resource-specific data
Parameters:
Name Type Description
reader AxHierarchyStreamReader Reader to use for reading the serialized data.
Source:
Returns:
True if a chunk was successfully deserialized
Type
Boolean

Process(deltaTime) → {Boolean}

Performs the routines of the mechanism and returns whether the mechanism should continue to be processed the next frame
Parameters:
Name Type Description
deltaTime Number The time in milliseconds, between the previous and the current call. Used to perform time based routines
Source:
Returns:
True, if the mechanism hasn't finished its job and should continue to be processed in the next frame
Type
Boolean

SerializeChunks(writer)

Writes chunks for all the data which is needed to serialize the resource. Can be overridden by child resources to serialize their implementation-specific data
Parameters:
Name Type Description
writer AxHierarchyStreamWriter Writer to use for writing the serialization data
Source:

Documentation generated by JSDoc 3.5.3 on Mon Feb 19 2018 20:39:26 GMT+0200 (FLE Standard Time)