diff options
author | Teravus Ovares | 2008-05-14 04:57:32 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-05-14 04:57:32 +0000 |
commit | 9e8dd941f13c0a0b2a5e76cb69b055d7af02d3bc (patch) | |
tree | fcd58d2d0cce49d8052cb9419a0b2890152f82fa /OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |
parent | * Removed 19 warnings (diff) | |
download | opensim-SC-9e8dd941f13c0a0b2a5e76cb69b055d7af02d3bc.zip opensim-SC-9e8dd941f13c0a0b2a5e76cb69b055d7af02d3bc.tar.gz opensim-SC-9e8dd941f13c0a0b2a5e76cb69b055d7af02d3bc.tar.bz2 opensim-SC-9e8dd941f13c0a0b2a5e76cb69b055d7af02d3bc.tar.xz |
* Refactored OutPacket out of ScenePresence
* Down to 65 warnings.
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index e1e8854..b8f055e 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -5739,6 +5739,39 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5739 | offp.AgentBlock = offpb; | 5739 | offp.AgentBlock = offpb; |
5740 | OutPacket(offp, ThrottleOutPacketType.Task); | 5740 | OutPacket(offp, ThrottleOutPacketType.Task); |
5741 | } | 5741 | } |
5742 | |||
5743 | public void SendSitResponse(LLUUID TargetID, LLVector3 OffsetPos, LLQuaternion SitOrientation, bool autopilot, | ||
5744 | LLVector3 CameraAtOffset, LLVector3 CameraEyeOffset, bool ForceMouseLook) | ||
5745 | { | ||
5746 | AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket(); | ||
5747 | avatarSitResponse.SitObject.ID = TargetID; | ||
5748 | if (CameraAtOffset != LLVector3.Zero) | ||
5749 | { | ||
5750 | avatarSitResponse.SitTransform.CameraAtOffset = CameraAtOffset; | ||
5751 | avatarSitResponse.SitTransform.CameraEyeOffset = CameraEyeOffset; | ||
5752 | } | ||
5753 | avatarSitResponse.SitTransform.ForceMouselook = ForceMouseLook; | ||
5754 | avatarSitResponse.SitTransform.AutoPilot = autopilot; | ||
5755 | avatarSitResponse.SitTransform.SitPosition = OffsetPos; | ||
5756 | avatarSitResponse.SitTransform.SitRotation = SitOrientation; | ||
5757 | |||
5758 | OutPacket(avatarSitResponse, ThrottleOutPacketType.Task); | ||
5759 | } | ||
5760 | public void SendAdminResponse(LLUUID Token, uint AdminLevel) | ||
5761 | { | ||
5762 | GrantGodlikePowersPacket respondPacket = new GrantGodlikePowersPacket(); | ||
5763 | GrantGodlikePowersPacket.GrantDataBlock gdb = new GrantGodlikePowersPacket.GrantDataBlock(); | ||
5764 | GrantGodlikePowersPacket.AgentDataBlock adb = new GrantGodlikePowersPacket.AgentDataBlock(); | ||
5765 | |||
5766 | adb.AgentID = AgentId; | ||
5767 | adb.SessionID = SessionId; // More security | ||
5768 | gdb.GodLevel = (byte)AdminLevel; | ||
5769 | gdb.Token = Token; | ||
5770 | //respondPacket.AgentData = (GrantGodlikePowersPacket.AgentDataBlock)ablock; | ||
5771 | respondPacket.GrantData = gdb; | ||
5772 | respondPacket.AgentData = adb; | ||
5773 | OutPacket(respondPacket, ThrottleOutPacketType.Task); | ||
5774 | } | ||
5742 | public ClientInfo GetClientInfo() | 5775 | public ClientInfo GetClientInfo() |
5743 | { | 5776 | { |
5744 | //MainLog.Instance.Verbose("CLIENT", "GetClientInfo BGN"); | 5777 | //MainLog.Instance.Verbose("CLIENT", "GetClientInfo BGN"); |