Added event manager include

This commit is contained in:
maverickdgg 2022-09-30 20:34:46 +08:00
parent 2d07fb0afc
commit e4be5e0987
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#include "../Events/SHComponentRemovedEvent.h" #include "../Events/SHComponentRemovedEvent.h"
//#include "Scene/SHSceneNode.h" //#include "Scene/SHSceneNode.h"
#include "SH_API.h" #include "SH_API.h"
#include "Events/SHEventManager.hpp"
#include <cassert> #include <cassert>
@ -330,7 +331,7 @@ namespace SHADE
SHComponentRemovedEvent eventData; SHComponentRemovedEvent eventData;
eventData.eid = entityID; eventData.eid = entityID;
eventData.addedComponentType = ComponentFamily::GetID<T>(); eventData.removedComponentType = ComponentFamily::GetID<T>();
SHEventManager::BroadcastEvent<SHComponentRemovedEvent>(eventData, SH_COMPONENT_REMOVED_EVENT); SHEventManager::BroadcastEvent<SHComponentRemovedEvent>(eventData, SH_COMPONENT_REMOVED_EVENT);
} }