Hmm odd, I'm getting a compiler error saying: Expected: create.
I'm using something like:
Jass:
interface myInterface
private static method compare takes thistype value1, thistype value2 returns boolean
endinterface
struct myStruct extends myInterface
static method compare takes thistype value1, thistype value2 returns boolean
return integer(value1) > integer(value2)
endmethod
endstruct
It's showing this error for the interface method. Am I using it in a wrong way? I've looked through some tutorials and couldn't figure out why.
Is it expecting a static create method :/? Because I tried adding that inside both my struct and my interface, the error still pops up.
I know that it's useful to have interfaces as they can set standards for your structs.
Some structs may have different implementations of a specific method then the standard set through the interface, which is why you need to define them inside the struct right?
It's basically something like a parent with children, where the children inherit some of the parents properties and functions unless overridden by the child?