rex_fncallpkg
Introduction
Pack function call into a package in JSON string, or call function by this package (string).
User could save this package to call function later, or call function by the package received from network (multiplayer object, or websocket object, ...).
Pack function call into a package in JSON string, or call function by this package (string).
User could save this package to call function later, or call function by the package received from network (multiplayer object, or websocket object, ...).
Get function call package
Get package by "Expression:FnCallPkg", the interface of parameters is the same as "Expression:Call" in official function object,
Get package by "Expression:FnCallPkg", the interface of parameters is the same as "Expression:Call" in official function object,
FnCallPkg( function_name, parameter0, parameter1, ...)
It will return an array in JSON string
[function_name,parameter0,parameter1, ...]
User could create this JSON string manually.
Call function by package
Call "Action:Call function", or "Expression:Call" just like using official function object, the different is, the input parameter is a function call package string.
Call "Action:Call function", or "Expression:Call" just like using official function object, the different is, the input parameter is a function call package string.
Function queue
This plugin could pack a series of function calls into one string, with a queue structure.
This plugin could pack a series of function calls into one string, with a queue structure.
Push function calls into queue
Sample capx
Push function calls follows these steps -
Sample capx
Push function calls follows these steps -
- Call "Action:Clean" to clean the function queue.
- Call "Action:Push" to push the name and parameters of each function call into queue at top or at bottom.
- Get package string of function queue by "Expression:FnQueuePkg".
- Run this package string by "Action:Call function", or "Expression:Call". It could run from top to bottom, or run from bottom to top.
Load function queue from string
"Action:Load" could load queue from string which created by "Expression:FnCallPkg", or "Expression:FnQueuePkg", so that user could append more function calls into queue.
"Action:Load" could load queue from string which created by "Expression:FnCallPkg", or "Expression:FnQueuePkg", so that user could append more function calls into queue.
Reverse function queue
"Action:Reverse" could reverse the function queue.
"Action:Reverse" could reverse the function queue.
Retrieve function queue
"Condition:For each package" could retrieve the function queue to pick function call packages in order. Get function name and parameters by "Expression:CurName" and "Expression:CurParam" of current function call package.
"Condition:For each package" could retrieve the function queue to pick function call packages in order. Get function name and parameters by "Expression:CurName" and "Expression:CurParam" of current function call package.
Overwrite function parameters
Sample capx
Parameters could be overwrote by "Action:Overwrite parameter" or "Action:Add to parameter", It will reset parameter value of the first function call in current function queue. Or call it under "Condition:For each package" to overwrite the parameter value of each function call in current function queue.
Some cases, the parameter value might be determined before execution.
Sample capx
Parameters could be overwrote by "Action:Overwrite parameter" or "Action:Add to parameter", It will reset parameter value of the first function call in current function queue. Or call it under "Condition:For each package" to overwrite the parameter value of each function call in current function queue.
Some cases, the parameter value might be determined before execution.
Assign function object
This plugin will try to find a function object in orderOr assign function object by "Action:Setup callback".
This plugin will try to find a function object in orderOr assign function object by "Action:Setup callback".