diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 28 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | 2 |
3 files changed, 33 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 0802952..8b20946 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -269,6 +269,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
269 | 269 | ||
270 | private MapItemRequest handlerMapItemRequest; | 270 | private MapItemRequest handlerMapItemRequest; |
271 | 271 | ||
272 | private StartLure handlerStartLure; | ||
273 | private TeleportLureRequest handlerTeleportLureRequest; | ||
274 | |||
272 | private readonly IGroupsModule m_GroupsModule; | 275 | private readonly IGroupsModule m_GroupsModule; |
273 | 276 | ||
274 | //private TerrainUnacked handlerUnackedTerrain = null; | 277 | //private TerrainUnacked handlerUnackedTerrain = null; |
@@ -1011,6 +1014,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1011 | public event DeclineCallingCard OnDeclineCallingCard; | 1014 | public event DeclineCallingCard OnDeclineCallingCard; |
1012 | public event SoundTrigger OnSoundTrigger; | 1015 | public event SoundTrigger OnSoundTrigger; |
1013 | 1016 | ||
1017 | public event StartLure OnStartLure; | ||
1018 | public event TeleportLureRequest OnTeleportLureRequest; | ||
1014 | 1019 | ||
1015 | 1020 | ||
1016 | public void ActivateGesture(UUID assetId, UUID gestureId) | 1021 | public void ActivateGesture(UUID assetId, UUID gestureId) |
@@ -7168,6 +7173,29 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
7168 | } | 7173 | } |
7169 | } | 7174 | } |
7170 | break; | 7175 | break; |
7176 | case PacketType.StartLure: | ||
7177 | StartLurePacket startLureRequest = (StartLurePacket)Pack; | ||
7178 | handlerStartLure = OnStartLure; | ||
7179 | if (handlerStartLure != null) | ||
7180 | handlerStartLure(startLureRequest.Info.LureType, | ||
7181 | Utils.BytesToString( | ||
7182 | startLureRequest.Info.Message), | ||
7183 | startLureRequest.TargetData[0].TargetID, | ||
7184 | this); | ||
7185 | break; | ||
7186 | |||
7187 | case PacketType.TeleportLureRequest: | ||
7188 | TeleportLureRequestPacket teleportLureRequest = | ||
7189 | (TeleportLureRequestPacket)Pack; | ||
7190 | |||
7191 | handlerTeleportLureRequest = OnTeleportLureRequest; | ||
7192 | if (handlerTeleportLureRequest != null) | ||
7193 | handlerTeleportLureRequest( | ||
7194 | teleportLureRequest.Info.LureID, | ||
7195 | teleportLureRequest.Info.TeleportFlags, | ||
7196 | this); | ||
7197 | break; | ||
7198 | |||
7171 | default: | 7199 | default: |
7172 | m_log.Warn("[CLIENT]: unhandled packet " + Pack); | 7200 | m_log.Warn("[CLIENT]: unhandled packet " + Pack); |
7173 | break; | 7201 | break; |
diff --git a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs index fb1d1ff..66662a0 100644 --- a/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/Environment/Modules/World/NPC/NPCAvatar.cs | |||
@@ -342,6 +342,9 @@ namespace OpenSim.Region.Environment.Modules.World.NPC | |||
342 | public event DeclineCallingCard OnDeclineCallingCard; | 342 | public event DeclineCallingCard OnDeclineCallingCard; |
343 | public event SoundTrigger OnSoundTrigger; | 343 | public event SoundTrigger OnSoundTrigger; |
344 | 344 | ||
345 | public event StartLure OnStartLure; | ||
346 | public event TeleportLureRequest OnTeleportLureRequest; | ||
347 | |||
345 | 348 | ||
346 | #pragma warning restore 67 | 349 | #pragma warning restore 67 |
347 | 350 | ||
diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index 5a5d0e2..35b5233 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | |||
@@ -237,6 +237,8 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
237 | public event DeclineCallingCard OnDeclineCallingCard; | 237 | public event DeclineCallingCard OnDeclineCallingCard; |
238 | public event SoundTrigger OnSoundTrigger; | 238 | public event SoundTrigger OnSoundTrigger; |
239 | 239 | ||
240 | public event StartLure OnStartLure; | ||
241 | public event TeleportLureRequest OnTeleportLureRequest; | ||
240 | 242 | ||
241 | #pragma warning restore 67 | 243 | #pragma warning restore 67 |
242 | 244 | ||