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

            Name      = reader.ReadAttribute("Name", AttributeValueType.String);
            AssetName = reader.ReadAttribute("AssetName", AttributeValueType.String);

            Size = reader.ReadSize();
        }
Пример #2
0
        public void ParseValuesFrom(XElement xElement)
        {
            this.xElement = xElement;

            XAttributeReader reader = new XAttributeReader(xElement);

            Name        = reader.ReadAttribute("Name", AttributeValueType.String);
            Type        = reader.ReadAttribute("Type", AttributeValueType.String);
            Description = reader.ReadAttribute("Description", AttributeValueType.String);

            AssetName = reader.ReadAttribute("AssetName", AttributeValueType.String);
        }
Пример #3
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();
        }
Пример #4
0
        public void ParseValuesFrom(XElement xElement)
        {
            this.xElement = xElement;

            XAttributeReader reader = new XAttributeReader(xElement);

            Name        = reader.ReadAttribute("Name", AttributeValueType.String);
            AssetName   = reader.ReadAttribute("AssetName", AttributeValueType.String);
            Description = reader.ReadAttribute("Description", AttributeValueType.String);

            AddedStamina     = int.Parse(reader.ReadAttribute("MaxStamina", AttributeValueType.Number));
            RecoveredStamina = int.Parse(reader.ReadAttribute("Stamina", AttributeValueType.Number));

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

            Value = int.Parse(reader.ReadAttribute("Value", AttributeValueType.Number));

            Size = new Size(int.Parse(reader.ReadAttribute("Width", AttributeValueType.Number)),
                            int.Parse(reader.ReadAttribute("Height", AttributeValueType.Number)));
        }
Пример #5
0
        public virtual void ParseValuesFrom(XElement xElement)
        {
            this.xElement = xElement;

            XAttributeReader reader = new XAttributeReader(xElement);

            Name        = reader.ReadAttribute("Name", AttributeValueType.String);
            AssetName   = reader.ReadAttribute("AssetName", AttributeValueType.String);
            Description = reader.ReadAttribute("Description", AttributeValueType.String);

            MinPow = int.Parse(reader.ReadAttribute("MinPow", AttributeValueType.Number));
            MaxPow = int.Parse(reader.ReadAttribute("MaxPow", AttributeValueType.Number));

            PowTimestep = int.Parse(reader.ReadAttribute("PowTimestep", AttributeValueType.Number));

            Behaviour = reader.ReadAttribute("Behaviour", AttributeValueType.String);
        }