diff options
Diffstat (limited to 'OpenSim/Framework/Animation.cs')
-rw-r--r-- | OpenSim/Framework/Animation.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Framework/Animation.cs b/OpenSim/Framework/Animation.cs index 232f5a1..3425505 100644 --- a/OpenSim/Framework/Animation.cs +++ b/OpenSim/Framework/Animation.cs | |||
@@ -120,5 +120,24 @@ namespace OpenSim.Framework | |||
120 | sequenceNum = args["seq_num"].AsInteger(); | 120 | sequenceNum = args["seq_num"].AsInteger(); |
121 | } | 121 | } |
122 | 122 | ||
123 | public override bool Equals(object obj) | ||
124 | { | ||
125 | Animation other = obj as Animation; | ||
126 | if (other != null) | ||
127 | { | ||
128 | return (other.AnimID.Equals(this.AnimID) | ||
129 | && other.SequenceNum == this.SequenceNum | ||
130 | && other.ObjectID.Equals(this.ObjectID) ); | ||
131 | } | ||
132 | return base.Equals(obj); | ||
133 | } | ||
134 | |||
135 | public override string ToString() | ||
136 | { | ||
137 | return "AnimID=" + AnimID.ToString() | ||
138 | + "/seq=" + SequenceNum.ToString() | ||
139 | + "/objID=" + ObjectID.ToString(); | ||
140 | } | ||
141 | |||
123 | } | 142 | } |
124 | } | 143 | } |