- Joined
- Aug 26, 2010
- Messages
- 573
Is it fully compatible to vJASS? I tried to save my map and it writes shit there.
end
as alternative to endfunction
, endmethod
, endloop
, etc.call TimerStart(..., function takes nothing returns nothing
local timer expiredTimer = GetExpiredTimer()
// ...
endfunction)
function foo takes nothing returns nothing
call TimerStart(...)
if (...) then
// ...
endif
local unit bar = CreateUnit(...)
endfunction
local integer i = 5
set i += 5 // same as set i = i + 5
set i -= 5 // same as set i = i - 5
set i *= 5 // same as set i = i * 5
set i /= 5 // same as set i = i / 5
while (true)
if (shouldSkipThisIteration) then
continue // not implemented... yet
endif
// ...
if (isOver) then
break // same as exitwhen true
endif
endwhile
local unit u = null
if (u) then
// unit isn't null
else
// unit is null
endif
local MyCustomStruct instance = ...
if (instance) then
// instance exists (allocated)
else
// instance does not exists (not-allocated)
endif