Vexorian
Why no custom sig?
- Reaction score
- 187
Yeah well, that's an excuse rather than a reason. Globals are useless.
If I was your user, assuming you are making a projectile system, I would like sometimes to make a spell in which a unit throws grenades to a target point for 30 seconds, on impact a grenade does damage and perhaps something. Multi instancibility demands that every grenade keeps its own data, also, every grenade requires at least 2 data fields, unit of origin and level of the spell...
But I made spells in which I even needed 10 different fields...
Passing globals to the user was not that good even in pre-vJass era, right now it looks like quite a bad thing to do since you can pass arguments now...
Edit: If you still don't want interfaces, make sure to at least give users a chance to specify their own integer field , and lamely pass such field with your globals...
If I was your user, assuming you are making a projectile system, I would like sometimes to make a spell in which a unit throws grenades to a target point for 30 seconds, on impact a grenade does damage and perhaps something. Multi instancibility demands that every grenade keeps its own data, also, every grenade requires at least 2 data fields, unit of origin and level of the spell...
But I made spells in which I even needed 10 different fields...
Passing globals to the user was not that good even in pre-vJass era, right now it looks like quite a bad thing to do since you can pass arguments now...
Edit: If you still don't want interfaces, make sure to at least give users a chance to specify their own integer field , and lamely pass such field with your globals...