Player/Team specific triggers

This commit is contained in:
ViktorLjung
2014-06-04 18:12:58 +02:00
parent c06c436cd1
commit 1b20204897
15 changed files with 127 additions and 155 deletions
-2
View File
@@ -8,8 +8,6 @@ namespace Components
struct SpawnPoint : Component
{
EntityID Player;
virtual SpawnPoint* Clone() const override { return new SpawnPoint(*this); }
};
+18
View File
@@ -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__
+1
View File
@@ -9,6 +9,7 @@ namespace Components
struct Trigger : Component
{
bool TriggerOnce;
int TeamID;
virtual Trigger* Clone() const override { return new Trigger(*this); }
};