mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-15 00:07:13 +00:00
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:
@@ -38,7 +38,7 @@
|
||||
#endif
|
||||
|
||||
RacingControlComponent::RacingControlComponent(Entity* parent, const int32_t componentID)
|
||||
: ActivityComponent(parent, componentID) {
|
||||
: BaseRacingControlComponent(parent, componentID) {
|
||||
m_PathName = u"MainPath";
|
||||
m_NumberOfLaps = 3;
|
||||
m_RemainingLaps = m_NumberOfLaps;
|
||||
@@ -63,7 +63,7 @@ RacingControlComponent::RacingControlComponent(Entity* parent, const int32_t com
|
||||
|
||||
// After the activity's own loading: the race's activity is the one of this world (42 when none)
|
||||
void RacingControlComponent::LoadConfigData() {
|
||||
ActivityComponent::LoadConfigData();
|
||||
BaseRacingControlComponent::LoadConfigData();
|
||||
|
||||
const auto worldID = Game::server->GetZoneID();
|
||||
m_ActivityID = 42;
|
||||
|
||||
Reference in New Issue
Block a user