summaryrefslogtreecommitdiffstats
path: root/src/Entities/Compoments/EnvironmentComponent.h
blob: 84fd4e2f5e2c0794289509d22d7415a344e60fbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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(){}

};