public override void ReadXml(System.Xml.XmlReader reader) { this.FileId = reader["FileId"]; this.Volume = reader.ReadAttrAsFloat("Volume"); this.IsLooped = reader.ReadAttrAsBoolean("IsLooped"); base.ReadXml(reader); }
public override void ReadXml(System.Xml.XmlReader reader) { reader.ReadAttrAsFloat("Pitch", ref this.Pitch); reader.ReadAttrAsFloat("Pan", ref this.Pan); base.ReadXml(reader); }
public override void ReadXml(System.Xml.XmlReader reader) { Color color = Color.White; double f = 0; reader.ReadAttrAsBoolean("IsRoot", ref this.IsRoot); reader.ReadAttrAsFloat("Opacity", ref this.Opacity); reader.ReadAttrAsFloat("Rotation", ref this.Rotation); reader.ReadAttrAsVector2("ScaleVector", ref this.ScaleVector); reader.ReadAttrAsRectF("Bounds", ref this.Bounds); if (reader.ReadAttrAsColor("BackColor", ref color)) this.BackColor = color; if (reader.ReadAttrAsVector2("Origin", ref tmpVector1)) this.Origin = tmpVector1; if (reader.ReadAttrAsVector2("RotationCenter", ref tmpVector1)) this.RotationCenter = tmpVector1; if (reader.ReadAttrAsFloat("Scale", ref f)) this.Scale = f; if (reader.ReadAttrAsFloat("Depth", ref f)) this.Depth = (float)f; if (reader.ReadAttrAsVector2("Location", ref tmpVector1)) this.Location = tmpVector1; if (reader.ReadAttrAsVector2("Center", ref tmpVector1)) this.Center = tmpVector1; base.ReadXml(reader); }
public override void ReadXml(System.Xml.XmlReader reader) { reader.ReadAttrAsFloat("DefaultSpeed", ref this.DefaultSpeed); reader.ReadAttrAsFloat("Speed", ref this.Speed); reader.ReadAttrAsFloat("Deceleration", ref this.Deceleration); reader.ReadAttrAsVector2("Direction", ref this.Direction); base.ReadXml(reader); }
public override void ReadXml(System.Xml.XmlReader reader) { this.SignalSpeed = reader.ReadAttrAsFloat("SignalSpeed"); base.ReadXml(reader); }
public override void ReadXml(System.Xml.XmlReader reader) { this.InProgress = reader.ReadAttrAsBoolean("InProgress"); reader.ReadAttrAsFloat("RepeatTime", ref this.RepeatTime); reader.ReadAttrAsFloat("RepeatCount", ref this.RepeatCount); base.ReadXml(reader); }
public override void ReadXml(System.Xml.XmlReader reader) { this.Points = reader.ReadAttrAsFloat("Points", 0); base.ReadXml(reader); }