using System.Collections.Generic; using System.Xml; namespace TeslaConsole.RedPlanet; public class DeathRaceScenario : Scenario { private Dictionary mColors = new Dictionary(); private Dictionary mBadges = new Dictionary(); public Dictionary Colors => mColors; public Dictionary 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; } } } }