refactor(component): racing control and gate rush share the client's racing control base

LWOBaseRacingControlComponent (an activity component) is the base of the
client's racing control (71) and gate rush control (103); DLU gets the same
BaseRacingControlComponent. Nothing sent changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 14:23:38 -05:00
parent 4bfdeec369
commit 0e611bc76c
4 changed files with 24 additions and 8 deletions

View File

@@ -1,17 +1,18 @@
#ifndef GATERUSHCOMPONENT_H
#define GATERUSHCOMPONENT_H
#include "Component.h"
#include "BaseRacingControlComponent.h"
#include "eReplicaComponentType.h"
/**
* Gate rush, as the client's LWOGateRushComponent makes it from the registry. Nothing of it is sent or done on the server yet.
* Gate rush control, as the client's LWOGateRushControlComponent makes it from the registry: a racing control
* (BaseRacingControlComponent). Nothing of it is sent or done on the server yet.
*/
class GateRushComponent final : public Component {
class GateRushComponent final : public BaseRacingControlComponent {
public:
static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::GATE_RUSH_CONTROL;
GateRushComponent(Entity* parent, const int32_t componentID) : Component(parent, componentID) {}
GateRushComponent(Entity* parent, const int32_t componentID) : BaseRacingControlComponent(parent, componentID) {}
};
#endif // GATERUSHCOMPONENT_H