Class IScriptRunner
Defined in File IJSScriptRunner.h
Class Documentation
-
class IScriptRunner
Interface abstraction of an entity capable of running a script.
This type enforces an interface allowing a call into the CSP script system. The motivation of this type was initially architectural, representing a dependency break between the existing ScriptSystem and other modules that need to invoke script behaviour, (primarily for what is becoming the RealtimeEngine module). For that reason, there are some interface quirks, particularly the script context ID being specifically relevant to the context provided by the current CSP Script System.
CSP’s ScriptSystem fulfils this interface, you may pass it into any methods that require IJSScriptRunner.
- Important
This type is not a true interface, instead having throwing default implementations. This is due to wrapper generator constraints, hopefully temporary ones.