RigsofRods
Soft-body Physics Simulation
Public Member Functions | Data Fields
RoR::ScriptUnit Struct Reference

Represents a loaded script and all associated resources/handles. More...

#include <ScriptEngine.h>

+ Collaboration diagram for RoR::ScriptUnit:

Public Member Functions

 ScriptUnit ()
 
 ~ScriptUnit ()
 

Data Fields

ScriptUnitId_t uniqueId = SCRIPTUNITID_INVALID
 
ScriptCategory scriptCategory = ScriptCategory::INVALID
 
unsigned int eventMask = 0
 filter mask for script events More...
 
AngelScript::asIScriptModule * scriptModule = nullptr
 
AngelScript::asIScriptFunction * frameStepFunctionPtr = nullptr
 script function pointer to the frameStep function More...
 
AngelScript::asIScriptFunction * eventCallbackFunctionPtr = nullptr
 script function pointer to the event callback function More...
 
AngelScript::asIScriptFunction * eventCallbackExFunctionPtr = nullptr
 script function pointer to the event callback function More...
 
AngelScript::asIScriptFunction * defaultEventCallbackFunctionPtr = nullptr
 script function pointer for spawner events More...
 
ActorPtr associatedActor
 For ScriptCategory::ACTOR. More...
 
Ogre::String scriptName
 
Ogre::String scriptHash
 
Ogre::String scriptBuffer
 

Detailed Description

Represents a loaded script and all associated resources/handles.

Definition at line 69 of file ScriptEngine.h.

Constructor & Destructor Documentation

◆ ScriptUnit()

ScriptUnit::ScriptUnit ( )

Definition at line 78 of file ScriptEngine.cpp.

◆ ~ScriptUnit()

ScriptUnit::~ScriptUnit ( )

Definition at line 83 of file ScriptEngine.cpp.

Field Documentation

◆ associatedActor

ActorPtr RoR::ScriptUnit::associatedActor

For ScriptCategory::ACTOR.

Definition at line 82 of file ScriptEngine.h.

◆ defaultEventCallbackFunctionPtr

AngelScript::asIScriptFunction* RoR::ScriptUnit::defaultEventCallbackFunctionPtr = nullptr

script function pointer for spawner events

Definition at line 81 of file ScriptEngine.h.

◆ eventCallbackExFunctionPtr

AngelScript::asIScriptFunction* RoR::ScriptUnit::eventCallbackExFunctionPtr = nullptr

script function pointer to the event callback function

Definition at line 80 of file ScriptEngine.h.

◆ eventCallbackFunctionPtr

AngelScript::asIScriptFunction* RoR::ScriptUnit::eventCallbackFunctionPtr = nullptr

script function pointer to the event callback function

Definition at line 79 of file ScriptEngine.h.

◆ eventMask

unsigned int RoR::ScriptUnit::eventMask = 0

filter mask for script events

Definition at line 76 of file ScriptEngine.h.

◆ frameStepFunctionPtr

AngelScript::asIScriptFunction* RoR::ScriptUnit::frameStepFunctionPtr = nullptr

script function pointer to the frameStep function

Definition at line 78 of file ScriptEngine.h.

◆ scriptBuffer

Ogre::String RoR::ScriptUnit::scriptBuffer

Definition at line 85 of file ScriptEngine.h.

◆ scriptCategory

ScriptCategory RoR::ScriptUnit::scriptCategory = ScriptCategory::INVALID

Definition at line 75 of file ScriptEngine.h.

◆ scriptHash

Ogre::String RoR::ScriptUnit::scriptHash

Definition at line 84 of file ScriptEngine.h.

◆ scriptModule

AngelScript::asIScriptModule* RoR::ScriptUnit::scriptModule = nullptr

Definition at line 77 of file ScriptEngine.h.

◆ scriptName

Ogre::String RoR::ScriptUnit::scriptName

Definition at line 83 of file ScriptEngine.h.

◆ uniqueId

ScriptUnitId_t RoR::ScriptUnit::uniqueId = SCRIPTUNITID_INVALID

Definition at line 74 of file ScriptEngine.h.


The documentation for this struct was generated from the following files: