Merge pull request #141 from SHADE-DP/SP3-5-ECS
SP3-5 ECS Bugfix: Added remove component broadcast to removeComponentOfEntity
This commit is contained in:
commit
0957c39283
|
@ -40,6 +40,12 @@ namespace SHADE
|
|||
{
|
||||
comp->OnDestroy();
|
||||
}
|
||||
SHComponentRemovedEvent eventData;
|
||||
eventData.eid = entityID;
|
||||
eventData.removedComponentType = i;
|
||||
|
||||
SHEventManager::BroadcastEvent<SHComponentRemovedEvent>(eventData, SH_COMPONENT_REMOVED_EVENT);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -53,6 +59,7 @@ namespace SHADE
|
|||
|
||||
//entityHandle.RemoveHandle(entityID);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue