\r
namespace Crow\r
{\r
- public struct Color : IXmlSerializable\r
+ public struct Color\r
{\r
#region CTOR\r
public Color(double _R, double _G, double _B, double _A)\r
public static readonly Color Zaffre = new Color(0,0.0784313725490196,0.658823529411765,1.0,"Zaffre");\r
public static readonly Color ZinnwalditeBrown = new Color(0.172549019607843,0.0862745098039216,0.0313725490196078,1.0,"ZinnwalditeBrown");\r
#endregion\r
- \r
- #region IXmlSerializable\r
- public void ReadXml(System.Xml.XmlReader reader)\r
- {\r
- string[] c = reader["Color"].Split(new char[] { ';' }); \r
- R = double.Parse(c[0]);\r
- G = double.Parse(c[1]);\r
- B = double.Parse(c[2]);\r
- A = double.Parse(c[3]);\r
- }\r
- public void WriteXml(System.Xml.XmlWriter writer)\r
- {\r
- writer.WriteAttributeString("Color", this.ToString());\r
- }\r
- public System.Xml.Schema.XmlSchema GetSchema()\r
- {\r
- return null;\r
- }\r
- #endregion\r
\r
public override string ToString()\r
{\r