Quantum 3
3.1.0
Collects component registrations before ids exist, then Commit assigns dense ids deterministically: explicit ids claim their slots, the rest fill the remaining slots sorted by type name. Ids depend only on the set of collected components, never on the order they were added in, so registrations may be spread across partial declarations whose initializer order is unspecified. More...
Public Member Functions | |
| void | Commit () |
| Resets ComponentTypeId to fit all collected components, registers the built-in components and then assigns ids and registers the collected ones. More... | |
| ComponentRegistry | Register< T > (ComponentSerializeDelegate serialize, ComponentChangedDelegate onAdded, ComponentChangedDelegate onRemoved, ComponentFlags flags=ComponentFlags.None) |
| Collect a component; its id gets assigned in Commit. Returns the registry so registrations can be chained. More... | |
| ComponentRegistry | Register< T > (int explicitId, ComponentSerializeDelegate serialize, ComponentChangedDelegate onAdded, ComponentChangedDelegate onRemoved, ComponentFlags flags=ComponentFlags.None) |
| Collect a component pinned to an explicit id. More... | |
Collects component registrations before ids exist, then Commit assigns dense ids deterministically: explicit ids claim their slots, the rest fill the remaining slots sorted by type name. Ids depend only on the set of collected components, never on the order they were added in, so registrations may be spread across partial declarations whose initializer order is unspecified.
|
inline |
Collect a component; its id gets assigned in Commit. Returns the registry so registrations can be chained.
| T | : | unmanaged | |
| T | : | IComponent |
|
inline |
Collect a component pinned to an explicit id.
| T | : | unmanaged | |
| T | : | IComponent |
|
inline |
Resets ComponentTypeId to fit all collected components, registers the built-in components and then assigns ids and registers the collected ones.