Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
ScriptEngine Class Reference
Collaboration diagram for ScriptEngine:
[legend]

Public Member Functions

 ScriptEngine (World *world)
 
void addScript (std::shared_ptr< GamePlayScript > script)
 
void start ()
 
void stop ()
 
void registerScriptable (Scriptable *scriptable)
 
void unregisterScriptable (Scriptable *scriptable)
 
template<class T >
T * get (int key)
 
bool keyValid (int key) const
 
void update (float deltaSec)
 

Protected Member Functions

ScriptablegetScriptable (int key)
 
void performRemovals ()
 
void removeScriptable (Scriptable *scriptable)
 

Protected Attributes

Worldm_world
 
std::list< std::shared_ptr
< GamePlayScript > > 
m_scripts
 
std::unordered_map< int,
Scriptable * > 
m_scriptables
 
int m_keyIncrementor
 
bool m_running
 

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