You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
Issue:
In the library when an entity or entity[] is returned, e.g. createEntity function, the return types now are defined as Entity / Entity[]. But in the constructor of World class, one can pass in {entityClass: CustomEntity} to override the default entityClass, in which case all the relevant returned entity should be CustomEntity.
PS:
I like how A-Frame is designed and wished to apply it in a wider use cases and found ecsy. Thanks a lot for bringing this fantastic project! !
The text was updated successfully, but these errors were encountered:
iam-yan
changed the title
entity type should be options.entityClass instead of Entity
function like createEntity should return the entity defined by options.entityClass, not the default Entity.
Jul 18, 2020
Issue:
In the library when an entity or entity[] is returned, e.g. createEntity function, the return types now are defined as Entity / Entity[]. But in the constructor of World class, one can pass in {entityClass: CustomEntity} to override the default entityClass, in which case all the relevant returned entity should be CustomEntity.
PS:
I like how A-Frame is designed and wished to apply it in a wider use cases and found ecsy. Thanks a lot for bringing this fantastic project! !
The text was updated successfully, but these errors were encountered: