diff options
author | Melanie Thielker | 2008-10-06 00:09:49 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-10-06 00:09:49 +0000 |
commit | 6ab5b523f8b6bdd056cb033c17811ae720564428 (patch) | |
tree | a683bb6124e3988ba7c59a02c306edbe39f7d13f /OpenSim/Region/ClientStack | |
parent | * Green dots on the mainmap for avatar. (diff) | |
download | opensim-SC-6ab5b523f8b6bdd056cb033c17811ae720564428.zip opensim-SC-6ab5b523f8b6bdd056cb033c17811ae720564428.tar.gz opensim-SC-6ab5b523f8b6bdd056cb033c17811ae720564428.tar.bz2 opensim-SC-6ab5b523f8b6bdd056cb033c17811ae720564428.tar.xz |
Implements ObjectOwner god mode packet (Set Owner To Me admin option)
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 92275e8..102b9c4 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -259,6 +259,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
259 | //Gesture | 259 | //Gesture |
260 | private ActivateGesture handlerActivateGesture = null; | 260 | private ActivateGesture handlerActivateGesture = null; |
261 | private DeactivateGesture handlerDeactivateGesture = null; | 261 | private DeactivateGesture handlerDeactivateGesture = null; |
262 | private ObjectOwner handlerObjectOwner = null; | ||
262 | 263 | ||
263 | private DirPlacesQuery handlerDirPlacesQuery = null; | 264 | private DirPlacesQuery handlerDirPlacesQuery = null; |
264 | 265 | ||
@@ -987,6 +988,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
987 | 988 | ||
988 | public event ActivateGesture OnActivateGesture; | 989 | public event ActivateGesture OnActivateGesture; |
989 | public event DeactivateGesture OnDeactivateGesture; | 990 | public event DeactivateGesture OnDeactivateGesture; |
991 | public event ObjectOwner OnObjectOwner; | ||
990 | 992 | ||
991 | public event DirPlacesQuery OnDirPlacesQuery; | 993 | public event DirPlacesQuery OnDirPlacesQuery; |
992 | 994 | ||
@@ -6186,6 +6188,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6186 | handlerDeactivateGesture(this, deactivateGesturePacket.Data[0].ItemID); | 6188 | handlerDeactivateGesture(this, deactivateGesturePacket.Data[0].ItemID); |
6187 | } | 6189 | } |
6188 | break; | 6190 | break; |
6191 | case PacketType.ObjectOwner: | ||
6192 | ObjectOwnerPacket objectOwnerPacket = (ObjectOwnerPacket)Pack; | ||
6193 | |||
6194 | List<uint> localIDs = new List<uint>(); | ||
6195 | |||
6196 | foreach (ObjectOwnerPacket.ObjectDataBlock d in objectOwnerPacket.ObjectData) | ||
6197 | localIDs.Add(d.ObjectLocalID); | ||
6198 | |||
6199 | handlerObjectOwner = OnObjectOwner; | ||
6200 | if (handlerObjectOwner != null) | ||
6201 | { | ||
6202 | handlerObjectOwner(this, objectOwnerPacket.HeaderData.OwnerID, objectOwnerPacket.HeaderData.GroupID, localIDs); | ||
6203 | } | ||
6204 | break; | ||
6189 | 6205 | ||
6190 | #endregion | 6206 | #endregion |
6191 | 6207 | ||