- Joined
- Apr 27, 2011
- Messages
- 272
This is just a simple set of macros to make the initialization process a bit easier.
How to Install.
1. Create a trigger
2. Copy and paste this code afterwards
sample usage
How to Install.
1. Create a trigger
2. Copy and paste this code afterwards
JASS:
library InitializerUtils
//===========================================================================
//! textmacro initializer
private module defaultM
private static method onInit takes nothing returns nothing
//! endtextmacro
//===========================================================================
//! textmacro endinitializer
endmethod
endmodule
private struct defaultS extends array
implement defaultM
endstruct
//! endtextmacro
//===========================================================================
endlibrary
sample usage
JASS:
scope likeascope
//===========================================================================
//! runtextmacro initializer()
call BJDebugMsg("Hello World!!!:D")
//! runtextmacro endinitializer()
//===========================================================================
endscope
Last edited: