diff options
Diffstat (limited to 'src/Entities/Compoments/Component.h')
-rw-r--r-- | src/Entities/Compoments/Component.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/Entities/Compoments/Component.h b/src/Entities/Compoments/Component.h deleted file mode 100644 index 30b873823..000000000 --- a/src/Entities/Compoments/Component.h +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#include "Entity.h" - -class cComponent -{ -protected: - cEntity * m_Self; -public: - cComponent(cEntity * a_Entity) : m_Self(a_Entity){} - - - // General - virtual void Tick(float a_Dt, cChunk & a_Chunk){} - virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL){} - virtual void SpawnOn(cClientHandle & a_Client){} - - // World/Model Interaction - virtual void HandlePhysics(float a_Dt, cChunk & a_Chunk){} - virtual void OnCollisionWithEntity(cEntity * a_Entity){} - - // Environmental Reactions - virtual void OnCollisionWithBlock(Vector3i & a_Position, BLOCKTYPE a_Block){} - virtual void OnStartedBurning(){} - virtual void OnFinishedBurning(){} - virtual void OnStartedDrowning(){} - virtual void OnFinishedDrowning(){} - - // Reactions - virtual void OnTakeDamage(TakeDamageInfo & a_TDI){} - virtual void OnRightClicked(){} - virtual void OnKilled(cEntity * a_Killer = NULL){} - // virtual void OnPickup(){} - // virtual void OnDestroy(){} - - // Logic - virtual void OnAttackEntity(cEntity * a_Entity){} -};
\ No newline at end of file |