30 using OpenMetaverse.StructuredData;
32 namespace OpenSim.Framework
47 get {
return animID; }
48 set { animID = value; }
51 private int sequenceNum;
52 public int SequenceNum
54 get {
return sequenceNum; }
55 set { sequenceNum = value; }
58 private UUID objectID;
65 get {
return objectID; }
66 set { objectID = value; }
79 public Animation(UUID animID,
int sequenceNum, UUID objectID)
82 this.sequenceNum = sequenceNum;
83 this.objectID = objectID;
92 UnpackUpdateMessage(args);
103 anim[
"animation"] = OSD.FromUUID(animID);
104 anim[
"object_id"] = OSD.FromUUID(objectID);
105 anim[
"seq_num"] = OSD.FromInteger(sequenceNum);
115 if (args[
"animation"] != null)
116 animID = args[
"animation"].AsUUID();
117 if (args[
"object_id"] != null)
118 objectID = args[
"object_id"].AsUUID();
119 if (args[
"seq_num"] != null)
120 sequenceNum = args[
"seq_num"].AsInteger();
128 return (other.
AnimID.Equals(
this.AnimID)
129 && other.SequenceNum == this.SequenceNum
130 && other.ObjectID.Equals(this.ObjectID) );
132 return base.Equals(obj);
137 return base.GetHashCode();
142 return "AnimID=" + AnimID.ToString()
143 +
"/seq=" + SequenceNum.ToString()
144 +
"/objID=" + ObjectID.ToString();
Information about an Animation
OpenMetaverse.StructuredData.OSDMap OSDMap
UUID AnimID
ID of Animation
void UnpackUpdateMessage(OSDMap args)
Fill object with data from OSDMap
override bool Equals(object obj)
Animation(UUID animID, int sequenceNum, UUID objectID)
Creates an Animation based on the data
OpenSim.Framework.Animation Animation
override string ToString()
OSDMap PackUpdateMessage()
Pack this object up as an OSDMap for transferring via LLSD XML or LLSD json
Animation(OSDMap args)
Animation from OSDMap from LLSD XML or LLSD json
override int GetHashCode()