* Rex merge, SceneEvents.cs did not merge smooth
parent
26d477e32b
commit
7fdd23d249
|
@ -1,367 +1,472 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) Contributors, http://opensimulator.org/
|
* Copyright (c) Contributors, http://opensimulator.org/
|
||||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
* * Redistributions of source code must retain the above copyright
|
* * Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* * Redistributions in binary form must reproduce the above copyright
|
* * Redistributions in binary form must reproduce the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
* documentation and/or other materials provided with the distribution.
|
* documentation and/or other materials provided with the distribution.
|
||||||
* * Neither the name of the OpenSim Project nor the
|
* * Neither the name of the OpenSim Project nor the
|
||||||
* names of its contributors may be used to endorse or promote products
|
* names of its contributors may be used to endorse or promote products
|
||||||
* derived from this software without specific prior written permission.
|
* derived from this software without specific prior written permission.
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS AS IS AND ANY
|
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
|
||||||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
|
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using libsecondlife;
|
using libsecondlife;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenSim.Framework;
|
using OpenSim.Framework;
|
||||||
using OpenSim.Region.Environment.Interfaces;
|
using OpenSim.Region.Environment.Interfaces;
|
||||||
using OpenSim.Region.Environment.LandManagement;
|
using OpenSim.Region.Environment.LandManagement;
|
||||||
|
|
||||||
namespace OpenSim.Region.Environment.Scenes
|
namespace OpenSim.Region.Environment.Scenes
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A class for triggering remote scene events.
|
/// A class for triggering remote scene events.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class EventManager
|
public class EventManager
|
||||||
{
|
{
|
||||||
public delegate void OnFrameDelegate();
|
public delegate void OnFrameDelegate();
|
||||||
|
|
||||||
public event OnFrameDelegate OnFrame;
|
public event OnFrameDelegate OnFrame;
|
||||||
|
|
||||||
public delegate void ClientMovement(ScenePresence client);
|
public delegate void ClientMovement(ScenePresence client);
|
||||||
|
|
||||||
public event ClientMovement OnClientMovement;
|
public event ClientMovement OnClientMovement;
|
||||||
|
|
||||||
public delegate void OnBackupDelegate(IRegionDataStore datastore);
|
public delegate void OnBackupDelegate(IRegionDataStore datastore);
|
||||||
|
|
||||||
public event OnBackupDelegate OnBackup;
|
public event OnBackupDelegate OnBackup;
|
||||||
|
|
||||||
public delegate void OnNewClientDelegate(IClientAPI client);
|
public delegate void OnNewClientDelegate(IClientAPI client);
|
||||||
|
|
||||||
public event OnNewClientDelegate OnNewClient;
|
public event OnNewClientDelegate OnNewClient;
|
||||||
|
|
||||||
public delegate void OnNewPresenceDelegate(ScenePresence presence);
|
public delegate void OnNewPresenceDelegate(ScenePresence presence);
|
||||||
|
|
||||||
public event OnNewPresenceDelegate OnNewPresence;
|
public event OnNewPresenceDelegate OnNewPresence;
|
||||||
|
|
||||||
public delegate void OnRemovePresenceDelegate(LLUUID agentId);
|
public delegate void OnRemovePresenceDelegate(LLUUID agentId);
|
||||||
|
|
||||||
public event OnRemovePresenceDelegate OnRemovePresence;
|
public event OnRemovePresenceDelegate OnRemovePresence;
|
||||||
|
|
||||||
public delegate void OnParcelPrimCountUpdateDelegate();
|
public delegate void OnParcelPrimCountUpdateDelegate();
|
||||||
|
|
||||||
public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate;
|
public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate;
|
||||||
|
|
||||||
public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj);
|
public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj);
|
||||||
|
|
||||||
public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd;
|
public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd;
|
||||||
|
|
||||||
public delegate void OnPluginConsoleDelegate(string[] args);
|
public delegate void OnPluginConsoleDelegate(string[] args);
|
||||||
|
|
||||||
public event OnPluginConsoleDelegate OnPluginConsole;
|
public event OnPluginConsoleDelegate OnPluginConsole;
|
||||||
|
|
||||||
public delegate void OnShutdownDelegate();
|
public delegate void OnShutdownDelegate();
|
||||||
|
|
||||||
public event OnShutdownDelegate OnShutdown;
|
public event OnShutdownDelegate OnShutdown;
|
||||||
|
|
||||||
public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient);
|
public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient);
|
||||||
|
|
||||||
public delegate void OnPermissionErrorDelegate(LLUUID user, string reason);
|
public delegate void OnPermissionErrorDelegate(LLUUID user, string reason);
|
||||||
|
|
||||||
public event ObjectGrabDelegate OnObjectGrab;
|
public event ObjectGrabDelegate OnObjectGrab;
|
||||||
|
|
||||||
public event OnPermissionErrorDelegate OnPermissionError;
|
public event OnPermissionErrorDelegate OnPermissionError;
|
||||||
|
|
||||||
public delegate void NewRezScript(uint localID, LLUUID itemID, string script);
|
public delegate void NewRezScript(uint localID, LLUUID itemID, string script);
|
||||||
|
|
||||||
public event NewRezScript OnRezScript;
|
public event NewRezScript OnRezScript;
|
||||||
|
|
||||||
public delegate void RemoveScript(uint localID, LLUUID itemID);
|
public delegate void RemoveScript(uint localID, LLUUID itemID);
|
||||||
|
|
||||||
public event RemoveScript OnRemoveScript;
|
public event RemoveScript OnRemoveScript;
|
||||||
|
|
||||||
public delegate bool SceneGroupMoved(LLUUID groupID, LLVector3 delta);
|
public delegate bool SceneGroupMoved(LLUUID groupID, LLVector3 delta);
|
||||||
|
|
||||||
public event SceneGroupMoved OnSceneGroupMove;
|
public event SceneGroupMoved OnSceneGroupMove;
|
||||||
|
|
||||||
public delegate void SceneGroupGrabed(LLUUID groupID, LLVector3 offset, LLUUID userID);
|
public delegate void SceneGroupGrabed(LLUUID groupID, LLVector3 offset, LLUUID userID);
|
||||||
|
|
||||||
public event SceneGroupGrabed OnSceneGroupGrab;
|
public event SceneGroupGrabed OnSceneGroupGrab;
|
||||||
|
|
||||||
public delegate void LandObjectAdded(Land newParcel, LLUUID regionUUID);
|
public delegate void LandObjectAdded(Land newParcel, LLUUID regionUUID);
|
||||||
|
|
||||||
public event LandObjectAdded OnLandObjectAdded;
|
public event LandObjectAdded OnLandObjectAdded;
|
||||||
|
|
||||||
public delegate void LandObjectRemoved(LLUUID globalID);
|
public delegate void LandObjectRemoved(LLUUID globalID);
|
||||||
|
|
||||||
public event LandObjectRemoved OnLandObjectRemoved;
|
public event LandObjectRemoved OnLandObjectRemoved;
|
||||||
|
|
||||||
public delegate void AvatarEnteringNewParcel(ScenePresence avatar, int localLandID, LLUUID regionID);
|
public delegate void AvatarEnteringNewParcel(ScenePresence avatar, int localLandID, LLUUID regionID);
|
||||||
|
|
||||||
public event AvatarEnteringNewParcel OnAvatarEnteringNewParcel;
|
public event AvatarEnteringNewParcel OnAvatarEnteringNewParcel;
|
||||||
|
|
||||||
|
|
||||||
public delegate void NewGridInstantMessage(GridInstantMessage message);
|
public delegate void NewGridInstantMessage(GridInstantMessage message);
|
||||||
|
|
||||||
public event NewGridInstantMessage OnGridInstantMessageToIMModule;
|
public event NewGridInstantMessage OnGridInstantMessageToIMModule;
|
||||||
|
|
||||||
public event NewGridInstantMessage OnGridInstantMessageToFriendsModule;
|
public event NewGridInstantMessage OnGridInstantMessageToFriendsModule;
|
||||||
|
|
||||||
public event NewGridInstantMessage OnGridInstantMessageToGroupsModule;
|
public event NewGridInstantMessage OnGridInstantMessageToGroupsModule;
|
||||||
|
|
||||||
// rex, new events
|
public delegate void ClientClosed(LLUUID clientID);
|
||||||
public delegate void OnAddEntityDelegate(uint localID);
|
// rex, new events
|
||||||
public event OnAddEntityDelegate OnAddEntity;
|
public delegate void OnAddEntityDelegate(uint localID);
|
||||||
|
public event OnAddEntityDelegate OnAddEntity;
|
||||||
public delegate void OnRemoveEntityDelegate(uint localID);
|
|
||||||
public event OnRemoveEntityDelegate OnRemoveEntity;
|
public event ClientClosed OnClientClosed;
|
||||||
|
public delegate void OnRemoveEntityDelegate(uint localID);
|
||||||
public delegate void OnPythonScriptCommandDelegate(string vCommand);
|
public event OnRemoveEntityDelegate OnRemoveEntity;
|
||||||
public event OnPythonScriptCommandDelegate OnPythonScriptCommand;
|
|
||||||
|
public delegate void ScriptChangedEvent(uint localID, uint change);
|
||||||
public delegate void OnChangePythonClassDelegate(uint localID);
|
|
||||||
public event OnChangePythonClassDelegate OnPythonClassChange;
|
public event ScriptChangedEvent OnScriptChangedEvent;
|
||||||
|
|
||||||
public delegate void OnRexScriptCommandDelegate(ScenePresence avatar,List<string> vCommands);
|
public class MoneyTransferArgs : System.EventArgs
|
||||||
public event OnRexScriptCommandDelegate OnRexClientScriptCommand;
|
{
|
||||||
|
public LLUUID sender;
|
||||||
public delegate void OnPrimVolumeCollisionDelegate(uint ownID, uint colliderID);
|
public LLUUID reciever;
|
||||||
public event OnPrimVolumeCollisionDelegate OnPrimVolumeCollision;
|
|
||||||
// rex-end
|
// Always false. The SL protocol sucks.
|
||||||
|
public bool authenticated = false;
|
||||||
public void TriggerOnClientMovement(ScenePresence avatar)
|
|
||||||
{
|
public int amount;
|
||||||
if (OnClientMovement != null)
|
public delegate void OnPythonScriptCommandDelegate(string vCommand);
|
||||||
OnClientMovement(avatar);
|
public event OnPythonScriptCommandDelegate OnPythonScriptCommand;
|
||||||
}
|
|
||||||
|
public delegate void OnChangePythonClassDelegate(uint localID);
|
||||||
public void TriggerPermissionError(LLUUID user, string reason)
|
public event OnChangePythonClassDelegate OnPythonClassChange;
|
||||||
{
|
|
||||||
if (OnPermissionError != null)
|
public delegate void OnRexScriptCommandDelegate(ScenePresence avatar,List<string> vCommands);
|
||||||
OnPermissionError(user, reason);
|
public event OnRexScriptCommandDelegate OnRexClientScriptCommand;
|
||||||
}
|
|
||||||
|
public delegate void OnPrimVolumeCollisionDelegate(uint ownID, uint colliderID);
|
||||||
public void TriggerOnPluginConsole(string[] args)
|
public event OnPrimVolumeCollisionDelegate OnPrimVolumeCollision;
|
||||||
{
|
// rex-end
|
||||||
if (OnPluginConsole != null)
|
|
||||||
OnPluginConsole(args);
|
public int transactiontype;
|
||||||
}
|
public string description;
|
||||||
|
|
||||||
public void TriggerOnFrame()
|
public MoneyTransferArgs(LLUUID asender, LLUUID areciever, int aamount, int atransactiontype, string adescription) {
|
||||||
{
|
sender = asender;
|
||||||
if (OnFrame != null)
|
reciever = areciever;
|
||||||
{
|
amount = aamount;
|
||||||
OnFrame();
|
transactiontype = atransactiontype;
|
||||||
}
|
description = adescription;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
public void TriggerOnNewClient(IClientAPI client)
|
|
||||||
{
|
public delegate void MoneyTransferEvent(Object sender, MoneyTransferArgs e);
|
||||||
if (OnNewClient != null)
|
|
||||||
OnNewClient(client);
|
public event MoneyTransferEvent OnMoneyTransfer;
|
||||||
}
|
|
||||||
|
|
||||||
public void TriggerOnNewPresence(ScenePresence presence)
|
/* Designated Event Deletage Instances */
|
||||||
{
|
|
||||||
if (OnNewPresence != null)
|
private ScriptChangedEvent handler001 = null; //OnScriptChangedEvent;
|
||||||
OnNewPresence(presence);
|
private ClientMovement handler002 = null; //OnClientMovement;
|
||||||
}
|
private OnPermissionErrorDelegate handler003 = null; //OnPermissionError;
|
||||||
|
private OnPluginConsoleDelegate handler004 = null; //OnPluginConsole;
|
||||||
public void TriggerOnRemovePresence(LLUUID agentId)
|
private OnFrameDelegate handler005 = null; //OnFrame;
|
||||||
{
|
private OnNewClientDelegate handler006 = null; //OnNewClient;
|
||||||
if (OnRemovePresence != null)
|
private OnNewPresenceDelegate handler007 = null; //OnNewPresence;
|
||||||
{
|
private OnRemovePresenceDelegate handler008 = null; //OnRemovePresence;
|
||||||
OnRemovePresence(agentId);
|
private OnBackupDelegate handler009 = null; //OnBackup;
|
||||||
}
|
private OnParcelPrimCountUpdateDelegate handler010 = null; //OnParcelPrimCountUpdate;
|
||||||
}
|
private MoneyTransferEvent handler011 = null; //OnMoneyTransfer;
|
||||||
|
private OnParcelPrimCountAddDelegate handler012 = null; //OnParcelPrimCountAdd;
|
||||||
public void TriggerOnBackup(IRegionDataStore dstore)
|
private OnShutdownDelegate handler013 = null; //OnShutdown;
|
||||||
{
|
private ObjectGrabDelegate handler014 = null; //OnObjectGrab;
|
||||||
if (OnBackup != null)
|
private NewRezScript handler015 = null; //OnRezScript;
|
||||||
{
|
private RemoveScript handler016 = null; //OnRemoveScript;
|
||||||
OnBackup(dstore);
|
private SceneGroupMoved handler017 = null; //OnSceneGroupMove;
|
||||||
}
|
private SceneGroupGrabed handler018 = null; //OnSceneGroupGrab;
|
||||||
}
|
private LandObjectAdded handler020 = null; //OnLandObjectAdded;
|
||||||
|
private LandObjectRemoved handler021 = null; //OnLandObjectRemoved;
|
||||||
public void TriggerParcelPrimCountUpdate()
|
private AvatarEnteringNewParcel handler022 = null; //OnAvatarEnteringNewParcel;
|
||||||
{
|
private NewGridInstantMessage handler023 = null; //OnGridInstantMessageToIMModule;
|
||||||
/*
|
private NewGridInstantMessage handler024 = null; //OnGridInstantMessageToFriendsModule;
|
||||||
* Removed by Adam to prevent some exceptions, temporary.
|
private ClientClosed handler025 = null; //OnClientClosed;
|
||||||
* */
|
|
||||||
if (OnParcelPrimCountUpdate != null)
|
public void TriggerOnScriptChangedEvent(uint localID, uint change)
|
||||||
{
|
{
|
||||||
OnParcelPrimCountUpdate();
|
handler001 = OnScriptChangedEvent;
|
||||||
}
|
if (handler001 != null)
|
||||||
|
handler001(localID, change);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerParcelPrimCountAdd(SceneObjectGroup obj)
|
public void TriggerOnClientMovement(ScenePresence avatar)
|
||||||
{
|
{
|
||||||
if (OnParcelPrimCountAdd != null)
|
handler002 = OnClientMovement;
|
||||||
{
|
if (handler002 != null)
|
||||||
OnParcelPrimCountAdd(obj);
|
handler002(avatar);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
public void TriggerPermissionError(LLUUID user, string reason)
|
||||||
public void TriggerShutdown()
|
{
|
||||||
{
|
handler003 = OnPermissionError;
|
||||||
if (OnShutdown != null)
|
if (handler003 != null)
|
||||||
OnShutdown();
|
handler003(user, reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerObjectGrab(uint localID, LLVector3 offsetPos, IClientAPI remoteClient)
|
public void TriggerOnPluginConsole(string[] args)
|
||||||
{
|
{
|
||||||
if (OnObjectGrab != null)
|
handler004 = OnPluginConsole;
|
||||||
{
|
if (handler004 != null)
|
||||||
OnObjectGrab(localID, offsetPos, remoteClient);
|
handler004(args);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
public void TriggerOnFrame()
|
||||||
public void TriggerRezScript(uint localID, LLUUID itemID, string script)
|
{
|
||||||
{
|
handler005 = OnFrame;
|
||||||
if (OnRezScript != null)
|
if (handler005 != null)
|
||||||
{
|
{
|
||||||
OnRezScript(localID, itemID, script);
|
handler005();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerRemoveScript(uint localID, LLUUID itemID)
|
public void TriggerOnNewClient(IClientAPI client)
|
||||||
{
|
{
|
||||||
if (OnRemoveScript != null)
|
handler006 = OnNewClient;
|
||||||
{
|
if (handler006 != null)
|
||||||
OnRemoveScript(localID, itemID);
|
handler006(client);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
public void TriggerOnNewPresence(ScenePresence presence)
|
||||||
public bool TriggerGroupMove(LLUUID groupID, LLVector3 delta)
|
{
|
||||||
{
|
handler007 = OnNewPresence;
|
||||||
if (OnSceneGroupMove != null)
|
if (handler007 != null)
|
||||||
{
|
handler007(presence);
|
||||||
return OnSceneGroupMove(groupID, delta);
|
}
|
||||||
}
|
|
||||||
return true;
|
public void TriggerOnRemovePresence(LLUUID agentId)
|
||||||
}
|
{
|
||||||
|
handler008 = OnRemovePresence;
|
||||||
public void TriggerGroupGrab(LLUUID groupID, LLVector3 offset, LLUUID userID)
|
if (handler008 != null)
|
||||||
{
|
{
|
||||||
if (OnSceneGroupGrab != null)
|
handler008(agentId);
|
||||||
{
|
}
|
||||||
OnSceneGroupGrab(groupID, offset, userID);
|
}
|
||||||
}
|
|
||||||
}
|
public void TriggerOnBackup(IRegionDataStore dstore)
|
||||||
|
{
|
||||||
public void TriggerLandObjectAdded(Land newParcel, LLUUID regionID)
|
handler009 = OnBackup;
|
||||||
{
|
if (handler009 != null)
|
||||||
if (OnLandObjectAdded != null)
|
{
|
||||||
{
|
handler009(dstore);
|
||||||
OnLandObjectAdded(newParcel, regionID);
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
public void TriggerParcelPrimCountUpdate()
|
||||||
public void TriggerLandObjectRemoved(LLUUID globalID)
|
{
|
||||||
{
|
handler010 = OnParcelPrimCountUpdate;
|
||||||
if (OnLandObjectRemoved != null)
|
if (handler010 != null)
|
||||||
{
|
{
|
||||||
OnLandObjectRemoved(globalID);
|
handler010();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TriggerLandObjectUpdated(uint localParcelID, Land newParcel)
|
public void TriggerMoneyTransfer(Object sender, MoneyTransferArgs e)
|
||||||
{
|
{
|
||||||
//triggerLandObjectRemoved(localParcelID);
|
handler011 = OnMoneyTransfer;
|
||||||
TriggerLandObjectAdded(newParcel, newParcel.m_scene.RegionInfo.RegionID);
|
if (handler011 != null)
|
||||||
}
|
{
|
||||||
|
handler011(sender, e);
|
||||||
public void TriggerAvatarEnteringNewParcel(ScenePresence avatar, int localLandID, LLUUID regionID)
|
}
|
||||||
{
|
}
|
||||||
if (OnAvatarEnteringNewParcel != null)
|
|
||||||
{
|
|
||||||
OnAvatarEnteringNewParcel(avatar, localLandID, regionID);
|
public void TriggerParcelPrimCountAdd(SceneObjectGroup obj)
|
||||||
}
|
{
|
||||||
}
|
handler012 = OnParcelPrimCountAdd;
|
||||||
|
if (handler012 != null)
|
||||||
///<summary>Used to pass instnat messages around between the Scene, the Friends Module and the Instant Messsage Module</summary>
|
{
|
||||||
///<param name="message">Object containing the Instant Message Data</param>
|
handler012(obj);
|
||||||
///<param name="whichModule">A bit vector containing the modules to send the message to</param>
|
}
|
||||||
public void TriggerGridInstantMessage(GridInstantMessage message, InstantMessageReceiver whichModule)
|
}
|
||||||
{
|
|
||||||
if ((whichModule & InstantMessageReceiver.IMModule) != 0)
|
public void TriggerShutdown()
|
||||||
{
|
{
|
||||||
|
handler013 = OnShutdown;
|
||||||
if (OnGridInstantMessageToIMModule != null)
|
if (handler013 != null)
|
||||||
{
|
handler013();
|
||||||
OnGridInstantMessageToIMModule(message);
|
}
|
||||||
}
|
|
||||||
}
|
public void TriggerObjectGrab(uint localID, LLVector3 offsetPos, IClientAPI remoteClient)
|
||||||
if ((whichModule & InstantMessageReceiver.FriendsModule) != 0)
|
{
|
||||||
{
|
handler014 = OnObjectGrab;
|
||||||
if (OnGridInstantMessageToFriendsModule != null)
|
if (handler014 != null)
|
||||||
{
|
{
|
||||||
OnGridInstantMessageToFriendsModule(message);
|
handler014(localID, offsetPos, remoteClient);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
}
|
public void TriggerRezScript(uint localID, LLUUID itemID, string script)
|
||||||
|
{
|
||||||
// rex, new function
|
handler015 = OnRezScript;
|
||||||
public void TriggerOnAddEntity(uint localID)
|
if (handler015 != null)
|
||||||
{
|
{
|
||||||
if (OnAddEntity != null)
|
handler015(localID, itemID, script);
|
||||||
OnAddEntity(localID);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// rex, new function
|
public void TriggerRemoveScript(uint localID, LLUUID itemID)
|
||||||
public void TriggerOnRemoveEntity(uint localID)
|
{
|
||||||
{
|
handler016 = OnRemoveScript;
|
||||||
if (OnRemoveEntity != null)
|
if (handler016 != null)
|
||||||
OnRemoveEntity(localID);
|
{
|
||||||
}
|
handler016(localID, itemID);
|
||||||
|
}
|
||||||
// rex, new function
|
}
|
||||||
public void TriggerOnPythonScriptCommand(string vCommand)
|
|
||||||
{
|
public bool TriggerGroupMove(LLUUID groupID, LLVector3 delta)
|
||||||
if (OnPythonScriptCommand != null)
|
{
|
||||||
OnPythonScriptCommand(vCommand);
|
handler017 = OnSceneGroupMove;
|
||||||
}
|
|
||||||
|
if (handler017 != null)
|
||||||
// rex, new function
|
{
|
||||||
public void TriggerOnChangePythonClass(uint localID)
|
return handler017(groupID, delta);
|
||||||
{
|
}
|
||||||
if (OnPythonClassChange != null)
|
return true;
|
||||||
OnPythonClassChange(localID);
|
}
|
||||||
}
|
|
||||||
|
public void TriggerGroupGrab(LLUUID groupID, LLVector3 offset, LLUUID userID)
|
||||||
// rex, new function
|
{
|
||||||
public void TriggerOnRexClientScriptCommand(ScenePresence avatar, List<string> vCommands)
|
handler018 = OnSceneGroupGrab;
|
||||||
{
|
if (handler018 != null)
|
||||||
if (OnRexClientScriptCommand != null)
|
{
|
||||||
OnRexClientScriptCommand(avatar, vCommands);
|
handler018(groupID, offset, userID);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// rex, new function
|
|
||||||
public void TriggerOnPrimVolumeCollision(uint ownID,uint colliderID)
|
public void TriggerLandObjectAdded(Land newParcel, LLUUID regionID)
|
||||||
{
|
{
|
||||||
if (OnPrimVolumeCollision != null)
|
handler020 = OnLandObjectAdded;
|
||||||
OnPrimVolumeCollision(ownID, colliderID);
|
|
||||||
}
|
if (handler020 != null)
|
||||||
|
{
|
||||||
|
handler020(newParcel, regionID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void TriggerLandObjectRemoved(LLUUID globalID)
|
||||||
|
{
|
||||||
|
handler021 = OnLandObjectRemoved;
|
||||||
|
if (handler021 != null)
|
||||||
|
{
|
||||||
|
handler021(globalID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void TriggerLandObjectUpdated(uint localParcelID, Land newParcel)
|
||||||
|
{
|
||||||
|
//triggerLandObjectRemoved(localParcelID);
|
||||||
|
|
||||||
|
TriggerLandObjectAdded(newParcel, newParcel.m_scene.RegionInfo.RegionID);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void TriggerAvatarEnteringNewParcel(ScenePresence avatar, int localLandID, LLUUID regionID)
|
||||||
|
{
|
||||||
|
handler022 = OnAvatarEnteringNewParcel;
|
||||||
|
|
||||||
|
if (handler022 != null)
|
||||||
|
{
|
||||||
|
handler022(avatar, localLandID, regionID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
///<summary>Used to pass instnat messages around between the Scene, the Friends Module and the Instant Messsage Module</summary>
|
||||||
|
///<param name="message">Object containing the Instant Message Data</param>
|
||||||
|
///<param name="whichModule">A bit vector containing the modules to send the message to</param>
|
||||||
|
public void TriggerGridInstantMessage(GridInstantMessage message, InstantMessageReceiver whichModule)
|
||||||
|
{
|
||||||
|
if ((whichModule & InstantMessageReceiver.IMModule) != 0)
|
||||||
|
{
|
||||||
|
handler023 = OnGridInstantMessageToIMModule;
|
||||||
|
if (handler023 != null)
|
||||||
|
{
|
||||||
|
handler023(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ((whichModule & InstantMessageReceiver.FriendsModule) != 0)
|
||||||
|
{
|
||||||
|
handler024 = OnGridInstantMessageToFriendsModule;
|
||||||
|
if (handler024 != null)
|
||||||
|
{
|
||||||
|
handler024(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void TriggerClientClosed(LLUUID ClientID)
|
||||||
|
{
|
||||||
|
handler025 = OnClientClosed;
|
||||||
|
if (handler025 != null)
|
||||||
|
{
|
||||||
|
handler025(ClientID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// rex, new function
|
||||||
|
public void TriggerOnAddEntity(uint localID)
|
||||||
|
{
|
||||||
|
if (OnAddEntity != null)
|
||||||
|
OnAddEntity(localID);
|
||||||
|
}
|
||||||
|
|
||||||
|
// rex, new function
|
||||||
|
public void TriggerOnRemoveEntity(uint localID)
|
||||||
|
{
|
||||||
|
if (OnRemoveEntity != null)
|
||||||
|
OnRemoveEntity(localID);
|
||||||
|
}
|
||||||
|
|
||||||
|
// rex, new function
|
||||||
|
public void TriggerOnPythonScriptCommand(string vCommand)
|
||||||
|
{
|
||||||
|
if (OnPythonScriptCommand != null)
|
||||||
|
OnPythonScriptCommand(vCommand);
|
||||||
|
}
|
||||||
|
|
||||||
|
// rex, new function
|
||||||
|
public void TriggerOnChangePythonClass(uint localID)
|
||||||
|
{
|
||||||
|
if (OnPythonClassChange != null)
|
||||||
|
OnPythonClassChange(localID);
|
||||||
|
}
|
||||||
|
|
||||||
|
// rex, new function
|
||||||
|
public void TriggerOnRexClientScriptCommand(ScenePresence avatar, List<string> vCommands)
|
||||||
|
{
|
||||||
|
if (OnRexClientScriptCommand != null)
|
||||||
|
OnRexClientScriptCommand(avatar, vCommands);
|
||||||
|
}
|
||||||
|
|
||||||
|
// rex, new function
|
||||||
|
public void TriggerOnPrimVolumeCollision(uint ownID,uint colliderID)
|
||||||
|
{
|
||||||
|
if (OnPrimVolumeCollision != null)
|
||||||
|
OnPrimVolumeCollision(ownID, colliderID);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue