Collision callbacks
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef Components_Health_h__
|
||||
#define Components_Health_h__
|
||||
|
||||
#include "Component.h"
|
||||
|
||||
namespace Components
|
||||
{
|
||||
|
||||
struct Health : Component
|
||||
{
|
||||
Health()
|
||||
: health(1.0f){ }
|
||||
|
||||
float health;
|
||||
|
||||
virtual Health* Clone() const override { return new Health(*this); }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // Components_Health_h__
|
||||
Reference in New Issue
Block a user