As EntityComponents are Singletons I can’t add multiple instances of the same component to an entity. I don’t feel comfortable when abusing a component holding a list/array and re-copying everything when a single effect changes.
I know the whole API isn’t meant for having multiple instances, so is there some other clever way to do this?
Why: I have an
InfluenceStatsComponent which is like
additive, intelligence, 10, so
int + 10. But what if the same buff also increases your strength by 30%?
multiplicative, strength, 1.3?
The only thing I could imagine is using some kind of collection or array.