aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer/ClientView.API.cs
diff options
context:
space:
mode:
authorMW2007-05-31 14:22:14 +0000
committerMW2007-05-31 14:22:14 +0000
commita575bc38d61ac5cb74f60e0eee503ca7f3e99803 (patch)
tree1ff674910b118bb3939e351eaeff10546d25b0fc /OpenSim/OpenSim.RegionServer/ClientView.API.cs
parent(no commit message) (diff)
downloadopensim-SC_OLD-a575bc38d61ac5cb74f60e0eee503ca7f3e99803.zip
opensim-SC_OLD-a575bc38d61ac5cb74f60e0eee503ca7f3e99803.tar.gz
opensim-SC_OLD-a575bc38d61ac5cb74f60e0eee503ca7f3e99803.tar.bz2
opensim-SC_OLD-a575bc38d61ac5cb74f60e0eee503ca7f3e99803.tar.xz
More work on OpenGrid.Framework.Communications
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/ClientView.API.cs')
-rw-r--r--OpenSim/OpenSim.RegionServer/ClientView.API.cs56
1 files changed, 56 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.API.cs b/OpenSim/OpenSim.RegionServer/ClientView.API.cs
index e7db495..b7d87ed 100644
--- a/OpenSim/OpenSim.RegionServer/ClientView.API.cs
+++ b/OpenSim/OpenSim.RegionServer/ClientView.API.cs
@@ -36,6 +36,9 @@ namespace OpenSim
36 public event NewAvatar OnNewAvatar; 36 public event NewAvatar OnNewAvatar;
37 public event GenericCall6 OnRemoveAvatar; 37 public event GenericCall6 OnRemoveAvatar;
38 38
39 /// <summary>
40 ///
41 /// </summary>
39 public LLVector3 StartPos 42 public LLVector3 StartPos
40 { 43 {
41 get 44 get
@@ -48,6 +51,9 @@ namespace OpenSim
48 } 51 }
49 } 52 }
50 53
54 /// <summary>
55 ///
56 /// </summary>
51 public LLUUID AgentId 57 public LLUUID AgentId
52 { 58 {
53 get 59 get
@@ -56,6 +62,9 @@ namespace OpenSim
56 } 62 }
57 } 63 }
58 64
65 /// <summary>
66 ///
67 /// </summary>
59 public string FirstName 68 public string FirstName
60 { 69 {
61 get 70 get
@@ -65,6 +74,9 @@ namespace OpenSim
65 74
66 } 75 }
67 76
77 /// <summary>
78 ///
79 /// </summary>
68 public string LastName 80 public string LastName
69 { 81 {
70 get 82 get
@@ -75,6 +87,10 @@ namespace OpenSim
75 87
76 #region World/Avatar to Client 88 #region World/Avatar to Client
77 89
90 /// <summary>
91 ///
92 /// </summary>
93 /// <param name="regInfo"></param>
78 public void MoveAgentIntoRegion(RegionInfo regInfo) 94 public void MoveAgentIntoRegion(RegionInfo regInfo)
79 { 95 {
80 AgentMovementCompletePacket mov = new AgentMovementCompletePacket(); 96 AgentMovementCompletePacket mov = new AgentMovementCompletePacket();
@@ -88,6 +104,15 @@ namespace OpenSim
88 104
89 OutPacket(mov); 105 OutPacket(mov);
90 } 106 }
107
108 /// <summary>
109 ///
110 /// </summary>
111 /// <param name="message"></param>
112 /// <param name="type"></param>
113 /// <param name="fromPos"></param>
114 /// <param name="fromName"></param>
115 /// <param name="fromAgentID"></param>
91 public void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID) 116 public void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName, LLUUID fromAgentID)
92 { 117 {
93 System.Text.Encoding enc = System.Text.Encoding.ASCII; 118 System.Text.Encoding enc = System.Text.Encoding.ASCII;
@@ -104,6 +129,10 @@ namespace OpenSim
104 this.OutPacket(reply); 129 this.OutPacket(reply);
105 } 130 }
106 131
132 /// <summary>
133 ///
134 /// </summary>
135 /// <param name="wearables"></param>
107 public void SendWearables(AvatarWearable[] wearables) 136 public void SendWearables(AvatarWearable[] wearables)
108 { 137 {
109 AgentWearablesUpdatePacket aw = new AgentWearablesUpdatePacket(); 138 AgentWearablesUpdatePacket aw = new AgentWearablesUpdatePacket();
@@ -125,6 +154,12 @@ namespace OpenSim
125 this.OutPacket(aw); 154 this.OutPacket(aw);
126 } 155 }
127 156
157 /// <summary>
158 ///
159 /// </summary>
160 /// <param name="agentID"></param>
161 /// <param name="visualParams"></param>
162 /// <param name="textureEntry"></param>
128 public void SendAppearance(LLUUID agentID, byte[] visualParams, byte[] textureEntry) 163 public void SendAppearance(LLUUID agentID, byte[] visualParams, byte[] textureEntry)
129 { 164 {
130 AvatarAppearancePacket avp = new AvatarAppearancePacket(); 165 AvatarAppearancePacket avp = new AvatarAppearancePacket();
@@ -200,6 +235,10 @@ namespace OpenSim
200 } 235 }
201 } 236 }
202 237
238 /// <summary>
239 ///
240 /// </summary>
241 /// <param name="regionInfo"></param>
203 public void SendRegionHandshake(RegionInfo regionInfo) 242 public void SendRegionHandshake(RegionInfo regionInfo)
204 { 243 {
205 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE, "Avatar.cs:SendRegionHandshake() - Creating empty RegionHandshake packet"); 244 OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.VERBOSE, "Avatar.cs:SendRegionHandshake() - Creating empty RegionHandshake packet");
@@ -240,6 +279,15 @@ namespace OpenSim
240 OutPacket(handshake); 279 OutPacket(handshake);
241 } 280 }
242 281
282 /// <summary>
283 ///
284 /// </summary>
285 /// <param name="regionInfo"></param>
286 /// <param name="firstName"></param>
287 /// <param name="lastName"></param>
288 /// <param name="avatarID"></param>
289 /// <param name="avatarLocalID"></param>
290 /// <param name="Pos"></param>
243 public void SendAvatarData(RegionInfo regionInfo, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos) 291 public void SendAvatarData(RegionInfo regionInfo, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos)
244 { 292 {
245 System.Text.Encoding _enc = System.Text.Encoding.ASCII; 293 System.Text.Encoding _enc = System.Text.Encoding.ASCII;
@@ -263,6 +311,10 @@ namespace OpenSim
263 311
264 } 312 }
265 313
314 /// <summary>
315 ///
316 /// </summary>
317 /// <param name="objdata"></param>
266 protected void SetDefaultPacketValues(ref ObjectUpdatePacket.ObjectDataBlock objdata) 318 protected void SetDefaultPacketValues(ref ObjectUpdatePacket.ObjectDataBlock objdata)
267 { 319 {
268 objdata.PSBlock = new byte[0]; 320 objdata.PSBlock = new byte[0];
@@ -291,6 +343,10 @@ namespace OpenSim
291 objdata.ObjectData[64] = 189; 343 objdata.ObjectData[64] = 189;
292 } 344 }
293 345
346 /// <summary>
347 ///
348 /// </summary>
349 /// <returns></returns>
294 protected ObjectUpdatePacket.ObjectDataBlock CreateDefaultAvatarPacket() 350 protected ObjectUpdatePacket.ObjectDataBlock CreateDefaultAvatarPacket()
295 { 351 {
296 libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock objdata = new ObjectUpdatePacket.ObjectDataBlock(); // new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock(data1, ref i); 352 libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock objdata = new ObjectUpdatePacket.ObjectDataBlock(); // new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock(data1, ref i);