Merge branch 'master' into particles

Conflicts:
	src/GameWorld.cpp
	vs11/Returngeance/Returngeance.vcxproj
	vs11/Returngeance/Returngeance.vcxproj.filters
This commit is contained in:
2014-06-03 17:19:53 +02:00
112 changed files with 6526 additions and 7332 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef Event_ComponentCreated_h__
#define Event_ComponentCreated_h__
#include "EventBroker.h"
#include "Entity.h"
#include "Component.h"
namespace Events
{
struct ComponentCreated : Event
{
EntityID Entity;
std::shared_ptr<::Component> Component;
};
}
#endif // Event_ComponentCreated_h__
+2 -2
View File
@@ -8,8 +8,8 @@ namespace Events
struct EnterTrigger : Event
{
EntityID Entity1;
EntityID Entity2;
EntityID Trigger;
EntityID Entity;
};
}
+17
View File
@@ -0,0 +1,17 @@
#ifndef Events_LeaveTrigger_h__
#define Events_LeaveTrigger_h__
#include "Entity.h"
#include "EventBroker.h"
namespace Events
{
struct LeaveTrigger : Event
{
EntityID Trigger;
EntityID Entity;
};
}
#endif // Events_LeaveTrigger_h__
+19
View File
@@ -0,0 +1,19 @@
#ifndef Event_Move_h__
#define Event_Move_h__
#include "EventBroker.h"
namespace Events
{
struct Move : Event
{
EntityID Entity;
glm::vec3 GoalPosition;
float Speed;
bool Queue;
};
}
#endif // Event_Move_h__
+18
View File
@@ -0,0 +1,18 @@
#ifndef Event_PlayBGM_h__
#define Event_PlayBGM_h__
#include "EventBroker.h"
#include "Entity.h"
namespace Events
{
struct PlayBGM : Event
{
std::string Resource;
bool Loop;
};
}
#endif // Event_PlayBGM_h__
+19
View File
@@ -0,0 +1,19 @@
#ifndef Event_PlaySFX_h__
#define Event_PlaySFX_h__
#include "EventBroker.h"
#include "Entity.h"
namespace Events
{
struct PlaySFX : Event
{
EntityID Emitter;
std::string Resource;
bool Loop;
};
}
#endif // Event_PlaySFX_h__
-17
View File
@@ -1,17 +0,0 @@
#ifndef Event_PlaySound_h__
#define Event_PlaySound_h__
#include "EventBroker.h"
namespace Events
{
struct PlaySound : Event
{
EntityID Emitter;
std::string Resource;
};
}
#endif // Event_PlaySound_h__
+19
View File
@@ -0,0 +1,19 @@
#ifndef Event_Rotate_h__
#define Event_Rotate_h__
#include "EventBroker.h"
namespace Events
{
struct Rotate : Event
{
EntityID Entity;
glm::quat GoalRotation;
double Time;
bool Queue;
};
}
#endif // Event_Rotate_h__
+16
View File
@@ -0,0 +1,16 @@
#ifndef Events_SpawnVehicle_h__
#define Events_SpawnVehicle_h__
#include "Entity.h"
#include "EventBroker.h"
namespace Events
{
struct SpawnVehicle : Event
{
int PlayerID;
std::string VehicleType;
};
}
#endif // Events_SpawnVehicle_h__
+17
View File
@@ -0,0 +1,17 @@
#ifndef Event_StopSound_h__
#define Event_StopSound_h__
#include "EventBroker.h"
#include "Entity.h"
namespace Events
{
struct StopSound : Event
{
EntityID Emitter;
};
}
#endif // Event_StopSound_h__