3 #include "engine/component.h"
4 #include "engine/system.h"
5 #include "engine/touchable.h"
9 #include <OgreResourceGroupManager.h>
40 Ogre::Plane
plane = {1, 1, 1, 1};
81 Ogre::String
groupName = Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME;
105 static luabind::scope
140 static luabind::scope
167 void update(
int,
int)
override;
171 struct Implementation;
172 std::unique_ptr<Implementation> m_impl;
Helper class for keeping track of changing data.
Definition: touchable.h:18
void update(int, int) override
Updates the sky components.
Definition: sky_system.cpp:138
SkySystem()
Constructor.
Definition: sky_system.cpp:106
~SkySystem()
Destructor.
Definition: sky_system.cpp:112
Ogre::Real tiling
How often to repeat the material across the plane.
Definition: sky_system.h:55
A component for a sky plane.
Definition: sky_system.h:22
bool enabled
Whether this sky plane is enabled.
Definition: sky_system.h:35
StorageContainer storage() const override
Serializes the component.
Definition: sky_system.cpp:65
Ogre::Real scale
The bigger the scale, the bigger the sky plane.
Definition: sky_system.h:50
static luabind::scope luaBindings()
Lua bindings.
Definition: sky_system.cpp:20
Base class for components.
Definition: component.h:31
bool drawFirst
Whether to draw the plane before everything else.
Definition: sky_system.h:60
Properties m_properties
Properties.
Definition: sky_system.h:120
A system handles one specific part of the game.
Definition: system.h:23
Ogre::Plane plane
The sky plane's plane (normal and distance from camera)
Definition: sky_system.h:40
int ysegments
Segments for bowed plane.
Definition: sky_system.h:76
Ogre::String materialName
The material path.
Definition: sky_system.h:45
void init(GameState *gameState) override
Initializes the system.
Definition: sky_system.cpp:116
Definition: bullet_to_ogre_system.h:5
Ogre::Real bow
If zero, the plane will be flat. Above zero, the plane will be slightly curved.
Definition: sky_system.h:66
Definition: bullet_ogre_conversion.h:6
int xsegments
Segments for bowed plane.
Definition: sky_system.h:71
Handles sky planes, boxes and domes.
Definition: sky_system.h:128
void load(const StorageContainer &storage) override
Loads the component.
Definition: sky_system.cpp:47
GameState * gameState() const
Returns the system's game state.
Definition: system.cpp:183
void shutdown() override
Shuts the system down.
Definition: sky_system.cpp:127
Properties.
Definition: sky_system.h:30
Represents a distinct set of active systems and entities.
Definition: game_state.h:41
Ogre::String groupName
The resource group to which to assign the plane mesh.
Definition: sky_system.h:81
static luabind::scope luaBindings()
Lua bindings.
Definition: sky_system.cpp:88
A key-value storage for serialization.
Definition: serialization.h:36