diff options
Diffstat (limited to 'OpenSim/OpenSim.RegionServer')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/ClientView.API.cs | 8 | ||||
-rw-r--r-- | OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs | 25 |
2 files changed, 33 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.API.cs b/OpenSim/OpenSim.RegionServer/ClientView.API.cs index dd9adac..a6e5317 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView.API.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView.API.cs | |||
@@ -4,6 +4,7 @@ using System.Text; | |||
4 | using OpenSim.Framework.Interfaces; | 4 | using OpenSim.Framework.Interfaces; |
5 | using OpenSim.Framework.Inventory; | 5 | using OpenSim.Framework.Inventory; |
6 | using OpenSim.Framework.Types; | 6 | using OpenSim.Framework.Types; |
7 | |||
7 | using libsecondlife; | 8 | using libsecondlife; |
8 | using libsecondlife.Packets; | 9 | using libsecondlife.Packets; |
9 | 10 | ||
@@ -36,6 +37,13 @@ namespace OpenSim | |||
36 | public event NewAvatar OnNewAvatar; | 37 | public event NewAvatar OnNewAvatar; |
37 | public event GenericCall6 OnRemoveAvatar; | 38 | public event GenericCall6 OnRemoveAvatar; |
38 | 39 | ||
40 | public event ParcelPropertiesRequest OnParcelPropertiesRequest; | ||
41 | public event ParcelDivideRequest OnParcelDivideRequest; | ||
42 | public event ParcelJoinRequest OnParcelJoinRequest; | ||
43 | public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest; | ||
44 | |||
45 | public event EstateOwnerMessageRequest OnEstateOwnerMessage; | ||
46 | |||
39 | /// <summary> | 47 | /// <summary> |
40 | /// | 48 | /// |
41 | /// </summary> | 49 | /// </summary> |
diff --git a/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs b/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs index d215a23..8b94a82 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView.ProcessPackets.cs | |||
@@ -454,6 +454,31 @@ namespace OpenSim | |||
454 | break; | 454 | break; |
455 | #endregion | 455 | #endregion |
456 | 456 | ||
457 | #region Parcel related packets | ||
458 | case PacketType.ParcelPropertiesRequest: | ||
459 | ParcelPropertiesRequestPacket propertiesRequest = (ParcelPropertiesRequestPacket)Pack; | ||
460 | OnParcelPropertiesRequest((int)Math.Round(propertiesRequest.ParcelData.West), (int)Math.Round(propertiesRequest.ParcelData.South), (int)Math.Round(propertiesRequest.ParcelData.East), (int)Math.Round(propertiesRequest.ParcelData.North), propertiesRequest.ParcelData.SequenceID, propertiesRequest.ParcelData.SnapSelection, this); | ||
461 | break; | ||
462 | case PacketType.ParcelDivide: | ||
463 | ParcelDividePacket parcelDivide = (ParcelDividePacket)Pack; | ||
464 | OnParcelDivideRequest((int)Math.Round(parcelDivide.ParcelData.West), (int)Math.Round(parcelDivide.ParcelData.South), (int)Math.Round(parcelDivide.ParcelData.East), (int)Math.Round(parcelDivide.ParcelData.North), this); | ||
465 | break; | ||
466 | case PacketType.ParcelJoin: | ||
467 | ParcelJoinPacket parcelJoin = (ParcelJoinPacket)Pack; | ||
468 | OnParcelJoinRequest((int)Math.Round(parcelJoin.ParcelData.West), (int)Math.Round(parcelJoin.ParcelData.South), (int)Math.Round(parcelJoin.ParcelData.East), (int)Math.Round(parcelJoin.ParcelData.North), this); | ||
469 | break; | ||
470 | case PacketType.ParcelPropertiesUpdate: | ||
471 | ParcelPropertiesUpdatePacket updatePacket = (ParcelPropertiesUpdatePacket)Pack; | ||
472 | OnParcelPropertiesUpdateRequest(updatePacket, this); | ||
473 | break; | ||
474 | #endregion | ||
475 | |||
476 | #region Estate Packets | ||
477 | case PacketType.EstateOwnerMessage: | ||
478 | EstateOwnerMessagePacket messagePacket = (EstateOwnerMessagePacket)Pack; | ||
479 | OnEstateOwnerMessage(messagePacket, this); | ||
480 | break; | ||
481 | #endregion | ||
457 | #region unimplemented handlers | 482 | #region unimplemented handlers |
458 | case PacketType.AgentIsNowWearing: | 483 | case PacketType.AgentIsNowWearing: |
459 | // AgentIsNowWearingPacket wear = (AgentIsNowWearingPacket)Pack; | 484 | // AgentIsNowWearingPacket wear = (AgentIsNowWearingPacket)Pack; |