Started PickupSpawnSystem, added 2 events and a system

This commit is contained in:
verysecrethero
2016-02-04 17:43:45 +01:00
parent b56824786c
commit 6a23a987b3
7 changed files with 69 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef EPickupSpawned_h__
#define EPickupSpawned_h__
#include "Core/Event.h"
#include "Core/EntityWrapper.h"
namespace Events
{
struct PickupSpawned : Event
{
EntityID PickupID;
EntityWrapper Spawner;
};
}
#endif
+19
View File
@@ -0,0 +1,19 @@
#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
+17
View File
@@ -0,0 +1,17 @@
#ifndef PickupSpawnSystem_h__
#define PickupSpawnSystem_h__
#include "Core/System.h"
#include "Input/EInputCommand.h"
#include "Systems/SpawnerSystem.h"
#include "Events/ESpawnerSpawn.h"
#include "Core/EPlayerSpawned.h"
#include "Rendering/ESetCamera.h"
#include "Core/ConfigFile.h"
#include "Core/EPickupSpawned.h"
class PickupSpawnSystem : public ImpureSystem
{
};
#endif
+1
View File
@@ -29,4 +29,5 @@
<xs:include schemaLocation="Components/Fill.xsd"/>
<xs:include schemaLocation="Components/Lifetime.xsd"/>
<xs:include schemaLocation="Components/HiddenForLocalPlayer.xsd"/>
<xs:include schemaLocation="Components/PickupSpawn.xsd"/>
</xs:schema>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<PlayerSpawn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PickupSpawn.xsd"/>
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types">
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
<xs:element name="PickupSpawn">
<xs:annotation>
<xs:documentation>Combined with a Spawner, defines a spawn point for a pickup</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
+1
View File
@@ -0,0 +1 @@
#include "Systems/PickupSpawnSystem.h"