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>
36 lines
790 B
C#
36 lines
790 B
C#
using System.Collections.Generic;
|
|
using System.Xml;
|
|
|
|
namespace TeslaConsole.RedPlanet;
|
|
|
|
public class FootballScenario : Scenario
|
|
{
|
|
private Dictionary<string, RPTeam> mTeams = new Dictionary<string, RPTeam>();
|
|
|
|
private Dictionary<string, string> mPositions = new Dictionary<string, string>();
|
|
|
|
public Dictionary<string, RPTeam> Teams => mTeams;
|
|
|
|
public Dictionary<string, string> Positions => mPositions;
|
|
|
|
internal FootballScenario(XmlNode scenarioNode)
|
|
: base(scenarioNode)
|
|
{
|
|
foreach (XmlNode childNode in scenarioNode.ChildNodes)
|
|
{
|
|
switch (childNode.Name)
|
|
{
|
|
case "position":
|
|
RPConfig.AddKeyNameNode(childNode, mPositions);
|
|
break;
|
|
case "team":
|
|
{
|
|
RPTeam rPTeam = new RPTeam(childNode);
|
|
mTeams.Add(rPTeam.Key, rPTeam);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|