diff options
author | Teravus Ovares (Dan Olivares) | 2009-08-12 23:34:12 -0400 |
---|---|---|
committer | Teravus Ovares (Dan Olivares) | 2009-08-12 23:34:12 -0400 |
commit | 0a85d1d767d5ab3b37a3a1a797be843d0b54780e (patch) | |
tree | 5e05a0533fa6c54229a17cf1f6712bfdf7e52493 /OpenSim/Framework/Animation.cs | |
parent | minor: comments (diff) | |
download | opensim-SC_OLD-0a85d1d767d5ab3b37a3a1a797be843d0b54780e.zip opensim-SC_OLD-0a85d1d767d5ab3b37a3a1a797be843d0b54780e.tar.gz opensim-SC_OLD-0a85d1d767d5ab3b37a3a1a797be843d0b54780e.tar.bz2 opensim-SC_OLD-0a85d1d767d5ab3b37a3a1a797be843d0b54780e.tar.xz |
minor:comments
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Animation.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/OpenSim/Framework/Animation.cs b/OpenSim/Framework/Animation.cs index 9f86513..232f5a1 100644 --- a/OpenSim/Framework/Animation.cs +++ b/OpenSim/Framework/Animation.cs | |||
@@ -31,10 +31,17 @@ using OpenMetaverse.StructuredData; | |||
31 | 31 | ||
32 | namespace OpenSim.Framework | 32 | namespace OpenSim.Framework |
33 | { | 33 | { |
34 | /// <summary> | ||
35 | /// Information about an Animation | ||
36 | /// </summary> | ||
34 | [Serializable] | 37 | [Serializable] |
35 | public class Animation | 38 | public class Animation |
36 | { | 39 | { |
37 | private UUID animID; | 40 | private UUID animID; |
41 | |||
42 | /// <summary> | ||
43 | /// ID of Animation | ||
44 | /// </summary> | ||
38 | public UUID AnimID | 45 | public UUID AnimID |
39 | { | 46 | { |
40 | get { return animID; } | 47 | get { return animID; } |
@@ -49,6 +56,10 @@ namespace OpenSim.Framework | |||
49 | } | 56 | } |
50 | 57 | ||
51 | private UUID objectID; | 58 | private UUID objectID; |
59 | |||
60 | /// <summary> | ||
61 | /// Unique ID of object that is being animated | ||
62 | /// </summary> | ||
52 | public UUID ObjectID | 63 | public UUID ObjectID |
53 | { | 64 | { |
54 | get { return objectID; } | 65 | get { return objectID; } |
@@ -59,6 +70,12 @@ namespace OpenSim.Framework | |||
59 | { | 70 | { |
60 | } | 71 | } |
61 | 72 | ||
73 | /// <summary> | ||
74 | /// Creates an Animation based on the data | ||
75 | /// </summary> | ||
76 | /// <param name="animID">UUID ID of animation</param> | ||
77 | /// <param name="sequenceNum"></param> | ||
78 | /// <param name="objectID">ID of object to be animated</param> | ||
62 | public Animation(UUID animID, int sequenceNum, UUID objectID) | 79 | public Animation(UUID animID, int sequenceNum, UUID objectID) |
63 | { | 80 | { |
64 | this.animID = animID; | 81 | this.animID = animID; |
@@ -66,11 +83,20 @@ namespace OpenSim.Framework | |||
66 | this.objectID = objectID; | 83 | this.objectID = objectID; |
67 | } | 84 | } |
68 | 85 | ||
86 | /// <summary> | ||
87 | /// Animation from OSDMap from LLSD XML or LLSD json | ||
88 | /// </summary> | ||
89 | /// <param name="args"></param> | ||
69 | public Animation(OSDMap args) | 90 | public Animation(OSDMap args) |
70 | { | 91 | { |
71 | UnpackUpdateMessage(args); | 92 | UnpackUpdateMessage(args); |
72 | } | 93 | } |
73 | 94 | ||
95 | |||
96 | /// <summary> | ||
97 | /// Pack this object up as an OSDMap for transferring via LLSD XML or LLSD json | ||
98 | /// </summary> | ||
99 | /// <returns></returns> | ||
74 | public OSDMap PackUpdateMessage() | 100 | public OSDMap PackUpdateMessage() |
75 | { | 101 | { |
76 | OSDMap anim = new OSDMap(); | 102 | OSDMap anim = new OSDMap(); |
@@ -80,6 +106,10 @@ namespace OpenSim.Framework | |||
80 | return anim; | 106 | return anim; |
81 | } | 107 | } |
82 | 108 | ||
109 | /// <summary> | ||
110 | /// Fill object with data from OSDMap | ||
111 | /// </summary> | ||
112 | /// <param name="args"></param> | ||
83 | public void UnpackUpdateMessage(OSDMap args) | 113 | public void UnpackUpdateMessage(OSDMap args) |
84 | { | 114 | { |
85 | if (args["animation"] != null) | 115 | if (args["animation"] != null) |