Refactored factory and component system.

This commit is contained in:
2014-03-07 01:08:54 +01:00
parent 18197bf21d
commit e65db077d5
30 changed files with 313 additions and 284 deletions
+11 -10
View File
@@ -1,18 +1,19 @@
#ifndef SoundEmitter_h__
#define SoundEmitter_h__
#ifndef Components_SoundEmitter_h__
#define Components_SoundEmitter_h__
#include <string>
#include "Component.h"
namespace Components
{
struct SoundEmitter : Component
{
std::string SoundFile;
float Volume;
float MaxRange;
};
REGISTER_COMPONENT("SoundEmitter", SoundEmitter);
struct SoundEmitter : Component
{
std::string SoundFile;
float Volume;
float MaxRange;
};
}
#endif // !SoundEmitter_h__
#endif // !Components_SoundEmitter_h__