aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-02 11:13:29 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-02 11:13:29 +0100
commite09e8bcea8a18c5ae7e8032c071fa050171507ea (patch)
tree66226b9ab8ad7d63fa131e60cf29bceae1c5c766 /src
parent4af2d6a0f4d5f5c8c39ad053a3ddadfa0402a92b (diff)
removed ixmlserializable from color, not functionnal
Diffstat (limited to 'src')
-rw-r--r--src/Colors.cs21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/Colors.cs b/src/Colors.cs
index de41514a..61f9208f 100644
--- a/src/Colors.cs
+++ b/src/Colors.cs
@@ -10,7 +10,7 @@ using System.Diagnostics;
namespace Crow
{
- public struct Color : IXmlSerializable
+ public struct Color
{
#region CTOR
public Color(double _R, double _G, double _B, double _A)
@@ -1018,25 +1018,6 @@ namespace Crow
public static readonly Color Zaffre = new Color(0,0.0784313725490196,0.658823529411765,1.0,"Zaffre");
public static readonly Color ZinnwalditeBrown = new Color(0.172549019607843,0.0862745098039216,0.0313725490196078,1.0,"ZinnwalditeBrown");
#endregion
-
- #region IXmlSerializable
- public void ReadXml(System.Xml.XmlReader reader)
- {
- string[] c = reader["Color"].Split(new char[] { ';' });
- R = double.Parse(c[0]);
- G = double.Parse(c[1]);
- B = double.Parse(c[2]);
- A = double.Parse(c[3]);
- }
- public void WriteXml(System.Xml.XmlWriter writer)
- {
- writer.WriteAttributeString("Color", this.ToString());
- }
- public System.Xml.Schema.XmlSchema GetSchema()
- {
- return null;
- }
- #endregion
public override string ToString()
{