diff options
-rw-r--r-- | src/Mobs/Components/BurningComponent.cpp | 14 | ||||
-rw-r--r-- | src/Mobs/Components/BurningComponent.h | 2 | ||||
-rw-r--r-- | src/Mobs/Components/CMakeLists.txt | 1 |
3 files changed, 17 insertions, 0 deletions
diff --git a/src/Mobs/Components/BurningComponent.cpp b/src/Mobs/Components/BurningComponent.cpp new file mode 100644 index 000000000..5be7d85cc --- /dev/null +++ b/src/Mobs/Components/BurningComponent.cpp @@ -0,0 +1,14 @@ + +#include "Globals.h" + +#ifndef SELF_TEST + +#include "BurningComponent.h" + +#include "BurningComponent.inc" + +#include "Chunk.h" +#include "Entities/Entity.h" + +template class cBurningComponent<cEntity, cChunk>; +#endif diff --git a/src/Mobs/Components/BurningComponent.h b/src/Mobs/Components/BurningComponent.h index d77a9dd30..754796094 100644 --- a/src/Mobs/Components/BurningComponent.h +++ b/src/Mobs/Components/BurningComponent.h @@ -18,4 +18,6 @@ public: void Tick(float a_Dt, ChunkType & a_Chunk); }; +#ifdef SELF_TEST #include "BurningComponent.inc" +#endif diff --git a/src/Mobs/Components/CMakeLists.txt b/src/Mobs/Components/CMakeLists.txt index ce4fd317a..797bc4638 100644 --- a/src/Mobs/Components/CMakeLists.txt +++ b/src/Mobs/Components/CMakeLists.txt @@ -7,6 +7,7 @@ SET (SRCS AIComponent.cpp AIAggressiveComponent.cpp AttackComponent.cpp + BurningComponent.cpp EnvironmentComponent.cpp MovementComponent.cpp) |