feat(component): the exhibit component (32) the client's loader leaves dead

1.10.64's DoObjectComponentLoad has an EXHIBIT case that makes nothing;
DLU makes ExhibitComponent there, built like LWOExhibitComponent on the
spawner component: its ExhibitComponent row (model offset and size) and the
exhibit_* level keys. It sends nothing in a construction (the client's
Deserialize is empty), so the 12 exhibit LOTs keep their bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 16:56:25 -05:00
parent 477dd9f3e3
commit f3ae06cee6
5 changed files with 120 additions and 1 deletions

View File

@@ -99,6 +99,7 @@
#include "PetCreatorComponent.h"
#include "HFLightDirectionGadgetComponent.h"
#include "SpawnerComponent.h"
#include "ExhibitComponent.h"
#include "PathfindingComponent.h"
#include "PhysicsSystemComponent.h"
#include "VehiclePhysicsComponent.h"
@@ -911,6 +912,13 @@ void Entity::DoObjectComponentLoad(ObjectLoadState& state) {
if (id > -1 && !HasComponent(eReplicaComponentType::PLAYER_FORCED_MOVEMENT)) AddComponent<PlayerForcedMovementComponent>(id);
break;
}
case eReplicaComponentType::EXHIBIT: {
// 1.10.64's loader has this case but makes nothing (dead code; showcases were cut); DLU makes the exhibit,
// which sends nothing in a construction, so unchanged clients are unaffected
const auto id = state.GetComponentID(eReplicaComponentType::EXHIBIT, -1);
if (id > -1) AddComponent<ExhibitComponent>(id);
break;
}
case eReplicaComponentType::ROCKET_LANDING: {
// LWORocketAnimationControlComponent: the client makes it from the registry
const auto id = state.GetComponentID(eReplicaComponentType::ROCKET_LANDING, -1);