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
SoundSource.hpp
Go to the documentation of this file.
1 #ifndef RADIX_COMPONENT_SOUNDSOURCE_HPP
2 #define RADIX_COMPONENT_SOUNDSOURCE_HPP
3 
6 
7 namespace radix {
8 
9 class SoundSource : 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 &ar) {
23 
24  }
25 
26  // TODO
27 
28  void playSound(const std::string &path);
29 };
30 
31 } /* namespace radix */
32 
33 #endif /* RADIX_COMPONENT_SOUNDSOURCE_HPP */
Definition: GameController.hpp:7
void playSound(const std::string &path)
Definition: SoundSource.cpp:6
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
const char * getName() const
Definition: SoundSource.hpp:14
Definition: SoundSource.hpp:9
SoundSource(Entity &ent)
Definition: SoundSource.hpp:11
TypeId getTypeId() const
Definition: SoundSource.hpp:18
Base class to create entity components.
Definition: Component.hpp:25
void serialize(serine::Archiver &ar)
Definition: SoundSource.hpp:22
ComponentTypeId TypeId
Definition: Component.hpp:35