Пример #1
0
        private void GetBasicValues(XElement xElement)
        {
            XAttributeReader reader = new XAttributeReader(xElement);

            AssetName = reader.ReadAttribute("AssetName", AttributeValueType.String);
            Position  = reader.ReadVector();
            Size      = reader.ReadSize();
        }
Пример #2
0
        public void ParseValuesFrom(XElement xElement)
        {
            this.xElement = xElement;

            XAttributeReader reader = new XAttributeReader(xElement);

            TeleportTo = reader.ReadAttribute("TeleportTo", AttributeValueType.String);

            PositionOffSet = reader.ReadVector();
            Size           = reader.ReadSize();
        }
Пример #3
0
        private void GetColliderValues(XElement xElement)
        {
            XElement colliderElement = xElement.Element("Collider");

            if (colliderElement != null)
            {
                XAttributeReader reader = new XAttributeReader(colliderElement);

                ColliderPositionOffSet = reader.ReadVector();
                ColliderSizeOffSet     = reader.ReadSize();
            }
        }