mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-16 04:18:08 +00:00
SwitchComponent pass
This commit is contained in:
@@ -1013,9 +1013,6 @@ void Entity::OnCollisionLeavePhantom(const LWOOBJID otherEntity) {
|
||||
|
||||
TriggerEvent(eTriggerEventType::EXIT, other);
|
||||
|
||||
auto* switchComponent = GetComponent<SwitchComponent>();
|
||||
if (switchComponent) switchComponent->EntityLeave(other);
|
||||
|
||||
const auto index = std::find(m_TargetsInPhantom.begin(), m_TargetsInPhantom.end(), otherEntity);
|
||||
|
||||
if (index == m_TargetsInPhantom.end()) return;
|
||||
|
@@ -379,7 +379,7 @@ protected:
|
||||
std::vector<LWOOBJID> m_TargetsInPhantom;
|
||||
|
||||
static const std::vector<ComponentWhitelist> m_ComponentWhitelists;
|
||||
static const std::array<eReplicaComponentType> m_ComponentOrder;
|
||||
static const std::array<eReplicaComponentType, 80> m_ComponentOrder;
|
||||
};
|
||||
|
||||
#include "Entity.tcc"
|
||||
|
Reference in New Issue
Block a user