Started PickupSpawnSystem, added 2 events and a system
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
@@ -29,4 +29,5 @@
|
|||||||
<xs:include schemaLocation="Components/Fill.xsd"/>
|
<xs:include schemaLocation="Components/Fill.xsd"/>
|
||||||
<xs:include schemaLocation="Components/Lifetime.xsd"/>
|
<xs:include schemaLocation="Components/Lifetime.xsd"/>
|
||||||
<xs:include schemaLocation="Components/HiddenForLocalPlayer.xsd"/>
|
<xs:include schemaLocation="Components/HiddenForLocalPlayer.xsd"/>
|
||||||
|
<xs:include schemaLocation="Components/PickupSpawn.xsd"/>
|
||||||
</xs:schema>
|
</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>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
#include "Systems/PickupSpawnSystem.h"
|
||||||
Reference in New Issue
Block a user