Browse Source

Fix using old method name `ToPlainString()`

develop
Anton Tarasenko 3 years ago
parent
commit
636e614ba4
  1. 8
      sources/GameModes/BaseGameMode.uc
  2. 10
      sources/GameModes/GameMode.uc
  3. 6
      sources/VotingHandlerAdapter.uc

8
sources/GameModes/BaseGameMode.uc

@ -106,7 +106,7 @@ protected function FromData(AssociativeArray source)
}
nextText = source.GetText(P("difficulty"));
if (nextText != none) {
difficulty = nextText.ToPlainString();
difficulty = nextText.ToString();
}
includeFeature =
DynamicIntoStringArray(source.GetDynamicArray(P("includeFeature")));
@ -136,11 +136,11 @@ private final function FeatureConfigPair AssociativeArrayIntoPair(
}
nextText = source.GetText(P("feature"));
if (nextText != none) {
result.feature = nextText.ToPlainString();
result.feature = nextText.ToString();
}
nextText = source.GetText(P("config"));
if (nextText != none) {
result.config = nextText.ToPlainString();
result.config = nextText.ToString();
}
return result;
}
@ -157,7 +157,7 @@ private final function array<string> DynamicIntoStringArray(DynamicArray source)
{
nextText = source.GetText(i);
if (nextText != none) {
includeFeature[i] = nextText.ToPlainString();
includeFeature[i] = nextText.ToString();
}
}
}

10
sources/GameModes/GameMode.uc

@ -91,15 +91,15 @@ protected function FromData(AssociativeArray source)
}
nextText = source.GetText(P("gameTypeClass"));
if (nextText != none) {
gameTypeClass = nextText.ToPlainString();
gameTypeClass = nextText.ToString();
}
nextText = source.GetText(P("acronym"));
if (nextText != none) {
acronym = nextText.ToPlainString();
acronym = nextText.ToString();
}
nextText = source.GetText(P("mapPrefix"));
if (nextText != none) {
mapPrefix = nextText.ToPlainString();
mapPrefix = nextText.ToString();
}
nextArray = source.GetDynamicArray(P("option"));
if (nextArray == none) {
@ -112,11 +112,11 @@ protected function FromData(AssociativeArray source)
nextPair.value = "";
nextText = source.GetText(P("key"));
if (nextText != none) {
nextPair.key = nextText.ToPlainString();
nextPair.key = nextText.ToString();
}
nextText = source.GetText(P("value"));
if (nextText != none) {
nextPair.value = nextText.ToPlainString();
nextPair.value = nextText.ToString();
}
option[option.length] = nextPair;
}

6
sources/VotingHandlerAdapter.uc

@ -174,8 +174,8 @@ private function string BuildOptionsString(GameMode gameMode)
options = gameMode.GetOptions();
for (iter = options.Iterate(); !iter.HasFinished(); iter.Next())
{
nextKey = Text(iter.GetKey()).ToPlainString();
nextValue = Text(iter.Get()).ToPlainString();
nextKey = Text(iter.GetKey()).ToString();
nextValue = Text(iter.Get()).ToString();
if (optionWasAdded) {
result $= "?";
}
@ -227,7 +227,7 @@ public final function PrepareForServerTravel()
nextGameClass = class<GameInfo>(_.memory.LoadClassS(nextGameClassName));
}
default.isServerTraveling = true;
default.targetGameMode = availableGameModes[pickedVHConfig].ToPlainString();
default.targetGameMode = availableGameModes[pickedVHConfig].ToString();
nextGameMode = GetConfigFromString(default.targetGameMode);
default.storedGameDifficulty = nextGameClass.default.gameDifficulty;
nextGameClass.default.gameDifficulty = GetNumericDifficulty(nextGameMode);

Loading…
Cancel
Save