This repository was archived by the owner on Apr 13, 2025. It is now read-only.
This repository was archived by the owner on Apr 13, 2025. It is now read-only.
Why registerComponent? #147
Closed
Description
Looking through the sources I wonder why this method exists?
It is not mentioned in the guides, only the API docs, and its use is not required, as a newly used Component gets auto-registered by the ComponentManager.
But also inside the ComponentManager I see a bit of housekeeping going on:
https://github.com/MozillaReality/ecsy/blob/dev/src/ComponentManager.js#L18-L19
There is the Components
hash, and the numComponents
counter, but it seems both are unused outside of the class, and don't really service a meaningful purpose inside the class, AFAICT. (e.g. the counter is never read from)
So do I miss something, or could this be removed?
Metadata
Metadata
Assignees
Labels
No labels