EEntityDeleted and EComponentDeleted events published by World

This commit is contained in:
2016-01-24 13:49:45 +01:00
parent 7567f47a68
commit 67477ff3ae
5 changed files with 108 additions and 33 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef EComponentDeleted_h__
#define EComponentDeleted_h__
#include "../Common.h"
#include "Event.h"
#include "Entity.h"
namespace Events
{
struct ComponentDeleted : Event
{
EntityID Entity;
std::string ComponentType;
// True if the component was deleted as a result of the entity it was attached to being deleted
bool Cascaded;
};
}
#endif