mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-15 03:04:22 +00:00
Migrate more members
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "dZoneManager.h"
|
||||
#include "CDActivitiesTable.h"
|
||||
#include "eStateChangeType.h"
|
||||
#include <ranges>
|
||||
#include <ctime>
|
||||
|
||||
#ifndef M_PI
|
||||
@@ -178,11 +179,10 @@ void RacingControlComponent::LoadPlayerVehicle(Entity* player,
|
||||
moduleAssemblyComponent->SetSubKey(item->GetSubKey());
|
||||
moduleAssemblyComponent->SetUseOptionalParts(false);
|
||||
|
||||
for (auto* config : item->GetConfig()) {
|
||||
if (config->GetKey() == u"assemblyPartLOTs") {
|
||||
moduleAssemblyComponent->SetAssemblyPartsLOTs(
|
||||
GeneralUtils::ASCIIToUTF16(config->GetValueAsString()));
|
||||
}
|
||||
const auto& lnv = item->GetConfig().values;
|
||||
const auto itr = lnv.find(u"assemblyPartLOTs");
|
||||
if (itr != lnv.end()) {
|
||||
moduleAssemblyComponent->SetAssemblyPartsLOTs(GeneralUtils::ASCIIToUTF16(itr->second->GetValueAsString()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -874,7 +874,7 @@ void RacingControlComponent::Update(float deltaTime) {
|
||||
void RacingControlComponent::MsgConfigureRacingControl(const GameMessages::ConfigureRacingControl& msg) {
|
||||
for (const auto& dataUnique : msg.racingSettings) {
|
||||
if (!dataUnique) continue;
|
||||
const auto* const data = dataUnique.get();
|
||||
const auto* const data = dataUnique.get();
|
||||
if (data->GetKey() == u"Race_PathName" && data->GetValueType() == LDF_TYPE_UTF_16) {
|
||||
m_PathName = static_cast<const LDFData<std::u16string>*>(data)->GetValue();
|
||||
} else if (data->GetKey() == u"activityID" && data->GetValueType() == LDF_TYPE_S32) {
|
||||
|
||||
Reference in New Issue
Block a user