Fireworks Engine  v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
component.h
Go to the documentation of this file.
1 #pragma once
2 #include <iostream>
3 #include <vector>
4 #include <string>
5 
6 namespace fireworks { namespace components {
7 
10  {
11  RB2D = 0
12  };
13 
16  {
17  std::string name;
18  unsigned int typeID;
19  };
20 
22  class Component
23  {
24  public:
27  protected:
33  Component(const std::string& componentName, unsigned int componentID);
35  virtual void Dummy() {}
36  };
37 
38 } }
ComponentType componentType
Basic information about the type of the component.
Definition: component.h:26
virtual void Dummy()
A Dummy method to make the class polymorphic.
Definition: component.h:35
Class for creating components.
Definition: component.h:22
Definition: audioclip.cpp:3
To uniquely identify the component.
Definition: component.h:15
unsigned int typeID
Definition: component.h:18
Definition: component.h:11
std::string name
Definition: component.h:17
ComponentsList
The list of components in the engine.
Definition: component.h:9