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++;
                }
            }
        }
Esempio n. 2
0
 public XmlCookedElement(XmlCookedAttribute xmlAttribute, ObjectDelegator.FieldDelegate fieldDelegate)
 {
     XmlAttribute  = xmlAttribute;
     FieldDelegate = fieldDelegate;
 }
Esempio n. 3
0
 public XmlCookedElement(XmlCookedAttribute xmlAttribute, ObjectDelegator.FieldDelegate fieldDelegate)
 {
     XmlAttribute = xmlAttribute;
     FieldDelegate = fieldDelegate;
 }
Esempio n. 4
0
        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++;
            }
        }