diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-09-09 16:06:12 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-09-09 16:06:12 +0200 |
commit | e5683b4ac64dedb1d71f8376966bc7c039b21712 (patch) | |
tree | 3aa83025aea8ac4c1ce849a546e73df1ec51f54c /src/Mobs/Components/BurningComponent.h | |
parent | Merge branch 'master' into ComponentRewrite (diff) | |
download | cuberite-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.h | 21 |
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" |