Merge exp/component-audit-2: component audit rounds 2-4

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-11-10 16:49:08 -06:00
65 changed files with 2024 additions and 109 deletions

View File

@@ -389,7 +389,8 @@ namespace {
}
if (r.Bit()) j["onThreatList"] = r.Bit();
} },
{ COLLECTIBLE, [](Reader& r, json& j, bool, const auto&) { j["collectibleID"] = r.Get<int16_t>(); } },
// LWOCollectibleComponent::Deserialize: the id on construction only
{ COLLECTIBLE, [](Reader& r, json& j, bool initial, const auto&) { if (initial) j["collectibleID"] = r.Get<int16_t>(); } },
// LWOPetComponent::Deserialize: everything under the dirty bit, the names on updates too
{ PET, [](Reader& r, json& j, bool, const auto&) {
if (!r.Bit()) return;

View File

@@ -1,4 +1,5 @@
#include "GMGreaterThanZeroCommands.h"
#include "ControllablePhysicsComponent.h"
#include "ChatServerLink.h"
#include "DashboardNotify.h"
#include "SlashCommandHandler.h"
@@ -206,6 +207,7 @@ namespace GMGreaterThanZeroCommands {
jetPackMode.target = entity->GetObjectID();
jetPackMode.bUse = false;
jetPackMode.Send(UNASSIGNED_SYSTEM_ADDRESS);
if (auto* const physics = entity->GetComponent<ControllablePhysicsComponent>()) physics->SetJetPackMode(jetPackMode.bUse, jetPackMode.effectID, jetPackMode.bBypassChecks);
character->SetIsFlying(false);
} else {
@@ -235,6 +237,7 @@ namespace GMGreaterThanZeroCommands {
jetPackMode.fMaxAirspeed = maxAirSpeed;
jetPackMode.fVertVel = verticalVelocity;
jetPackMode.Send(UNASSIGNED_SYSTEM_ADDRESS);
if (auto* const physics = entity->GetComponent<ControllablePhysicsComponent>()) physics->SetJetPackMode(jetPackMode.bUse, jetPackMode.effectID, jetPackMode.bBypassChecks);
character->SetIsFlying(true);
}