public MappingFeedback(Mapping mapping) { _mapping = mapping; ScreenVecs = new Vector4[2]; }
void ProcessSet(XmlNode set) { var xmlMappings = set.SelectNodes("/Mapping"); for (int cnt = 0; cnt < xmlMappings.Count; cnt++) { XmlNode xmlMap = xmlMappings[cnt]; string id = xmlMap.Attributes["id"].Value; string label = AttrAsString(xmlMap, "label", ""); var processor = ReadXmlProcessor(xmlMap.SelectSingleNode("/Processor"), null); var outputs = ReadXmlOutputs(xmlMap.SelectSingleNode("/Output")); var mapping = new Mapping(id, label, processor, outputs.ToArray()); _mappings.Add(mapping); } }