Class: DatasCommonEvents

DatasCommonEvents

All the battle system datas

new DatasCommonEvents ()

Properties:
Name Type Argument Default Description
DatasCommonEvents.PROPERTY_STOCKED string <optional>
"stocked" The property stocked for reorder function
eventsSystem Array.<SystemEvent> List of all the events system by ID
eventsUser Array.<SystemEvent> List of all the events user by ID
commonReactions Array.<SystemCommonReaction> List of all the common reactions by ID
commonObjects Array.<SystemObject> List of all the common objects by ID

Methods

read () async

Read the JSON file associated to common events

modelReOrder (jsonObject, reorderedList, jsonObjects, objectsLength)

Reorder the models in the right order for inheritance
Name Type Description
jsonObject JSON The json corresponding to the current object to analyze
reorderedList Array.<JSON> The reordered list we are updating
jsonObjects Array.<JSON> The brutal JSON list of objects
objectsLength number The number of objects to identify