SP3-5 ECS #141

Merged
maverickdgg merged 1 commits from SP3-5-ECS into main 2022-10-31 17:32:42 +08:00
1 changed files with 7 additions and 0 deletions

View File

@ -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);
}