|
Voxellancer
0.3
A game about voxels in space
|
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 | |
| Scriptable * | getScriptable (int key) |
| void | performRemovals () |
| void | removeScriptable (Scriptable *scriptable) |
Protected Attributes | |
| World * | m_world |
|
std::list< std::shared_ptr < GamePlayScript > > | m_scripts |
|
std::unordered_map< int, Scriptable * > | m_scriptables |
| int | m_keyIncrementor |
| bool | m_running |