[Snippet] OnInit

nvm, bad idea, too simple >.<

Tired of making an OnInit module to have onInit in it?

I'm certainly tired of it

JASS:
module OnInit
    private static method onInit takes nothing returns nothing
        call init()
    endmethod
endmodule


Demo
JASS:
struct Hi extends array
    private static method init takes nothing returns nothing
        call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,60,"Hello World")
    endmethod

    implement OnInit
endstruct
 
Top