mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-16 08:45:27 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user