diff options
Diffstat (limited to '')
-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" |