aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorRobert Adams2013-05-30 14:30:45 -0700
committerRobert Adams2013-05-30 19:16:34 -0700
commit48a175eff760e04f8096acd404058755d7c2919c (patch)
tree981784779349517e7b3aae0d893a840d7cd3a4a4 /OpenSim/Framework
parentAdd region heartbeat start event to complement heartbeat end event. (diff)
downloadopensim-SC-48a175eff760e04f8096acd404058755d7c2919c.zip
opensim-SC-48a175eff760e04f8096acd404058755d7c2919c.tar.gz
opensim-SC-48a175eff760e04f8096acd404058755d7c2919c.tar.bz2
opensim-SC-48a175eff760e04f8096acd404058755d7c2919c.tar.xz
Add methods to Animation and AnimationSet for easier manipulation and
display of groups of animations (Equal(), ToString(), FromOSDArray(), ...). No functional change to animations.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Animation.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Framework/Animation.cs b/OpenSim/Framework/Animation.cs
index 232f5a1..8bdf8f4 100644
--- a/OpenSim/Framework/Animation.cs
+++ b/OpenSim/Framework/Animation.cs
@@ -120,5 +120,25 @@ 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 == this.AnimID
129 && other.SequenceNum == this.SequenceNum
130 && other.ObjectID == this.ObjectID);
131 }
132
133 return base.Equals(obj);
134 }
135
136 public override string ToString()
137 {
138 return "AnimID=" + AnimID.ToString()
139 + "/seq=" + SequenceNum.ToString()
140 + "/objID=" + ObjectID.ToString();
141 }
142
123 } 143 }
124} 144}