feat(entity): the client's spawner component (10) on spawner objects

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 10:19:18 -05:00
parent 2f01b85d8a
commit 9da7b11456
2 changed files with 24 additions and 0 deletions

View File

@@ -95,6 +95,7 @@
#include "GateRushComponent.h"
#include "FactionTriggerComponent.h"
#include "RocketLandingComponent.h"
#include "SpawnerComponent.h"
#include "PathfindingComponent.h"
#include "PhysicsSystemComponent.h"
#include "VehiclePhysicsComponent.h"
@@ -1020,6 +1021,12 @@ void Entity::Initialize() {
if (id > -1) AddComponent<PhysicsSystemComponent>(id);
break;
}
case eReplicaComponentType::SPAWNER: {
// A spawner object's spawner component, from the registry as the client makes it
const auto id = compRegistryTable->GetByIDAndType(m_TemplateID, eReplicaComponentType::SPAWNER, -1);
if (id > -1) AddComponent<SpawnerComponent>(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);