summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-09-11 14:08:58 +0200
committerTycho <work.tycho+git@gmail.com>2014-09-11 14:08:58 +0200
commit695e4fa30acca777f401e7a51d7d8ccc74798bd6 (patch)
tree242e39e8546df8a95e1c111ac10dbac6779a5e85
parentfix issue with local types in template (diff)
downloadcuberite-695e4fa30acca777f401e7a51d7d8ccc74798bd6.tar
cuberite-695e4fa30acca777f401e7a51d7d8ccc74798bd6.tar.gz
cuberite-695e4fa30acca777f401e7a51d7d8ccc74798bd6.tar.bz2
cuberite-695e4fa30acca777f401e7a51d7d8ccc74798bd6.tar.lz
cuberite-695e4fa30acca777f401e7a51d7d8ccc74798bd6.tar.xz
cuberite-695e4fa30acca777f401e7a51d7d8ccc74798bd6.tar.zst
cuberite-695e4fa30acca777f401e7a51d7d8ccc74798bd6.zip
-rw-r--r--src/Mobs/Components/BurningComponent.cpp14
-rw-r--r--src/Mobs/Components/BurningComponent.h2
-rw-r--r--src/Mobs/Components/CMakeLists.txt1
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)