SwitchComponent pass

This commit is contained in:
David Markowitz
2023-07-07 12:13:26 -07:00
parent 197d1bcdee
commit cf53e35af5
4 changed files with 72 additions and 100 deletions

View File

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

View File

@@ -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"