§ AddScriptCallback()
bool IObjectScriptingInterface::AddScriptCallback |
( |
int |
func_type, |
|
|
const string & |
script_func |
|
) |
| |
|
virtual |
add a new call back handler.
it will override the previous one if any.
- Parameters
-
script_func | format is [filename];[scode] where file name can be any NPL address, scode is a short code sequence to execute. it may has the same format as the GUI event handler. e.g. ";function1()" : calling a global function "(gl)script/character/npc.lua;npc.on_click()" : load script if not loaded before and then calling a global function if this is "", RemoveScriptCallback() will be called. |
§ GetScriptCallback()
return NULL if there is no associated script.
The documentation for this class was generated from the following files:
- Client/trunk/ParaEngineClient/ParaScriptBindings/IObjectScriptingInterface.h
- Client/trunk/ParaEngineClient/ParaScriptBindings/IObjectScriptingInterface.cpp