Ordered
The Ordered
class represents a collection of tick values and provides methods to change, reset, and insert/update tick values for components.
Example Usage
Methods
changeComponent(id: string, key: string, tick: number): boolean
: Changes the tick value of a component identified by its ID and key. Returns a boolean indicating whether the operation was successful.reset(order: OrderedData = {}): void
: Resets the tick values to the provided order or an empty object.upsertComponent(id: string, key: string, tick: number): boolean
: Inserts or updates the tick value of a component identified by its ID and key. Returns a boolean indicating whether the operation was successful.
Fields
order: OrderedData
: The collection of tick values for components.