| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- // Copyright (C) 2014, Panagiotis Christopoulos Charitos.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #ifndef ANKI_SCRIPT_SCRIPT_MANAGER_H
- #define ANKI_SCRIPT_SCRIPT_MANAGER_H
- #include "anki/script/LuaBinder.h"
- namespace anki {
- // Forward
- class SceneGraph;
- /// @addtogroup script
- /// @{
- /// The scripting manager
- class ScriptManager
- {
- public:
- ScriptManager();
- ~ScriptManager();
- /// Create the script manager.
- ANKI_USE_RESULT Error create(
- AllocAlignedCallback allocCb,
- void* allocCbData,
- SceneGraph* scene);
- /// @privatesection
- /// @{
- SceneGraph& _getSceneGraph()
- {
- return *m_scene;
- }
- /// @}
- public:
- SceneGraph* m_scene = nullptr;
- ChainAllocator<U8> m_alloc;
- LuaBinder m_lua;
- };
- /// @}
- } // end namespace anki
- #endif
|