Plumb in EventNotification* and EventGodDelete

This commit is contained in:
Melanie Thielker
2008-12-23 23:41:46 +00:00
parent 8e8abde7d4
commit 318de200bd
5 changed files with 64 additions and 0 deletions

View File

@@ -279,6 +279,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
private ClassifiedDelete handlerClassifiedDelete;
private ClassifiedDelete handlerClassifiedGodDelete;
private EventNotificationAddRequest handlerEventNotificationAddRequest;
private EventNotificationRemoveRequest handlerEventNotificationRemoveRequest;
private EventGodDelete handlerEventGodDelete;
private readonly IGroupsModule m_GroupsModule;
//private TerrainUnacked handlerUnackedTerrain = null;
@@ -1042,6 +1046,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public event ClassifiedDelete OnClassifiedDelete;
public event ClassifiedDelete OnClassifiedGodDelete;
public event EventNotificationAddRequest OnEventNotificationAddRequest;
public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
public event EventGodDelete OnEventGodDelete;
public void ActivateGesture(UUID assetId, UUID gestureId)
{
}
@@ -7280,6 +7288,42 @@ namespace OpenSim.Region.ClientStack.LindenUDP
this);
break;
case PacketType.EventGodDelete:
EventGodDeletePacket eventGodDelete =
(EventGodDeletePacket)Pack;
handlerEventGodDelete = OnEventGodDelete;
if (handlerEventGodDelete != null)
handlerEventGodDelete(
eventGodDelete.EventData.EventID,
eventGodDelete.QueryData.QueryID,
Utils.BytesToString(
eventGodDelete.QueryData.QueryText),
eventGodDelete.QueryData.QueryFlags,
eventGodDelete.QueryData.QueryStart,
this);
break;
case PacketType.EventNotificationAddRequest:
EventNotificationAddRequestPacket eventNotificationAdd =
(EventNotificationAddRequestPacket)Pack;
handlerEventNotificationAddRequest = OnEventNotificationAddRequest;
if (handlerEventNotificationAddRequest != null)
handlerEventNotificationAddRequest(
eventNotificationAdd.EventData.EventID, this);
break;
case PacketType.EventNotificationRemoveRequest:
EventNotificationRemoveRequestPacket eventNotificationRemove =
(EventNotificationRemoveRequestPacket)Pack;
handlerEventNotificationRemoveRequest = OnEventNotificationRemoveRequest;
if (handlerEventNotificationRemoveRequest != null)
handlerEventNotificationRemoveRequest(
eventNotificationRemove.EventData.EventID, this);
break;
default:
m_log.Warn("[CLIENT]: unhandled packet " + Pack);
break;