diff options
Diffstat (limited to 'src/Entities/Compoments/ModelComponent.h')
-rw-r--r-- | src/Entities/Compoments/ModelComponent.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Entities/Compoments/ModelComponent.h b/src/Entities/Compoments/ModelComponent.h new file mode 100644 index 000000000..bbc4bcc21 --- /dev/null +++ b/src/Entities/Compoments/ModelComponent.h @@ -0,0 +1,18 @@ +#pragma once + +#include "../Entity.h" + +class cModelComponent +{ +protected: + cEntity * m_Self; +public: + cModelComponent(cEntity * a_Entity) : m_Self(a_Entity){} + virtual void SpawnOn(cClientHandle & a_Client){} + virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL){} + + virtual void HandlePhysics(float a_Dt, cChunk & a_Chunk){} + virtual void OnCollisionWithEntity(cEntity * a_Entity){} + + +}; |