CallQueue Class provide "lazy" calls - when we don't want to execute function immediately but later during frame update (used mainly in UI)
usage:
More...
|
void | CallQueue () |
|
void | Tick () |
| System function, don't call it.
|
|
void | Call (Class obj, string fn_name, Param params=NULL) |
| Creates new call request, add it on queue and execute during frame update (depends on call category)
|
|
void | RemoveCalls (Class obj) |
| Removes all queued calls for object (call this function when object is going to be deleted)
|
|
CallQueue Class provide "lazy" calls - when we don't want to execute function immediately but later during frame update (used mainly in UI)
usage:
override ScriptCallQueue GetCallQueue(int call_category)
Definition DayZGame.c:1187
Definition PPEConstants.c:68
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 ...
proto native CGame GetGame()
◆ Call()
Creates new call request, add it on queue and execute during frame update (depends on call category)
- Parameters
-
obj | target object on which function will be executed |
fn_name | name of function (on object "obj") which will be executed |
params | function arguments see Param for usage, default NULL (no arguments) |
- Warning
- When object "obj" is deleted prior call execution, don't forget to remove calls for this object with RemoveCalls
◆ CallQueue()
◆ RemoveCalls()
void RemoveCalls |
( |
Class |
obj | ) |
|
|
inlineprivate |
◆ Tick()
◆ m_processing
private bool m_processing |
|
private |
The documentation for this class was generated from the following file: