summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Components/BurningComponent.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-09-09 16:06:12 +0200
committerTycho <work.tycho+git@gmail.com>2014-09-09 16:06:12 +0200
commite5683b4ac64dedb1d71f8376966bc7c039b21712 (patch)
tree3aa83025aea8ac4c1ce849a546e73df1ec51f54c /src/Mobs/Components/BurningComponent.h
parentMerge branch 'master' into ComponentRewrite (diff)
downloadcuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar
cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar.gz
cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar.bz2
cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar.lz
cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar.xz
cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.tar.zst
cuberite-e5683b4ac64dedb1d71f8376966bc7c039b21712.zip
Diffstat (limited to 'src/Mobs/Components/BurningComponent.h')
-rw-r--r--src/Mobs/Components/BurningComponent.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Mobs/Components/BurningComponent.h b/src/Mobs/Components/BurningComponent.h
new file mode 100644
index 000000000..d77a9dd30
--- /dev/null
+++ b/src/Mobs/Components/BurningComponent.h
@@ -0,0 +1,21 @@
+
+#pragma once
+
+class cChunk;
+
+// This class is paramerised to allow mocking
+template <class EntityType, class ChunkType>
+class cBurningComponent
+{
+private:
+ EntityType & m_Self;
+public:
+
+ cBurningComponent(EntityType & a_Self)
+ : m_Self(a_Self)
+ {}
+
+ void Tick(float a_Dt, ChunkType & a_Chunk);
+};
+
+#include "BurningComponent.inc"