PickupSpawnSystem now spawns a new HealthPickup after the respawnTimer is up. Added HealthPickup.xml entity. Event PickupSpawned now gets published when a new HealthPickup spawns. Player now gains health as he picks up the HealthPickup.

This commit is contained in:
verysecrethero
2016-02-05 15:15:04 +01:00
parent 6a23a987b3
commit fe6fd0bbe3
13 changed files with 368 additions and 35 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ namespace Events
struct PickupSpawned : Event
{
EntityID PickupID;
EntityWrapper Spawner;
EntityWrapper Pickup;
};
}
-19
View File
@@ -1,19 +0,0 @@
#ifndef EPickupTaken_h__
#define EPickupTaken_h__
#include "Core/Event.h"
#include "Core/EntityWrapper.h"
namespace Events
{
struct PickupTaken : Event
{
EntityID PickupID;
EntityWrapper Spawner;
EntityWrapper Player;
};
}
#endif