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


};