Catos Engine (Source) 0.0.1
Lightweight Game engine
Loading...
Searching...
No Matches
catos::ScriptingEngine Class Reference

#include <ScriptingEngine.h>

Public Member Functions

 ScriptingEngine ()
 
 ~ScriptingEngine ()
 
void registerNewScript (const catos::string &pathToPythonFile)
 
void startScripts ()
 
void updateScripts ()
 
void endScripts ()
 
template<class T >
void registerClass (const char *name)
 
template<typename T , typename U >
void registerProperty (const char *name, U T::*ptr)
 
template<class T , typename U >
void registerMethod (const char *name, U T::*ptr)
 

Static Public Member Functions

static ScriptingEnginegetInstance ()
 singleton :D
 

Friends

class Registry
 

Constructor & Destructor Documentation

◆ ScriptingEngine()

catos::ScriptingEngine::ScriptingEngine ( )

◆ ~ScriptingEngine()

catos::ScriptingEngine::~ScriptingEngine ( )

Member Function Documentation

◆ endScripts()

void catos::ScriptingEngine::endScripts ( )

◆ getInstance()

catos::ScriptingEngine & catos::ScriptingEngine::getInstance ( )
static

singleton :D

◆ registerClass()

template<class T >
void catos::ScriptingEngine::registerClass ( const char * name)
inline

◆ registerMethod()

template<class T , typename U >
void catos::ScriptingEngine::registerMethod ( const char * name,
U T::* ptr )
inline

◆ registerNewScript()

void catos::ScriptingEngine::registerNewScript ( const catos::string & pathToPythonFile)

First read the contents of the file given to us and validate it.

Create a scriptInfo

Find the name of the user defined script object

Do a nullptr here cuz we allocate the mem for a script obj in the ScriptingEngine::startScripts();

◆ registerProperty()

template<typename T , typename U >
void catos::ScriptingEngine::registerProperty ( const char * name,
U T::* ptr )
inline

◆ startScripts()

void catos::ScriptingEngine::startScripts ( )

execute the script;

◆ updateScripts()

void catos::ScriptingEngine::updateScripts ( )

Friends And Related Symbol Documentation

◆ Registry

friend class Registry
friend

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