Files
TeslaSuite/Console/TeslaConsole.RedPlanet/DeathRaceScenario.cs
T
CydandClaude Opus 4.8 548550b312 Initial commit: TeslaSuite monorepo (TeslaConsole + TeslaLauncher)
Co-locate the two cockpit-pod projects into a single repository:

- Console/  : TeslaConsole, the net48 WinForms operator console (decompiled
              reconstruction) plus its differential + catalog test suite.
- Launcher/ : TeslaLauncher, the net6 pod-side Service + Agent rewrite.

Adds a combined TeslaSuite.sln, root README documenting the shared wire
contract (and its current duplication, the main follow-up), and a root
.gitignore. Histories were not preserved per request; this is a fresh start
from the current working state of both projects.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 14:43:28 -05:00

33 lines
741 B
C#

using System.Collections.Generic;
using System.Xml;
namespace TeslaConsole.RedPlanet;
public class DeathRaceScenario : Scenario
{
private Dictionary<string, string> mColors = new Dictionary<string, string>();
private Dictionary<string, string> mBadges = new Dictionary<string, string>();
public Dictionary<string, string> Colors => mColors;
public Dictionary<string, string> Badges => mBadges;
internal DeathRaceScenario(XmlNode scenarioNode)
: base(scenarioNode)
{
foreach (XmlNode childNode in scenarioNode.ChildNodes)
{
switch (childNode.Name)
{
case "color":
RPConfig.AddKeyNameNode(childNode, mColors);
break;
case "badge":
RPConfig.AddKeyNameNode(childNode, mBadges);
break;
}
}
}
}