dudeim
New Member
- Reaction score
- 22
Hey, I'm currently wanting to use a static method in an interface.
Ex:
So how would I do this?
Ex:
JASS:
interface Stuff
method randomInterfaceMethod takes nothing returns nothing defaults nothing
static method randomStaticInterfaceMethod takes nothing returns nothing defaults nothing //so how is this possible? As this method will be the same for each struct instance it would be pointless to have it as a normal method. I'm using an interface as you don't have to call this method so it's completly optional.
endinterface
struct something extends Stuff
static method randomStaticInterfaceMethod takes nothing returns nothing
//do stuff
endmethod
endstruct
struct somethingelse extends Stuff
method randomInterfaceMethod takes nothing returns nothing
//in this struct i'm not calling the static method only the normal method
endmethod
endstruct
So how would I do this?