3 #include "engine/component.h"
4 #include "engine/system.h"
5 #include "engine/touchable.h"
14 class CompositorWorkspace;
21 class OgreWorkspaceSystem;
31 COMPONENT(OgreWorkspace)
81 std::string definitionName
115 Ogre::CompositorWorkspace* m_workspace =
nullptr;
136 static luabind::scope
170 void update(
int,
int)
override;
174 struct Implementation;
175 std::unique_ptr<Implementation> m_impl;
void load(const StorageContainer &storage) override
Loads the component.
Definition: workspace_system.cpp:77
void activate() override
Called by GameState::activate()
Definition: workspace_system.cpp:293
EntityId cameraEntity
The camera entity to use.
Definition: workspace_system.h:46
Helper class for keeping track of changing data.
Definition: touchable.h:18
void init(GameState *gameState) override
Initializes the system.
Definition: workspace_system.cpp:306
static luabind::scope luaBindings()
Lua bindings.
Definition: workspace_system.cpp:52
int position() const
The workspace's position.
Properties.
Definition: workspace_system.h:38
~OgreWorkspaceSystem()
Destructor.
Definition: workspace_system.cpp:289
OgreWorkspaceSystem()
Constructor.
Definition: workspace_system.cpp:283
Base class for components.
Definition: component.h:31
int position
Defines the order in which workspaces are rendered.
Definition: workspace_system.h:54
A proxy for Ogre::Workspace.
Definition: workspace_system.h:27
A system handles one specific part of the game.
Definition: system.h:23
Creates, updates and removes workspaces.
Definition: workspace_system.h:125
Definition: bullet_to_ogre_system.h:5
Definition: bullet_ogre_conversion.h:6
GameState * gameState() const
Returns the system's game state.
Definition: system.cpp:183
Properties m_properties
Properties.
Definition: workspace_system.h:107
void update(int, int) override
Updates the system.
Definition: workspace_system.cpp:324
void deactivate() override
Called by GameState::deactivate()
Definition: workspace_system.cpp:300
Represents a distinct set of active systems and entities.
Definition: game_state.h:41
void shutdown() override
Shuts the system down.
Definition: workspace_system.cpp:316
Definition: debug_drawing.h:8
static luabind::scope luaBindings()
Lua bindings.
Definition: workspace_system.cpp:103
OgreWorkspaceComponent()
dummy constructor for REGISTER_COMPONENT to not error
Definition: workspace_system.cpp:71
StorageContainer storage() const override
Serializes the component.
Definition: workspace_system.cpp:88
A key-value storage for serialization.
Definition: serialization.h:36