mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 10:44:08 +00:00
Split out LUTriggers into it's own component (#986)
* Split out LUTriggers into it's own component * some cleanup * fix debug log * use emplace and tryParse * slight refactor to make the work on startup rather than at runtime Also TODO's for getting targets via all the possible methods * address feedback
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "dLogger.h"
|
||||
#include "MessageIdentifiers.h"
|
||||
#include "dConfig.h"
|
||||
#include "eTriggerEventType.h"
|
||||
|
||||
EntityManager* EntityManager::m_Address = nullptr;
|
||||
|
||||
@@ -585,7 +586,7 @@ void EntityManager::ScheduleForKill(Entity* entity) {
|
||||
|
||||
SwitchComponent* switchComp = entity->GetComponent<SwitchComponent>();
|
||||
if (switchComp) {
|
||||
entity->TriggerEvent("OnDectivated");
|
||||
entity->TriggerEvent(eTriggerEventType::DEACTIVATED);
|
||||
}
|
||||
|
||||
const auto objectId = entity->GetObjectID();
|
||||
|
Reference in New Issue
Block a user