Lower player name through Eve settings surface

This commit is contained in:
Meta Vens 2026-06-16 19:45:39 +01:00
commit 65a5a56635
8 changed files with 111 additions and 38 deletions

View file

@ -116,10 +116,22 @@ public class ActionGameManager : MonoBehaviour
QueueRuntimePlayerSettingsCommit();
}
public static bool CommitRuntimePlayerSettingsCommand(string command)
public static bool CommitRuntimePlayerSettingsCommand(
string command,
IReadOnlyDictionary<string, string> payload = null)
{
switch (command)
{
case AetheriaRuntimePlayerSettingsCommands.SetPlayerName:
if (payload != null && payload.TryGetValue("value", out var playerName))
{
CommitRuntimePlayerName(playerName);
}
else
{
CommitRuntimePlayerName("");
}
return true;
case AetheriaRuntimePlayerSettingsCommands.CycleTemperatureUnit:
CommitRuntimeTemperatureUnit(
RuntimePlayerSettings.GameplaySettings.TemperatureUnit switch