public XmlCookedDefinition(XmlCookedAttribute rootElement, Dictionary <uint, XmlCookedElement> xmlElements, Type xmlObjectType) { Attributes = rootElement; Elements = xmlElements; XmlObjectType = xmlObjectType; foreach (XmlCookedElement xmlElement in xmlElements.Values) { if (xmlElement.IsCustomOrigin) { continue; } if (xmlElement.IsResurrection) { ResurrectionElementCount++; } if (xmlElement.IsTestCentre) { TestCentreElementCount++; } if (!xmlElement.IsResurrection && !xmlElement.IsTestCentre) { SinglePlayerElementCount++; } } }
public XmlCookedElement(XmlCookedAttribute xmlAttribute, ObjectDelegator.FieldDelegate fieldDelegate) { XmlAttribute = xmlAttribute; FieldDelegate = fieldDelegate; }
public XmlCookedDefinition(XmlCookedAttribute rootElement, Dictionary<uint, XmlCookedElement> xmlElements, Type xmlObjectType) { Attributes = rootElement; Elements = xmlElements; XmlObjectType = xmlObjectType; foreach (XmlCookedElement xmlElement in xmlElements.Values) { if (xmlElement.IsCustomOrigin) continue; if (xmlElement.IsResurrection) ResurrectionElementCount++; if (xmlElement.IsTestCentre) TestCentreElementCount++; if (!xmlElement.IsResurrection && !xmlElement.IsTestCentre) SinglePlayerElementCount++; } }