[longomatch] Fix objects clonning



commit 0bb7cafd29fcc327f6be036b39a9b560d87dbd44
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Jun 30 13:47:10 2014 +0200

    Fix objects clonning

 LongoMatch.Core/Common/Area.cs                   |    1 +
 LongoMatch.Core/Store/Drawables/Angle.cs         |    1 +
 LongoMatch.Core/Store/Drawables/Counter.cs       |    4 ++++
 LongoMatch.Core/Store/Drawables/Cross.cs         |    1 +
 LongoMatch.Core/Store/Drawables/Drawable.cs      |    1 +
 LongoMatch.Core/Store/Drawables/Ellipse.cs       |    2 ++
 LongoMatch.Core/Store/Drawables/Line.cs          |    2 ++
 LongoMatch.Core/Store/Drawables/Quadrilateral.cs |    1 +
 LongoMatch.Core/Store/Drawables/Rectangle.cs     |    1 +
 LongoMatch.Core/Store/Drawables/Selection.cs     |    1 +
 LongoMatch.Core/Store/Drawables/Text.cs          |    1 +
 11 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Common/Area.cs b/LongoMatch.Core/Common/Area.cs
index b4745a6..7ba225f 100644
--- a/LongoMatch.Core/Common/Area.cs
+++ b/LongoMatch.Core/Common/Area.cs
@@ -20,6 +20,7 @@ using LongoMatch.Common;
 
 namespace LongoMatch.Common
 {
+       [Serializable]
        public class Area
        {
                public Area (Point start, double width, double height)
diff --git a/LongoMatch.Core/Store/Drawables/Angle.cs b/LongoMatch.Core/Store/Drawables/Angle.cs
index fa04b22..ba163bc 100644
--- a/LongoMatch.Core/Store/Drawables/Angle.cs
+++ b/LongoMatch.Core/Store/Drawables/Angle.cs
@@ -21,6 +21,7 @@ using LongoMatch.Common;
 
 namespace LongoMatch.Store.Drawables
 {
+       [Serializable]
        public class Angle: Drawable
        {
                public Angle ()
diff --git a/LongoMatch.Core/Store/Drawables/Counter.cs b/LongoMatch.Core/Store/Drawables/Counter.cs
index be355df..1ad6a13 100644
--- a/LongoMatch.Core/Store/Drawables/Counter.cs
+++ b/LongoMatch.Core/Store/Drawables/Counter.cs
@@ -20,8 +20,12 @@ using LongoMatch.Common;
 
 namespace LongoMatch.Store.Drawables
 {
+       [Serializable]
        public class Counter: Ellipse
        {
+               public Counter () {
+               }
+               
                public Counter (Point center, double axisX, double axisY, int count):
                        base (center, axisX, axisY)
                {
diff --git a/LongoMatch.Core/Store/Drawables/Cross.cs b/LongoMatch.Core/Store/Drawables/Cross.cs
index 1b417ed..fe3dec9 100644
--- a/LongoMatch.Core/Store/Drawables/Cross.cs
+++ b/LongoMatch.Core/Store/Drawables/Cross.cs
@@ -22,6 +22,7 @@ using LongoMatch.Common;
 
 namespace LongoMatch.Store.Drawables
 {
+       [Serializable]
        public class Cross: Drawable
        {
                public Cross ()
diff --git a/LongoMatch.Core/Store/Drawables/Drawable.cs b/LongoMatch.Core/Store/Drawables/Drawable.cs
index 18fb732..997a69e 100644
--- a/LongoMatch.Core/Store/Drawables/Drawable.cs
+++ b/LongoMatch.Core/Store/Drawables/Drawable.cs
@@ -22,6 +22,7 @@ using LongoMatch.Interfaces.Drawing;
 
 namespace LongoMatch.Store.Drawables
 {
+       [Serializable]
        public abstract class Drawable: IBlackboardObject
        {
                public Drawable ()
diff --git a/LongoMatch.Core/Store/Drawables/Ellipse.cs b/LongoMatch.Core/Store/Drawables/Ellipse.cs
index b2a3ff5..4e50b9d 100644
--- a/LongoMatch.Core/Store/Drawables/Ellipse.cs
+++ b/LongoMatch.Core/Store/Drawables/Ellipse.cs
@@ -21,8 +21,10 @@ using LongoMatch.Common;
 
 namespace LongoMatch.Store.Drawables
 {
+       [Serializable]
        public class Ellipse: Drawable
        {
+               
                public Ellipse ()
                {
                }
diff --git a/LongoMatch.Core/Store/Drawables/Line.cs b/LongoMatch.Core/Store/Drawables/Line.cs
index 0bea251..a918d57 100644
--- a/LongoMatch.Core/Store/Drawables/Line.cs
+++ b/LongoMatch.Core/Store/Drawables/Line.cs
@@ -21,8 +21,10 @@ using Newtonsoft.Json;
 
 namespace LongoMatch.Store.Drawables
 {
+       [Serializable]
        public class Line: Drawable
        {
+               
                public Line ()
                {
                }
diff --git a/LongoMatch.Core/Store/Drawables/Quadrilateral.cs 
b/LongoMatch.Core/Store/Drawables/Quadrilateral.cs
index 0cb4f01..5a1c54a 100644
--- a/LongoMatch.Core/Store/Drawables/Quadrilateral.cs
+++ b/LongoMatch.Core/Store/Drawables/Quadrilateral.cs
@@ -20,6 +20,7 @@ using LongoMatch.Common;
 
 namespace LongoMatch.Store.Drawables
 {
+       [Serializable]
        public class Quadrilateral: Drawable
        {
                public Quadrilateral ()
diff --git a/LongoMatch.Core/Store/Drawables/Rectangle.cs b/LongoMatch.Core/Store/Drawables/Rectangle.cs
index a66e42f..c9c8c90 100644
--- a/LongoMatch.Core/Store/Drawables/Rectangle.cs
+++ b/LongoMatch.Core/Store/Drawables/Rectangle.cs
@@ -22,6 +22,7 @@ using Newtonsoft.Json;
 
 namespace LongoMatch.Store.Drawables
 {
+       [Serializable]
        public class Rectangle: Quadrilateral
        {
                public Rectangle ()
diff --git a/LongoMatch.Core/Store/Drawables/Selection.cs b/LongoMatch.Core/Store/Drawables/Selection.cs
index 3f0a665..f45ce42 100644
--- a/LongoMatch.Core/Store/Drawables/Selection.cs
+++ b/LongoMatch.Core/Store/Drawables/Selection.cs
@@ -21,6 +21,7 @@ using LongoMatch.Interfaces.Drawing;
 
 namespace LongoMatch.Store.Drawables
 {
+       [Serializable]
        public class Selection
        {
                public Selection (IMovableObject drawable, SelectionPosition selpos, double accuracy=0)
diff --git a/LongoMatch.Core/Store/Drawables/Text.cs b/LongoMatch.Core/Store/Drawables/Text.cs
index 7ae92c3..c6a5058 100644
--- a/LongoMatch.Core/Store/Drawables/Text.cs
+++ b/LongoMatch.Core/Store/Drawables/Text.cs
@@ -20,6 +20,7 @@ using LongoMatch.Common;
 
 namespace LongoMatch.Store.Drawables
 {
+       [Serializable]
        public class Text: Rectangle
        {
                public Text () {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]