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(); }
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); }
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(); }
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))); }
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); }