diff options
author | Jeff Ames | 2007-10-28 03:58:46 +0000 |
---|---|---|
committer | Jeff Ames | 2007-10-28 03:58:46 +0000 |
commit | 2cf117cc6c2c7cf106fa83785621577a8b713529 (patch) | |
tree | 2978d78b209cd891133521e3b7f618af5113e78a /OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |
parent | *Replaced -useexecutepath with an updated -inifile extension. You can now spe... (diff) | |
download | opensim-SC-2cf117cc6c2c7cf106fa83785621577a8b713529.zip opensim-SC-2cf117cc6c2c7cf106fa83785621577a8b713529.tar.gz opensim-SC-2cf117cc6c2c7cf106fa83785621577a8b713529.tar.bz2 opensim-SC-2cf117cc6c2c7cf106fa83785621577a8b713529.tar.xz |
Added preliminary support for sitting on prims
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index 05b1118..65a0e44 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -34,6 +34,7 @@ using OpenSim.Framework.Inventory; | |||
34 | using OpenSim.Framework.Types; | 34 | using OpenSim.Framework.Types; |
35 | using OpenSim.Framework.Utilities; | 35 | using OpenSim.Framework.Utilities; |
36 | using OpenSim.Framework.Interfaces; | 36 | using OpenSim.Framework.Interfaces; |
37 | using OpenSim.Region.Environment.Scenes; | ||
37 | 38 | ||
38 | namespace OpenSim.Region.ClientStack | 39 | namespace OpenSim.Region.ClientStack |
39 | { | 40 | { |
@@ -198,6 +199,21 @@ namespace OpenSim.Region.ClientStack | |||
198 | } | 199 | } |
199 | } | 200 | } |
200 | break; | 201 | break; |
202 | case PacketType.AgentRequestSit: | ||
203 | AgentRequestSitPacket agentRequestSit = (AgentRequestSitPacket)Pack; | ||
204 | SendSitResponse(agentRequestSit.TargetObject.TargetID, agentRequestSit.TargetObject.Offset); | ||
205 | if (OnAgentRequestSit != null) | ||
206 | { | ||
207 | OnAgentRequestSit(this, agentRequestSit.AgentData.AgentID, agentRequestSit.TargetObject.TargetID); | ||
208 | } | ||
209 | break; | ||
210 | case PacketType.AgentSit: | ||
211 | if (OnAgentSit != null) | ||
212 | { | ||
213 | AgentSitPacket agentSit = (AgentSitPacket) Pack; | ||
214 | OnAgentSit(this, agentSit.AgentData.AgentID); | ||
215 | } | ||
216 | break; | ||
201 | 217 | ||
202 | #endregion | 218 | #endregion |
203 | 219 | ||