Deleted member 219079
D
Deleted member 219079
JASS:
library TimedEffect
imports Alloc
imports TimerUtils
private struct Stack extends array
implement Alloc
effect e
endstruct
private function OnExpire takes nothing returns nothing
local timer t = GetExpiredTimer()
local Stack s = GetTimerData(t)
call DestroyEffect(s.e)
call s.deallocate()
call ReleaseTimer(t)
set t = null
endfunction
function DestroyEffectTimed takes effect e, real delay returns nothing
local Stack s = Stack.allocate()
set s.e = e
call TimerStart(NewTimerEx(s),delay,false,function OnExpire)
endfunction
endlibrary
JASS:
library TimedEffect requires Alloc, TimerUtils
private struct Stack extends array
implement Alloc
effect e
endstruct
private function OnExpire takes nothing returns nothing
local timer t = GetExpiredTimer()
local Stack s = GetTimerData(t)
call DestroyEffect(s.e)
call s.deallocate()
call ReleaseTimer(t)
set t = null
endfunction
function DestroyEffectTimed takes effect e, real delay returns nothing
local Stack s = Stack.allocate()
set s.e = e
call TimerStart(NewTimerEx(s),delay,false,function OnExpire)
endfunction
endlibrary
//! import "(...)\vjassimport\libs\wc3c.Vexorian.TimerUtils.j"
//! import "(...)\vjassimport\libs\thw.Sevion.Alloc.j"
Argumentation: <exe call> <input.j (or multiple, separated with space)> <output.j>
Additional selector examples:
imports thw.Bribe.Table
, imports Bannar.ListT
, imports wc3c.Table
Note:
-Libs - folder has to exist. You are free to delete any library from there to force redownload, or you can replace contents of a file yourself
-Every time that the attempted file is not found, it downloads the resource lists again (as the local ones might be outdated)
-Every import has to be called with "imports" - first, consequential library names are considered as ordinary requirements
Attachments
Last edited by a moderator: