- Joined
- Sep 25, 2005
- Messages
- 71
So, say for instance I had a scope setup which was basically a spell framework. I'm using the constants as a set of toggles for behavior/damage values. I basically want to know if it's possible to have a constant that you can change to the struct of your choice, say if you had a struct setup that creates an AOE Heal when passed parameters, or damage, or has a certain spell effect. The desired coding is such that I can use a constant in the code and declare what struct I'd be using with the constants. Is this possible? I'm pretty sure I can't declare a "private constant struct," but is there some way within code to change
to
and just set which struct up in constants, are at least a way to reference what struct?
JASS:
call structname.create(parameters)
to
JASS:
call CONSTANT_STRUCT.create(parameters)
and just set which struct up in constants, are at least a way to reference what struct?