- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
I think I saw this somewhere in the forums but someone had written
Is this legal? What is the right way to override the struct.create() method (e.g. general syntax, restrictions?). Can .create() take any parameters?
Thank you.
I think I saw this somewhere in the forums but someone had written
static method create takes nothing returns struct
or something like that, which inside had code that initialized the values of the struct. Is this legal? What is the right way to override the struct.create() method (e.g. general syntax, restrictions?). Can .create() take any parameters?
JASS:
struct myStruct
...
static method create takes ... returns myStruct
...
endmethod
...
endstruct
Thank you.