Player/Team specific triggers
This commit is contained in:
@@ -8,8 +8,6 @@ namespace Components
|
||||
|
||||
struct SpawnPoint : Component
|
||||
{
|
||||
EntityID Player;
|
||||
|
||||
virtual SpawnPoint* Clone() const override { return new SpawnPoint(*this); }
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef Components_Team_h__
|
||||
#define Components_Team_h__
|
||||
|
||||
#include "Component.h"
|
||||
#include "Entity.h"
|
||||
|
||||
namespace Components
|
||||
{
|
||||
|
||||
struct Team : Component
|
||||
{
|
||||
unsigned int TeamID;
|
||||
|
||||
virtual Team* Clone() const override { return new Team(*this); }
|
||||
};
|
||||
|
||||
}
|
||||
#endif // !Components_Team_h__
|
||||
@@ -9,6 +9,7 @@ namespace Components
|
||||
struct Trigger : Component
|
||||
{
|
||||
bool TriggerOnce;
|
||||
int TeamID;
|
||||
virtual Trigger* Clone() const override { return new Trigger(*this); }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user