GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SoundListener.hpp
Go to the documentation of this file.
1 #ifndef RADIX_COMPONENT_SOUNDLISTENER_HPP
2 #define RADIX_COMPONENT_SOUNDLISTENER_HPP
3 
6 
7 namespace radix {
8 
9 class SoundListener : public Component {
10 public:
12  Component(ent) {}
13 
14  const char* getName() const {
15  return "SoundSource";
16  }
17 
18  TypeId getTypeId() const {
19  return Component::getTypeId<std::remove_reference<decltype(*this)>::type>();
20  }
21 
22  void serialize(serine::Archiver&) {
23  // TODO
24  }
25 
26  // TODO
27 };
28 
29 } /* namespace radix */
30 
31 #endif /* RADIX_COMPONENT_SOUNDLISTENER_HPP */
Definition: GameController.hpp:7
Definition: SoundListener.hpp:9
const char * getName() const
Definition: SoundListener.hpp:14
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
Base class to create entity components.
Definition: Component.hpp:25
void serialize(serine::Archiver &)
Definition: SoundListener.hpp:22
ComponentTypeId TypeId
Definition: Component.hpp:35
TypeId getTypeId() const
Definition: SoundListener.hpp:18
SoundListener(Entity &ent)
Definition: SoundListener.hpp:11