diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-09-11 14:08:58 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-09-11 14:08:58 +0200 |
commit | 695e4fa30acca777f401e7a51d7d8ccc74798bd6 (patch) | |
tree | 242e39e8546df8a95e1c111ac10dbac6779a5e85 | |
parent | fix issue with local types in template (diff) | |
download | cuberite-ComponentRewrite.tar cuberite-ComponentRewrite.tar.gz cuberite-ComponentRewrite.tar.bz2 cuberite-ComponentRewrite.tar.lz cuberite-ComponentRewrite.tar.xz cuberite-ComponentRewrite.tar.zst cuberite-ComponentRewrite.zip |
-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) |