- Joined
- Oct 11, 2012
- Messages
- 711
Hi, all, what are the differences between the two methods below:
Basically I use the second one, any wrong with it? Thanks a lot.
JASS:
static method create takes nothing returns <Name_of_struct>
local <Name_of_Struct> this = <Name_of_Struct>.allocate()
// do some init stuff
return this
endmethod
JASS:
static method run takes nothing returns boolean
local <Name_of_Struct> this = <Name_of_Struct>.allocate()
// do some init stuff
return false
endmethod
Basically I use the second one, any wrong with it? Thanks a lot.
Last edited: