|
MochiEngine
|
This layer is automatically injected in the engine in the setup phase and is designed to bind several useful methods to the lua environment and take ownership of entities generated by lua. More...
#include <ScriptingLayer.h>
Public Member Functions | |
| virtual void | InitLayer () override |
| Calls BindFactoryMethods and graphics, logic and audio bindings to lua. | |
| virtual bool | Update (const float &dt) override |
| Updates owned sprites (for animations) and safely removes sprites marked for destruction. | |
| virtual void | Render () const override |
| Renders owned sprites. | |
| virtual void | GUI () const override |
| This class does not show any GUI. | |
| virtual void | Debug () const override |
| This class does not show any debug data. | |
| Public Member Functions inherited from Mochi::Layer | |
| Layer () | |
| Default constructor. It initializes with references to the engine subsystems. Should only be constructed after the engine is setup. | |
Additional Inherited Members | |
| Protected Attributes inherited from Mochi::Layer | |
| FS::PackCatalog * | mCatalog |
| Scripting::ScriptingManager * | mScripting |
| Graphics::Camera * | mCamera |
| Event::EventBus * | mEventBus |
| Graphics::AbstractGUI * | mGUI |
| Input::IActionManager * | mActionManager |
| Audio::IAudioManager * | mAudioManager |
| Graphics::IRenderer * | mRenderer |
| Debug::IGizmos * | mGizmos |
This layer is automatically injected in the engine in the setup phase and is designed to bind several useful methods to the lua environment and take ownership of entities generated by lua.
Check Lua Binding Modules for a description of submodule bindings.
Ownership:
Guarantees:
Non responsible:
|
overridevirtual |
This class does not show any debug data.
Reimplemented from Mochi::Layer.
|
overridevirtual |
This class does not show any GUI.
Reimplemented from Mochi::Layer.
|
overridevirtual |
Calls BindFactoryMethods and graphics, logic and audio bindings to lua.
Check Lua Binding Modules for a description of submodule bindings.
Reimplemented from Mochi::Layer.
|
overridevirtual |
Renders owned sprites.
Reimplemented from Mochi::Layer.
|
overridevirtual |
Updates owned sprites (for animations) and safely removes sprites marked for destruction.
| dt | Delta time |
Reimplemented from Mochi::Layer.