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>
33 lines
741 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|