ScriptInstance.h File Reference
#include "../AngelScript/ScriptEventListener.h"
#include "../Scene/Component.h"
Include dependency graph for ScriptInstance.h:

Classes

class  Urho3D::ScriptInstance
 Script object component. More...
 

Enumerations

enum  Urho3D::ScriptInstanceMethod {
  METHOD_START = 0, METHOD_STOP, METHOD_DELAYEDSTART, METHOD_UPDATE,
  METHOD_POSTUPDATE, METHOD_FIXEDUPDATE, METHOD_FIXEDPOSTUPDATE, METHOD_LOAD,
  METHOD_SAVE, METHOD_READNETWORKUPDATE, METHOD_WRITENETWORKUPDATE, METHOD_APPLYATTRIBUTES,
  METHOD_TRANSFORMCHANGED, MAX_SCRIPT_METHODS
}
 Inbuilt scripted component methods.
 

Functions

asIScriptContext * Urho3D::GetActiveASContext ()
 Return the active AngelScript context. Provided as a wrapper to the AngelScript API function to avoid undefined symbol error in shared library Urho3D builds.
 
Context * Urho3D::GetScriptContext ()
 Return the Urho3D context of the active AngelScript context.
 
ScriptInstance * Urho3D::GetScriptContextInstance ()
 Return the ScriptInstance of the active AngelScript context.
 
Node * Urho3D::GetScriptContextNode ()
 Return the scene node of the active AngelScript context.
 
Scene * Urho3D::GetScriptContextScene ()
 Return the scene of the active AngelScript context.
 
ScriptEventListener * Urho3D::GetScriptContextEventListener ()
 Return the event listener of the active AngelScript context.
 
Object * Urho3D::GetScriptContextEventListenerObject ()
 Return the event listener of the active AngelScript context as an Object pointer.