feat(entity): the client's HF light direction gadget component (66)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 14:46:45 -05:00
parent 0138d45c58
commit a7c8556cb5
2 changed files with 25 additions and 0 deletions

View File

@@ -95,6 +95,7 @@
#include "GateRushComponent.h"
#include "FactionTriggerComponent.h"
#include "RocketLandingComponent.h"
#include "HFLightDirectionGadgetComponent.h"
#include "SpawnerComponent.h"
#include "PathfindingComponent.h"
#include "PhysicsSystemComponent.h"
@@ -987,6 +988,12 @@ void Entity::Initialize() {
if (id > -1) AddComponent<SpawnerComponent>(id);
break;
}
case eReplicaComponentType::HF_LIGHT_DIRECTION_GADGET: {
// The client makes it from the registry (an editor object)
const auto id = compRegistryTable->GetByIDAndType(m_TemplateID, eReplicaComponentType::HF_LIGHT_DIRECTION_GADGET, -1);
if (id > -1) AddComponent<HFLightDirectionGadgetComponent>(id);
break;
}
case eReplicaComponentType::ROCKET_LANDING: {
// LWORocketAnimationControlComponent: the client makes it from the registry
const auto id = compRegistryTable->GetByIDAndType(m_TemplateID, eReplicaComponentType::ROCKET_LANDING, -1);