Trollvottel
never aging title
- Reaction score
- 262
its seems that i cant attach code-variables to structs, because no code-array is allowed. any way to do this?
A particular reason for not using function interfaces?
function Ball_Bnc takes BounceEvent BE returns nothing
call BE.O.Accelerate(0,0,2*BE.O.Speed.Z)
call SetUnitVertexColor(BE.O.Unit,255,255,255,0)
endfunction
A particular reason for not using function interfaces?
but why should i do it so complicated if i just can create a trigger array, add the condition and evaluate the trigger?
Not buying it.Function interfaces have ugly syntax in vJass, so they kind of fail in their purpose to be syntax sugar.
For your application it would be a capital sin not to use interfaces, your users are most likely going to need to specifiy data as well, not just a function.