DayZ 1.24
|
ScriptCallQueue Class provide "lazy" calls - when we don't want to execute function immediately but later during frame update (used mainly in UI)
usage:
More...
Private Member Functions | |
proto native void | Tick (float timeslice) |
executes calls on queue if their time is already elapsed, if 'repeat = false' call is removed from queue | |
proto void | Call (func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL) |
adds call into the queue with given parameters and arguments (arguments are held in memory until the call is executed/removed or ScriptCallQueue is destroyed) | |
proto void | CallByName (Class obj, string fnName, Param params=NULL) |
adds call into the queue with given parameters and arguments (arguments are held in memory until the call is executed/removed or ScriptCallQueue is destroyed) | |
proto void | CallLater (func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL) |
adds call into the queue with given parameters and arguments (arguments are held in memory until the call is executed/removed or ScriptCallQueue is destroyed) | |
proto void | CallLaterByName (Class obj, string fnName, int delay=0, bool repeat=false, Param params=NULL) |
adds call into the queue with given parameters and arguments (arguments are held in memory until the call is executed/removed or ScriptCallQueue is destroyed) | |
proto void | Remove (func fn) |
remove specific call from queue | |
proto int | GetRemainingTime (func fn) |
return Remaining time to the call execution (in miliseconds) | |
proto void | RemoveByName (Class obj, string fnName) |
remove specific call from queue | |
proto int | GetRemainingTimeByName (Class obj, string fnName) |
return Remaining time to the call execution (in miliseconds) | |
proto native void | Clear () |
remove all calls from queue | |
ScriptCallQueue Class provide "lazy" calls - when we don't want to execute function immediately but later during frame update (used mainly in UI)
usage:
|
private |
adds call into the queue with given parameters and arguments (arguments are held in memory until the call is executed/removed or ScriptCallQueue is destroyed)
adds call into the queue with given parameters and arguments (arguments are held in memory until the call is executed/removed or ScriptCallQueue is destroyed)
|
private |
adds call into the queue with given parameters and arguments (arguments are held in memory until the call is executed/removed or ScriptCallQueue is destroyed)
|
private |
adds call into the queue with given parameters and arguments (arguments are held in memory until the call is executed/removed or ScriptCallQueue is destroyed)
return Remaining time to the call execution (in miliseconds)
return Remaining time to the call execution (in miliseconds)
remove specific call from queue
executes calls on queue if their time is already elapsed, if 'repeat = false' call is removed from queue