private void CreateObject(XElement xObject)
        {
            // Templates may add extra data
            ApplyTemplate(xObject);

            // Create the super object and fill it out
            var superObject = CreateSuperObject(xObject);

            FillSuperObject(superObject, xObject);

            // Take care of properties
            Importer.AddSuperCustomProperties(superObject.gameObject, xObject.Element("properties"), superObject.m_SuperTile, superObject.m_Type);
        }
Esempio n. 2
0
        private void CreateObject(XElement xObject)
        {
            // Templates may add extra data
            Importer.ApplyTemplateToObject(xObject);

            // Create the super object and fill it out
            var superObject = CreateSuperObject(xObject);

            FillSuperObject(superObject, xObject);

            // Take care of properties
            Importer.AddSuperCustomProperties(superObject.gameObject, xObject.Element("properties"), superObject.m_SuperTile, superObject.m_Type);

            // Post processing after custom properties have been set
            PostProcessObject(superObject.gameObject);
        }