RigsofRods
Soft-body Physics Simulation
script_callbacks.h
Go to the documentation of this file.
1 
2 namespace Game2Script {
3 
15 void main();
16 
20 void frameStep(float dt);
21 
26 void eventCallback(Script2Game::scriptEvents event, int param);
27 
33 void eventCallbackEx(Script2Game::scriptEvents event, int arg1, int arg2ex, int arg3ex, int arg4ex, string arg5ex, string arg6ex, string arg7ex, string arg8ex);
34 
43 void defaultEventCallback(int trigger_type, string inst, string box, int nodeid);
44  //addtogroup Game2Script //addtogroup ScriptSideAPIs
47 
48 } // namespace Game2Script
Game2Script::main
void main()
Required; Script setup function - invoked once when script is loaded.
Game2Script::frameStep
void frameStep(float dt)
Optional; Script update function - invoked once every rendered frame.
Game2Script::eventCallbackEx
void eventCallbackEx(Script2Game::scriptEvents event, int arg1, int arg2ex, int arg3ex, int arg4ex, string arg5ex, string arg6ex, string arg7ex, string arg8ex)
Optional; if present, will be used instead of Game2Script::eventCallback().
Game2Script::defaultEventCallback
void defaultEventCallback(int trigger_type, string inst, string box, int nodeid)
OBSOLETE, ONLY WORKS WITH TERRAIN SCRIPTS - Use eventCallbackEx() with event SE_EVENTBOX_ENTER instea...
Game2Script
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.
Definition: script_callbacks.h:2
Script2Game::scriptEvents
scriptEvents
Binding of RoR::scriptEvents; All the events that can be used by the script.
Definition: globals.h:46
Game2Script::eventCallback
void eventCallback(Script2Game::scriptEvents event, int param)
Optional; Invoked if a registered event is triggered, see GameScriptClass::registerForEvent().