- Joined
- Mar 29, 2016
- Messages
- 688
Hello. I want to ask for a way to allocate a specific struct instance that would not conflict with the normal allocation/deallocation method. Basically it does similar to
So I hope you got what I mean. Thanks for those who'll help =)
thistype(instance)
but you know that would cause conflicts from this example.
JASS:
static method someMethod takes nothing returns nothing
local thistype i = thistype(2) //returns instance 2 of thistype
local thistype a = allocate() //allocates instance 1
local thistype b = allocate() //allocates instance 2 - which I intend to be 3
endmethod
So I hope you got what I mean. Thanks for those who'll help =)