From 695e4fa30acca777f401e7a51d7d8ccc74798bd6 Mon Sep 17 00:00:00 2001 From: Tycho Date: Thu, 11 Sep 2014 13:08:58 +0100 Subject: Made Burning component an explicit instatiation --- src/Mobs/Components/BurningComponent.cpp | 14 ++++++++++++++ src/Mobs/Components/BurningComponent.h | 2 ++ src/Mobs/Components/CMakeLists.txt | 1 + 3 files changed, 17 insertions(+) create mode 100644 src/Mobs/Components/BurningComponent.cpp 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; +#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) -- cgit v1.2.3