Thrive
membrane_generation_system.h
1 #pragma once
2 
3 #include "engine/component.h"
4 #include "engine/system.h"
5 #include "engine/touchable.h"
6 
7 #include <memory>
8 #include <OgreVector3.h>
9 
10 namespace luabind {
11 class scope;
12 }
13 
14 namespace thrive {
15 
22 
23 public:
24 
34  static luabind::scope
35  luaBindings();
36 
37  void
38  load(
40  ) override;
41 
43  storage() const override;
44 
52  void
53  addArea(
54  float x,
55  float y
56  );
57 
58 
59 
64 
65 
66 private:
67  friend class MembraneGenerationSystem;
68 
69  std::vector<Ogre::Vector2> areasToAdd;
70 
71 };
72 
74 
75 public:
76 
87  static luabind::scope
88  luaBindings();
89 
94 
99 
104  void init(GameState* gameState) override;
105 
109  void shutdown() override;
110 
114  void update(int, int) override;
115 
116 private:
117 
118  struct Implementation;
119  std::unique_ptr<Implementation> m_impl;
120 };
121 
122 }
123 
void init(GameState *gameState) override
Initializes the system.
Definition: membrane_generation_system.cpp:100
void update(int, int) override
Updates system.
Definition: membrane_generation_system.cpp:406
Definition: membrane_generation_system.h:73
void shutdown() override
Shuts the system down.
Definition: membrane_generation_system.cpp:394
MembraneGenerationSystem()
Constructor.
Definition: membrane_generation_system.cpp:90
Base class for components.
Definition: component.h:31
A component for a Ogre scene nodes.
Definition: membrane_generation_system.h:20
A system handles one specific part of the game.
Definition: system.h:23
~MembraneGenerationSystem()
Destructor.
Definition: membrane_generation_system.cpp:96
void load(const StorageContainer &storage) override
Loads the component.
Definition: membrane_generation_system.cpp:38
StorageContainer storage() const override
Serializes the component.
Definition: membrane_generation_system.cpp:47
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
Represents a distinct set of active systems and entities.
Definition: game_state.h:41
static luabind::scope luaBindings()
Lua bindings.
Definition: membrane_generation_system.cpp:68
void addArea(float x, float y)
hrteher
Definition: membrane_generation_system.cpp:54
TouchableValue< bool > sadasdas
sadasdfrf
Definition: membrane_generation_system.h:63
A key-value storage for serialization.
Definition: serialization.h:36
static luabind::scope luaBindings()
Lua bindings.
Definition: membrane_generation_system.cpp:21