You can now give the 'key' component to Entities.
A key will be generated automatically and stored in Entity.key.value.
You can then use this key to fetch the Entity from the World with World:getEntityByKey(key)
The keys are generated with a generator function that can be overriden.
You can remove the component to tell Concord an Entity shouldn't be serialized.
It's given automatically on Entity creation, but this can be disabled by changing Entity.SERIALIZE_BY_DEFAULT to false.
Removed hasName/getName on Systems and Worlds.
Removed Entity.__components since it had a duplicate version of the components stored in the Entity itself.
main changes:
- add parameter and return types where applicable
- use @module and @classmod tags at the top of files
- remove some redundant descriptions of return values, especially for functions that return a boolean
recommended next steps:
- more consistent grammar
- add links to classes and functions in descriptions where appropriate
- be consistent about naming Systems vs. SystemClasses and Components vs. ComponentClasses