-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
In v0.4.0
common.add(entity: EntityRef, componentList: varargs[typed])
common.add(entity: EntityRef, component`gensym107: ComponentTypeClass)
common.fetch(entity: EntityRef, components`gensym88: varargs[typed])
common.fetch(entity: EntityRef, component`gensym88: typedesc)
Workaround when add single component , pass with type; Cannot add with initialize value. When fetch single component, must pass object; I think this is bad to performance.
Remove these should work. I don't know other place that might have this ambiguous function.
polymorph/src/polymorph/statechanges.nim
Lines 817 to 818 in 14dd0d1
| template add*(`entity`: EntityRef, component: ComponentTypeclass) = | |
| `entity`.addComponent component |
polymorph/src/polymorph/statechanges.nim
Lines 1081 to 1082 in 14dd0d1
| template fetch*(`entity`: EntityRef, component: typedesc): auto = | |
| fetchComponent(`entity`, component) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels