Sup! So you don't know vJass yet?
A quick poll here
What kind of syntax would help you learn it faster?
class MyClass
real x
real y
static thistype create (real x, real y)
local thistype this = thistype.allocate()
set this.x = x
set this.y = y
return this
Notice:
Wurst like design but vJass like syntax.
library myLibrary initializer onInit {
globals {
unit U = CreateUnit(Player(0),'hfoo',0,0,270)
}
function onInit takes nothing returns nothing
call BJDebugMsg(GetUnitName(U))
endfunction
}
Notice:
It's like cJass.
scope MyScope initializer init
globals
private integer array iArr;
endglobals
private function init takes nothing returns nothing
call iArr.push(5);
call iArr.push(12);
call iArr.push(2);
call iArr.push(6);
call BJDebugMsg(I2S(iArr.pop())); // returns 6
call BJDebugMsg(I2S(iArr.pop())); // returns 2
call BJDebugMsg(I2S(iArr.pop())); // returns 12
call BJDebugMsg(I2S(iArr.pop())); // returns 5
endfunction
endscope
Notice:
It has flavours of javascript.
The vanilla vJass with no gimmicks!