summaryrefslogblamecommitdiffstats
path: root/src/Entities/Compoments/EnvironmentComponent.h
blob: b080520f2c2541ee22eae8773669c9453ec58e8a (plain) (tree)


















                                                                                     
  
#pragma once

#include "../Entity.h"

class cEnvironmentComponent
{
protected:
	cEntity * m_Self;
public:
	cEnvironmentComponent(cEntity * a_Entity) : m_Self(a_Entity){}

	virtual void Tick(float a_Dt, cChunk & a_Chunk){}

	virtual void OnCollisionWithBlock(Vector3i & a_Position, BLOCKTYPE a_Block){}
	virtual void OnStartedBurning(){}
	virtual void OnFinishedBurning(){}
	virtual void OnStartedDrowning(){}
	virtual void OnFinishedDrowning(){}

};