diff options
author | Teravus Ovares | 2007-11-13 22:48:19 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-11-13 22:48:19 +0000 |
commit | 9f6b3e2357e76b9b85b447da189b4bf4163edd3c (patch) | |
tree | 7d9c39258e45e6271db953608e6868433f9ac70d /OpenSim/Region/ClientStack | |
parent | first pass on unlinking of objects. From Jay Clarke (IBM) (diff) | |
download | opensim-SC_OLD-9f6b3e2357e76b9b85b447da189b4bf4163edd3c.zip opensim-SC_OLD-9f6b3e2357e76b9b85b447da189b4bf4163edd3c.tar.gz opensim-SC_OLD-9f6b3e2357e76b9b85b447da189b4bf4163edd3c.tar.bz2 opensim-SC_OLD-9f6b3e2357e76b9b85b447da189b4bf4163edd3c.tar.xz |
* Added AvatarPicker in Standalone mode. Works for finding avatar to ban, manually trying to add a friend (with the add button) or useful to those who are curious which usernames have visited your standalone sim. Important for future development :D.
* Grid mode always returns 0 results until the Grid Communications portion is done.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.API.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 11 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 15 |
3 files changed, 25 insertions, 6 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index b24b207..77c1701 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs | |||
@@ -55,6 +55,7 @@ namespace OpenSim.Region.ClientStack | |||
55 | public event UpdateAgent OnAgentUpdate; | 55 | public event UpdateAgent OnAgentUpdate; |
56 | public event AgentRequestSit OnAgentRequestSit; | 56 | public event AgentRequestSit OnAgentRequestSit; |
57 | public event AgentSit OnAgentSit; | 57 | public event AgentSit OnAgentSit; |
58 | public event AvatarPickerRequest OnAvatarPickerRequest; | ||
58 | public event StartAnim OnStartAnim; | 59 | public event StartAnim OnStartAnim; |
59 | public event Action<IClientAPI> OnRequestAvatarsData; | 60 | public event Action<IClientAPI> OnRequestAvatarsData; |
60 | public event LinkObjects OnLinkObjects; | 61 | public event LinkObjects OnLinkObjects; |
@@ -705,6 +706,10 @@ namespace OpenSim.Region.ClientStack | |||
705 | sendXfer.DataPacket.Data = data; | 706 | sendXfer.DataPacket.Data = data; |
706 | OutPacket(sendXfer); | 707 | OutPacket(sendXfer); |
707 | } | 708 | } |
709 | public void SendAvatarPickerReply(AvatarPickerReplyPacket replyPacket) | ||
710 | { | ||
711 | OutPacket(replyPacket); | ||
712 | } | ||
708 | 713 | ||
709 | /// <summary> | 714 | /// <summary> |
710 | /// | 715 | /// |
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index 82ad1c8..1383ad9 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -217,7 +217,16 @@ namespace OpenSim.Region.ClientStack | |||
217 | OnAgentSit(this, agentSit.AgentData.AgentID); | 217 | OnAgentSit(this, agentSit.AgentData.AgentID); |
218 | } | 218 | } |
219 | break; | 219 | break; |
220 | 220 | case PacketType.AvatarPickerRequest: | |
221 | AvatarPickerRequestPacket avRequestQuery = (AvatarPickerRequestPacket)Pack; | ||
222 | AvatarPickerRequestPacket.AgentDataBlock Requestdata = avRequestQuery.AgentData; | ||
223 | AvatarPickerRequestPacket.DataBlock querydata = avRequestQuery.Data; | ||
224 | //System.Console.WriteLine("Agent Sends:" + Helpers.FieldToUTF8String(querydata.Name)); | ||
225 | if (OnAvatarPickerRequest != null) | ||
226 | { | ||
227 | OnAvatarPickerRequest(this, Requestdata.AgentID, Requestdata.QueryID, Helpers.FieldToUTF8String(querydata.Name)); | ||
228 | } | ||
229 | break; | ||
221 | #endregion | 230 | #endregion |
222 | 231 | ||
223 | #region Objects/m_sceneObjects | 232 | #region Objects/m_sceneObjects |
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index 839556d..353a24c 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -295,11 +295,16 @@ namespace OpenSim.Region.ClientStack | |||
295 | queuedLast = false; | 295 | queuedLast = false; |
296 | 296 | ||
297 | // TODO: May be a bit expensive doing this twice. | 297 | // TODO: May be a bit expensive doing this twice. |
298 | throttleSentPeriod += nextPacket.Packet.ToBytes().Length; | 298 | |
299 | 299 | //Don't throttle AvatarPickerReplies!, they return a null .ToBytes()! | |
300 | //is a out going packet | 300 | if (nextPacket.Packet.Type != PacketType.AvatarPickerReply) |
301 | DebugPacket("OUT", nextPacket.Packet); | 301 | throttleSentPeriod += nextPacket.Packet.ToBytes().Length; |
302 | ProcessOutPacket(nextPacket.Packet); | 302 | |
303 | |||
304 | //is a out going packet | ||
305 | DebugPacket("OUT", nextPacket.Packet); | ||
306 | ProcessOutPacket(nextPacket.Packet); | ||
307 | |||
303 | } | 308 | } |
304 | } | 309 | } |
305 | } | 310 | } |