1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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"