- Add
addProcessors
andaddAssemblages
methods to add lists of elements (#32). - Add an
addComponents
method to add a list of components at once (#31). - Fix event emitting when removing an entity.
- Upgrade some dependencies.
- Revert
getComponentsData
to return an object (entity => component) (#29). [BREAKING]
- Made
getComponentsData
return an actual array (as documented) instead of an object. [BREAKING]
- Fixed a race condition when signaling that a component has been added to an entity.
- Rewrote some loops to use
forEach
, and switchedvar
tolet
orconst
. - Fixed a scope issue when adding multiple components at once.
- Made component properties enumerable (when the EntityManager is instantiated with a listener).
- Emit more events: 'entityCreated', 'entityComponentAdded' and 'entityComponentRemoved'.
- createEntity now accepts an ID, to make synchronization of distant systems possible.
- Upgraded libraries rollup and amdefine to their latest versions.
- Use rollup to compile code (#7).
- Emit an event: 'entityComponentUpdated'.
- Allow a listener to be passed to the constructor of EntityManager.
- Fixed version number (hence the version bump).
- Initial public release.