Inheritance diagram for mortic::IScriptManager:
Public Member Functions | |
IScriptManager (IRoot *root) | |
Constructor. | |
virtual | ~IScriptManager () |
Destructor. | |
virtual IScript * | createScript (std::string filename)=0 |
Load a script from file. | |
virtual IScript * | createScriptFromString (std::string script)=0 |
Load a script from string. |
Mortic has python functionality built-in, and this is how you access it. This class loads scripts from file and from string, and allows you to execute them in their own private namespace, so to avoid name collisions. This system is suprisingly simple, yet powerful.
Definition at line 126 of file IScriptManager.h.
|
Constructor.
Definition at line 130 of file IScriptManager.h. |
|
Destructor.
Definition at line 133 of file IScriptManager.h. |
|
Load a script from file. This function loads a script to run from file.
|
|
Load a script from string. This function loads the string given just like a file.
|