29 using System.Collections.Generic;
30 using System.Reflection;
33 using OpenSim.Framework;
34 using OpenSim.Framework.Client;
35 using OpenSim.Region.Framework.Interfaces;
39 namespace OpenSim.
Region.Framework.Scenes
46 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
48 public delegate
void OnFrameDelegate();
71 public delegate
void OnTerrainTaintedDelegate();
82 public delegate
void OnTerrainTickDelegate();
83 public delegate
void OnTerrainCheckUpdatesDelegate();
95 public delegate
void OnTerrainUpdateDelegate();
110 public delegate
void OnClientConnectCoreDelegate(
IClientCore client);
123 public delegate
void OnNewClientDelegate(
IClientAPI client);
147 public delegate
void OnNewPresenceDelegate(
ScenePresence presence);
158 public delegate
void OnRemovePresenceDelegate(UUID agentId);
172 public delegate
void OnParcelPrimCountUpdateDelegate();
202 public delegate
void OnPluginConsoleDelegate(
string[] args);
228 public delegate
void ScriptResetDelegate(uint localID, UUID itemID);
230 public delegate
void OnPermissionErrorDelegate(UUID user,
string reason);
232 public delegate
void OnSetRootAgentSceneDelegate(UUID agentID,
Scene scene);
322 public delegate
void NewRezScript(uint localID, UUID itemID,
string script,
int startParam,
bool postOnRez,
string engine,
int stateSource);
324 public delegate
void RemoveScript(uint localID, UUID itemID);
338 public delegate
void StartScript(uint localID, UUID itemID);
351 public delegate
void StopScript(uint localID, UUID itemID);
364 public delegate
bool SceneGroupMoved(UUID groupID, Vector3 delta);
376 public delegate
void SceneGroupGrabed(UUID groupID, Vector3 offset, UUID userID);
391 public delegate
bool SceneGroupSpinStarted(UUID groupID);
405 public delegate
bool SceneGroupSpun(UUID groupID, Quaternion
rotation);
419 public delegate
void LandObjectAdded(
ILandObject newParcel);
422 public delegate
void LandObjectRemoved(UUID globalID);
425 public delegate
void AvatarEnteringNewParcel(
ScenePresence avatar,
int localLandID, UUID regionID);
428 public delegate
void AvatarAppearanceChange(
ScenePresence avatar);
441 public delegate
void ClientClosed(UUID clientID,
Scene scene);
454 public delegate
void NewScript(UUID clientID,
SceneObjectPart part, UUID itemID);
467 public delegate
void ExtraSettingChangedDelegate(
Scene scene,
string name,
string value);
472 NewScript handlerNewScript = OnNewScript;
473 if (handlerNewScript != null)
475 foreach (NewScript d
in handlerNewScript.GetInvocationList())
479 d(clientID, part, itemID);
484 "[EVENT MANAGER]: Delegate for TriggerNewScript failed - continuing. {0} {1}",
485 e.Message, e.StackTrace);
491 public delegate
void UpdateScript(UUID clientID, UUID itemId, UUID primId,
bool isScriptRunning, UUID newAssetID);
507 public virtual void TriggerUpdateScript(UUID clientId, UUID itemId, UUID primId,
bool isScriptRunning, UUID newAssetID)
509 UpdateScript handlerUpdateScript = OnUpdateScript;
510 if (handlerUpdateScript != null)
512 foreach (UpdateScript d
in handlerUpdateScript.GetInvocationList())
516 d(clientId, itemId, primId, isScriptRunning, newAssetID);
521 "[EVENT MANAGER]: Delegate for TriggerUpdateScript failed - continuing. {0} {1}",
522 e.Message, e.StackTrace);
542 public delegate
void ScriptChangedEvent(uint localID, uint change);
544 public delegate
void ScriptControlEvent(UUID item, UUID avatarID, uint held, uint changed);
558 public delegate
void ScriptMovingStartEvent(uint localID);
565 public delegate
void ScriptMovingEndEvent(uint localID);
572 public delegate
void ScriptAtTargetEvent(uint localID, uint handle, Vector3 targetpos, Vector3 atpos);
586 public delegate
void ScriptNotAtTargetEvent(uint localID);
600 public delegate
void ScriptAtRotTargetEvent(uint localID, uint handle, Quaternion targetrot, Quaternion atrot);
614 public delegate
void ScriptNotAtRotTargetEvent(uint localID);
628 public delegate
void ScriptColliding(uint localID,
ColliderArgs colliders);
709 public delegate
void OnMakeChildAgentDelegate(
ScenePresence presence);
723 public delegate
void OnSaveNewWindlightProfileDelegate();
724 public delegate
void OnSendNewWindlightProfileTargetedDelegate(
RegionLightShareData wl, UUID user);
751 public delegate
void NewInventoryItemUploadComplete(UUID avatarID, AssetType type, UUID assetID,
string name,
int userlevel);
755 public delegate
void RequestChangeWaterHeight(
float height);
763 public delegate
void AvatarKillData(uint KillerLocalID,
ScenePresence avatar);
777 public delegate
void EstateToolsSunUpdate(ulong regionHandle);
805 public delegate
bool DeRezRequested(
IClientAPI remoteClient, List<SceneObjectGroup> objs,
DeRezAction action);
834 public delegate
void NoticeNoLandDataFromStorage();
837 public delegate
void IncomingLandDataFromStorage(List<LandData> data);
840 public delegate
void SetAllowForcefulBan(
bool allow);
843 public delegate
void RequestParcelPrimCountUpdate();
846 public delegate
void ParcelPrimCountTainted();
864 public delegate
void ThrottleUpdate(
ScenePresence scenePresence);
873 public delegate
void RegisterCapsEvent(UUID agentID,
Caps caps);
880 public delegate
void DeregisterCapsEvent(UUID agentID,
Caps caps);
887 public delegate
void ChatFromWorldEvent(Object sender,
OSChatMessage chat);
895 public delegate
void ChatFromClientEvent(Object sender,
OSChatMessage chat);
903 public delegate
void ChatToClientsEvent(
904 UUID senderID, HashSet<UUID> receiverIDs,
905 string message,
ChatTypeEnum type, Vector3 fromPos,
string fromName,
906 ChatSourceType src, ChatAudibleLevel level);
913 public delegate
void ChatBroadcastEvent(Object sender,
OSChatMessage chat);
916 public delegate
float SunLindenHour();
924 public delegate
void OarFileLoaded(Guid guid, List<UUID> loadedScenes,
string message);
933 public delegate
void OarFileSaved(Guid guid,
string message);
940 public delegate
void EmptyScriptCompileQueue(
int numScriptsFailed,
string message);
948 public delegate
void Attach(uint localID, UUID itemID, UUID avatarID);
983 public delegate
void SceneObjectPartUpdated(
SceneObjectPart sop,
bool full);
989 public delegate
void RegionUp(
GridRegion region);
992 public delegate
void RegionStarted(
Scene scene);
995 public delegate
void RegionHeartbeatStart(
Scene scene);
997 public delegate
void RegionHeartbeatEnd(
Scene scene);
1008 public delegate
void RegionLoginsStatusChange(
IScene scene);
1019 public delegate
void PrimsLoaded(
Scene s);
1035 public delegate
void TeleportFail(
IClientAPI client,
bool gridLogout);
1065 public bool authenticated =
false;
1071 public MoneyTransferArgs(UUID asender, UUID areceiver,
int aamount,
int atransactiontype,
string adescription)
1074 receiver = areceiver;
1076 transactiontype = atransactiontype;
1077 description = adescription;
1087 public UUID parcelOwnerID = UUID.Zero;
1089 public bool final =
false;
1090 public bool groupOwned =
false;
1091 public bool removeContribution =
false;
1092 public int parcelLocalID = 0;
1093 public int parcelArea = 0;
1094 public int parcelPrice = 0;
1095 public bool authenticated =
false;
1096 public bool landValidated =
false;
1097 public bool economyValidated =
false;
1098 public int transactionID = 0;
1099 public int amountDebited = 0;
1101 public LandBuyArgs(UUID pagentId, UUID pgroupId,
bool pfinal,
bool pgroupOwned,
1102 bool premoveContribution,
int pparcelLocalID,
int pparcelArea,
int pparcelPrice,
1103 bool pauthenticated)
1108 groupOwned = pgroupOwned;
1109 removeContribution = premoveContribution;
1110 parcelLocalID = pparcelLocalID;
1111 parcelArea = pparcelArea;
1112 parcelPrice = pparcelPrice;
1113 authenticated = pauthenticated;
1117 public delegate
void MoneyTransferEvent(Object sender, MoneyTransferArgs e);
1119 public delegate
void LandBuy(Object sender, LandBuyArgs e);
1148 Attach handlerOnAttach = OnAttach;
1149 if (handlerOnAttach != null)
1151 foreach (Attach d
in handlerOnAttach.GetInvocationList())
1155 d(localID, itemID, avatarID);
1160 "[EVENT MANAGER]: Delegate for TriggerOnAttach failed - continuing. {0} {1}",
1161 e.Message, e.StackTrace);
1170 if (handlerGetScriptRunning != null)
1172 foreach (
GetScriptRunning d
in handlerGetScriptRunning.GetInvocationList())
1176 d(controllingClient, objectID, itemID);
1181 "[EVENT MANAGER]: Delegate for TriggerGetScriptRunning failed - continuing. {0} {1}",
1182 e.Message, e.StackTrace);
1190 ScriptChangedEvent handlerScriptChangedEvent = OnScriptChangedEvent;
1191 if (handlerScriptChangedEvent != null)
1193 foreach (ScriptChangedEvent d
in handlerScriptChangedEvent.GetInvocationList())
1202 "[EVENT MANAGER]: Delegate for TriggerOnScriptChangedEvent failed - continuing. {0} {1}",
1203 e.Message, e.StackTrace);
1211 ClientMovement handlerClientMovement = OnClientMovement;
1212 if (handlerClientMovement != null)
1214 foreach (ClientMovement d
in handlerClientMovement.GetInvocationList())
1223 "[EVENT MANAGER]: Delegate for TriggerOnClientMovement failed - continuing. {0} {1}",
1224 e.Message, e.StackTrace);
1232 OnPermissionErrorDelegate handlerPermissionError = OnPermissionError;
1233 if (handlerPermissionError != null)
1235 foreach (OnPermissionErrorDelegate d
in handlerPermissionError.GetInvocationList())
1244 "[EVENT MANAGER]: Delegate for TriggerPermissionError failed - continuing. {0} {1}",
1245 e.Message, e.StackTrace);
1253 OnPluginConsoleDelegate handlerPluginConsole = OnPluginConsole;
1254 if (handlerPluginConsole != null)
1256 foreach (OnPluginConsoleDelegate d
in handlerPluginConsole.GetInvocationList())
1265 "[EVENT MANAGER]: Delegate for TriggerOnPluginConsole failed - continuing. {0} {1}",
1266 e.Message, e.StackTrace);
1274 OnFrameDelegate handlerFrame = OnFrame;
1275 if (handlerFrame != null)
1277 foreach (OnFrameDelegate d
in handlerFrame.GetInvocationList())
1286 "[EVENT MANAGER]: Delegate for TriggerOnFrame failed - continuing. {0} {1}",
1287 e.Message, e.StackTrace);
1295 OnNewClientDelegate handlerNewClient = OnNewClient;
1296 if (handlerNewClient != null)
1298 foreach (OnNewClientDelegate d
in handlerNewClient.GetInvocationList())
1307 "[EVENT MANAGER]: Delegate for TriggerOnNewClient failed - continuing. {0} {1}",
1308 e.Message, e.StackTrace);
1315 OnClientConnectCoreDelegate handlerClientConnect = OnClientConnect;
1316 if (handlerClientConnect != null)
1318 foreach (OnClientConnectCoreDelegate d
in handlerClientConnect.GetInvocationList())
1322 d((IClientCore)client);
1327 "[EVENT MANAGER]: Delegate for TriggerOnNewClient (IClientCore) failed - continuing. {0} {1}",
1328 e.Message, e.StackTrace);
1337 Action<IClientAPI> handlerClientLogin = OnClientLogin;
1338 if (handlerClientLogin != null)
1340 foreach (Action<IClientAPI> d
in handlerClientLogin.GetInvocationList())
1349 "[EVENT MANAGER]: Delegate for TriggerOnClientLogin failed - continuing. {0} {1}",
1350 e.Message, e.StackTrace);
1359 OnNewPresenceDelegate handlerNewPresence = OnNewPresence;
1360 if (handlerNewPresence != null)
1362 foreach (OnNewPresenceDelegate d
in handlerNewPresence.GetInvocationList())
1371 "[EVENT MANAGER]: Delegate for TriggerOnNewPresence failed - continuing. {0} {1}",
1372 e.Message, e.StackTrace);
1380 OnRemovePresenceDelegate handlerRemovePresence = OnRemovePresence;
1381 if (handlerRemovePresence != null)
1383 foreach (OnRemovePresenceDelegate d
in handlerRemovePresence.GetInvocationList())
1394 "[EVENT MANAGER]: Delegate for TriggerOnRemovePresence failed - continuing. {0} {1}",
1395 e.Message, e.StackTrace);
1403 OnBackupDelegate handlerOnAttach = OnBackup;
1404 if (handlerOnAttach != null)
1406 foreach (OnBackupDelegate d
in handlerOnAttach.GetInvocationList())
1415 "[EVENT MANAGER]: Delegate for TriggerOnBackup failed - continuing. {0} {1}",
1416 e.Message, e.StackTrace);
1424 OnParcelPrimCountUpdateDelegate handlerParcelPrimCountUpdate = OnParcelPrimCountUpdate;
1425 if (handlerParcelPrimCountUpdate != null)
1427 foreach (OnParcelPrimCountUpdateDelegate d
in handlerParcelPrimCountUpdate.GetInvocationList())
1436 "[EVENT MANAGER]: Delegate for TriggerParcelPrimCountUpdate failed - continuing. {0} {1}",
1437 e.Message, e.StackTrace);
1445 MoneyTransferEvent handlerMoneyTransfer = OnMoneyTransfer;
1446 if (handlerMoneyTransfer != null)
1448 foreach (MoneyTransferEvent d
in handlerMoneyTransfer.GetInvocationList())
1457 "[EVENT MANAGER]: Delegate for TriggerMoneyTransfer failed - continuing. {0} {1}",
1458 e.Message, e.StackTrace);
1465 OnTerrainUpdateDelegate handlerTerrainUpdate = OnTerrainUpdate;
1466 if (handlerTerrainUpdate != null)
1468 foreach (OnTerrainUpdateDelegate d
in handlerTerrainUpdate.GetInvocationList())
1477 "[EVENT MANAGER]: Delegate for TriggerTerrainUpdate failed - continuing. {0} {1}",
1478 e.Message, e.StackTrace);
1486 OnTerrainTickDelegate handlerTerrainTick = OnTerrainTick;
1487 if (handlerTerrainTick != null)
1489 foreach (OnTerrainTickDelegate d
in handlerTerrainTick.GetInvocationList())
1498 "[EVENT MANAGER]: Delegate for TriggerTerrainTick failed - continuing. {0} {1}",
1499 e.Message, e.StackTrace);
1507 OnTerrainCheckUpdatesDelegate TerrainCheckUpdates = OnTerrainCheckUpdates;
1508 if (TerrainCheckUpdates != null)
1510 foreach (OnTerrainCheckUpdatesDelegate d
in TerrainCheckUpdates.GetInvocationList())
1519 "[EVENT MANAGER]: Delegate for TerrainCheckUpdates failed - continuing. {0} {1}",
1520 e.Message, e.StackTrace);
1528 OnTerrainTaintedDelegate handlerTerrainTainted = OnTerrainTainted;
1529 if (handlerTerrainTainted != null)
1531 foreach (OnTerrainTaintedDelegate d
in handlerTerrainTainted.GetInvocationList())
1540 "[EVENT MANAGER]: Delegate for TriggerTerrainTainted failed - continuing. {0} {1}",
1541 e.Message, e.StackTrace);
1549 OnParcelPrimCountAddDelegate handlerParcelPrimCountAdd = OnParcelPrimCountAdd;
1550 if (handlerParcelPrimCountAdd != null)
1552 foreach (OnParcelPrimCountAddDelegate d
in handlerParcelPrimCountAdd.GetInvocationList())
1561 "[EVENT MANAGER]: Delegate for TriggerParcelPrimCountAdd failed - continuing. {0} {1}",
1562 e.Message, e.StackTrace);
1570 Action<SceneObjectGroup> handler = OnObjectAddedToScene;
1571 if (handler != null)
1573 foreach (Action<SceneObjectGroup> d
in handler.GetInvocationList())
1582 "[EVENT MANAGER]: Delegate for TriggerObjectAddedToScene failed - continuing. {0} {1}",
1583 e.Message, e.StackTrace);
1591 bool canDeRez =
true;
1593 DeRezRequested handlerDeRezRequested = OnDeRezRequested;
1594 if (handlerDeRezRequested != null)
1596 foreach (DeRezRequested d
in handlerDeRezRequested.GetInvocationList())
1600 canDeRez &= d(client, objs, action);
1605 "[EVENT MANAGER]: Delegate for TriggerDeRezRequested failed - continuing. {0} {1}",
1606 e.Message, e.StackTrace);
1616 ObjectBeingRemovedFromScene handlerObjectBeingRemovedFromScene = OnObjectBeingRemovedFromScene;
1617 if (handlerObjectBeingRemovedFromScene != null)
1619 foreach (ObjectBeingRemovedFromScene d
in handlerObjectBeingRemovedFromScene.GetInvocationList())
1628 "[EVENT MANAGER]: Delegate for TriggerObjectBeingRemovedFromScene failed - continuing. {0} {1}",
1629 e.Message, e.StackTrace);
1637 Action<SceneObjectPart> handler = OnObjectAddedToPhysicalScene;
1638 if (handler != null)
1640 foreach (Action<SceneObjectPart> d
in handler.GetInvocationList())
1649 "[EVENT MANAGER]: Delegate for TriggerObjectAddedToPhysicalScene failed - continuing. {0} {1}",
1650 e.Message, e.StackTrace);
1658 Action<SceneObjectPart> handler = OnObjectRemovedFromPhysicalScene;
1659 if (handler != null)
1661 foreach (Action<SceneObjectPart> d
in handler.GetInvocationList())
1670 "[EVENT MANAGER]: Delegate for TriggerObjectRemovedFromPhysicalScene failed - continuing. {0} {1}",
1671 e.Message, e.StackTrace);
1679 Action handlerShutdown = OnShutdown;
1680 if (handlerShutdown != null)
1682 foreach (Action d
in handlerShutdown.GetInvocationList())
1691 "[EVENT MANAGER]: Delegate for TriggerShutdown failed - continuing. {0} {1}",
1692 e.Message, e.StackTrace);
1700 ObjectGrabDelegate handlerObjectGrab = OnObjectGrab;
1701 if (handlerObjectGrab != null)
1703 foreach (ObjectGrabDelegate d
in handlerObjectGrab.GetInvocationList())
1707 d(localID, originalID, offsetPos, remoteClient, surfaceArgs);
1712 "[EVENT MANAGER]: Delegate for TriggerObjectGrab failed - continuing. {0} {1}",
1713 e.Message, e.StackTrace);
1721 ObjectGrabDelegate handlerObjectGrabbing = OnObjectGrabbing;
1722 if (handlerObjectGrabbing != null)
1724 foreach (ObjectGrabDelegate d
in handlerObjectGrabbing.GetInvocationList())
1728 d(localID, originalID, offsetPos, remoteClient, surfaceArgs);
1733 "[EVENT MANAGER]: Delegate for TriggerObjectGrabbing failed - continuing. {0} {1}",
1734 e.Message, e.StackTrace);
1742 ObjectDeGrabDelegate handlerObjectDeGrab = OnObjectDeGrab;
1743 if (handlerObjectDeGrab != null)
1745 foreach (ObjectDeGrabDelegate d
in handlerObjectDeGrab.GetInvocationList())
1749 d(localID, originalID, remoteClient, surfaceArgs);
1754 "[EVENT MANAGER]: Delegate for TriggerObjectDeGrab failed - continuing. {0} {1}",
1755 e.Message, e.StackTrace);
1763 ScriptResetDelegate handlerScriptReset = OnScriptReset;
1764 if (handlerScriptReset != null)
1766 foreach (ScriptResetDelegate d
in handlerScriptReset.GetInvocationList())
1775 "[EVENT MANAGER]: Delegate for TriggerScriptReset failed - continuing. {0} {1}",
1776 e.Message, e.StackTrace);
1782 public void TriggerRezScript(uint localID, UUID itemID,
string script,
int startParam,
bool postOnRez,
string engine,
int stateSource)
1784 NewRezScript handlerRezScript = OnRezScript;
1785 if (handlerRezScript != null)
1787 foreach (NewRezScript d
in handlerRezScript.GetInvocationList())
1791 d(localID, itemID, script, startParam, postOnRez, engine, stateSource);
1796 "[EVENT MANAGER]: Delegate for TriggerRezScript failed - continuing. {0} {1}",
1797 e.Message, e.StackTrace);
1805 StartScript handlerStartScript = OnStartScript;
1806 if (handlerStartScript != null)
1808 foreach (StartScript d
in handlerStartScript.GetInvocationList())
1817 "[EVENT MANAGER]: Delegate for TriggerStartScript failed - continuing. {0} {1}",
1818 e.Message, e.StackTrace);
1826 StopScript handlerStopScript = OnStopScript;
1827 if (handlerStopScript != null)
1829 foreach (StopScript d
in handlerStopScript.GetInvocationList())
1838 "[EVENT MANAGER]: Delegate for TriggerStopScript failed - continuing. {0} {1}",
1839 e.Message, e.StackTrace);
1847 RemoveScript handlerRemoveScript = OnRemoveScript;
1848 if (handlerRemoveScript != null)
1850 foreach (RemoveScript d
in handlerRemoveScript.GetInvocationList())
1859 "[EVENT MANAGER]: Delegate for TriggerRemoveScript failed - continuing. {0} {1}",
1860 e.Message, e.StackTrace);
1861 m_log.ErrorFormat(Environment.StackTrace);
1871 SceneGroupMoved handlerSceneGroupMove = OnSceneGroupMove;
1872 if (handlerSceneGroupMove != null)
1874 foreach (SceneGroupMoved d
in handlerSceneGroupMove.GetInvocationList())
1878 if (d(groupID, delta) ==
false)
1884 "[EVENT MANAGER]: Delegate for TriggerOnAttach failed - continuing. {0} {1}",
1885 e.Message, e.StackTrace);
1897 SceneGroupSpinStarted handlerSceneGroupSpinStarted = OnSceneGroupSpinStart;
1898 if (handlerSceneGroupSpinStarted != null)
1900 foreach (SceneGroupSpinStarted d
in handlerSceneGroupSpinStarted.GetInvocationList())
1904 if (d(groupID) ==
false)
1910 "[EVENT MANAGER]: Delegate for TriggerGroupSpinStart failed - continuing. {0} {1}",
1911 e.Message, e.StackTrace);
1923 SceneGroupSpun handlerSceneGroupSpin = OnSceneGroupSpin;
1924 if (handlerSceneGroupSpin != null)
1926 foreach (SceneGroupSpun d
in handlerSceneGroupSpin.GetInvocationList())
1930 if (d(groupID, rotation) ==
false)
1936 "[EVENT MANAGER]: Delegate for TriggerGroupSpin failed - continuing. {0} {1}",
1937 e.Message, e.StackTrace);
1947 SceneGroupGrabed handlerSceneGroupGrab = OnSceneGroupGrab;
1948 if (handlerSceneGroupGrab != null)
1950 foreach (SceneGroupGrabed d
in handlerSceneGroupGrab.GetInvocationList())
1954 d(groupID, offset, userID);
1959 "[EVENT MANAGER]: Delegate for TriggerGroupGrab failed - continuing. {0} {1}",
1960 e.Message, e.StackTrace);
1968 LandObjectAdded handlerLandObjectAdded = OnLandObjectAdded;
1969 if (handlerLandObjectAdded != null)
1971 foreach (LandObjectAdded d
in handlerLandObjectAdded.GetInvocationList())
1980 "[EVENT MANAGER]: Delegate for TriggerLandObjectAdded failed - continuing. {0} {1}",
1981 e.Message, e.StackTrace);
1989 LandObjectRemoved handlerLandObjectRemoved = OnLandObjectRemoved;
1990 if (handlerLandObjectRemoved != null)
1992 foreach (LandObjectRemoved d
in handlerLandObjectRemoved.GetInvocationList())
2001 "[EVENT MANAGER]: Delegate for TriggerLandObjectRemoved failed - continuing. {0} {1}",
2002 e.Message, e.StackTrace);
2010 TriggerLandObjectAdded(newParcel);
2015 AvatarEnteringNewParcel handlerAvatarEnteringNewParcel = OnAvatarEnteringNewParcel;
2016 if (handlerAvatarEnteringNewParcel != null)
2018 foreach (AvatarEnteringNewParcel d
in handlerAvatarEnteringNewParcel.GetInvocationList())
2022 d(avatar, localLandID, regionID);
2027 "[EVENT MANAGER]: Delegate for TriggerAvatarEnteringNewParcel failed - continuing. {0} {1}",
2028 e.Message, e.StackTrace);
2036 AvatarAppearanceChange handler = OnAvatarAppearanceChange;
2037 if (handler != null)
2039 foreach (AvatarAppearanceChange d
in handler.GetInvocationList())
2048 "[EVENT MANAGER]: Delegate for TriggerAvatarAppearanceChanged failed - continuing. {0} {1}",
2049 e.Message, e.StackTrace);
2057 CrossAgentToNewRegion handlerCrossAgentToNewRegion = OnCrossAgentToNewRegion;
2058 if (handlerCrossAgentToNewRegion != null)
2060 foreach (CrossAgentToNewRegion d
in handlerCrossAgentToNewRegion.GetInvocationList())
2064 d(agent, isFlying, newRegion);
2069 "[EVENT MANAGER]: Delegate for TriggerCrossAgentToNewRegion failed - continuing. {0} {1}",
2070 e.Message, e.StackTrace);
2078 IncomingInstantMessage handlerIncomingInstantMessage = OnIncomingInstantMessage;
2079 if (handlerIncomingInstantMessage != null)
2081 foreach (IncomingInstantMessage d
in handlerIncomingInstantMessage.GetInvocationList())
2090 "[EVENT MANAGER]: Delegate for TriggerIncomingInstantMessage failed - continuing. {0} {1}",
2091 e.Message, e.StackTrace);
2099 IncomingInstantMessage handlerUnhandledInstantMessage = OnUnhandledInstantMessage;
2100 if (handlerUnhandledInstantMessage != null)
2102 foreach (IncomingInstantMessage d
in handlerUnhandledInstantMessage.GetInvocationList())
2111 "[EVENT MANAGER]: Delegate for TriggerOnAttach failed - continuing. {0} {1}",
2112 e.Message, e.StackTrace);
2120 ClientClosed handlerClientClosed = OnClientClosed;
2121 if (handlerClientClosed != null)
2123 foreach (ClientClosed d
in handlerClientClosed.GetInvocationList())
2135 "[EVENT MANAGER]: Delegate for TriggerClientClosed failed - continuing. {0} {1}",
2136 e.Message, e.StackTrace);
2144 OnMakeChildAgentDelegate handlerMakeChildAgent = OnMakeChildAgent;
2145 if (handlerMakeChildAgent != null)
2147 foreach (OnMakeChildAgentDelegate d
in handlerMakeChildAgent.GetInvocationList())
2156 "[EVENT MANAGER]: Delegate for TriggerOnMakeChildAgent failed - continuing. {0} {1}",
2157 e.Message, e.StackTrace);
2165 OnSendNewWindlightProfileTargetedDelegate handlerSendNewWindlightProfileTargeted = OnSendNewWindlightProfileTargeted;
2166 if (handlerSendNewWindlightProfileTargeted != null)
2168 handlerSendNewWindlightProfileTargeted(wl, user);
2174 OnSaveNewWindlightProfileDelegate handlerSaveNewWindlightProfile = OnSaveNewWindlightProfile;
2175 if (handlerSaveNewWindlightProfile != null)
2177 handlerSaveNewWindlightProfile();
2183 Action<ScenePresence> handlerMakeRootAgent = OnMakeRootAgent;
2184 if (handlerMakeRootAgent != null)
2186 foreach (Action<ScenePresence> d
in handlerMakeRootAgent.GetInvocationList())
2195 "[EVENT MANAGER]: Delegate for TriggerOnMakeRootAgent failed - continuing. {0} {1}",
2196 e.Message, e.StackTrace);
2204 OnIncomingSceneObjectDelegate handlerIncomingSceneObject = OnIncomingSceneObject;
2205 if (handlerIncomingSceneObject != null)
2207 foreach (OnIncomingSceneObjectDelegate d
in handlerIncomingSceneObject.GetInvocationList())
2216 "[EVENT MANAGER]: Delegate for TriggerOnIncomingSceneObject failed - continuing. {0} {1}",
2217 e.Message, e.StackTrace);
2225 RegisterCapsEvent handlerRegisterCaps = OnRegisterCaps;
2226 if (handlerRegisterCaps != null)
2228 foreach (RegisterCapsEvent d
in handlerRegisterCaps.GetInvocationList())
2237 "[EVENT MANAGER]: Delegate for TriggerOnRegisterCaps failed - continuing. {0} {1}",
2238 e.Message, e.StackTrace);
2246 DeregisterCapsEvent handlerDeregisterCaps = OnDeregisterCaps;
2247 if (handlerDeregisterCaps != null)
2249 foreach (DeregisterCapsEvent d
in handlerDeregisterCaps.GetInvocationList())
2258 "[EVENT MANAGER]: Delegate for TriggerOnDeregisterCaps failed - continuing. {0} {1}",
2259 e.Message, e.StackTrace);
2267 NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = OnNewInventoryItemUploadComplete;
2268 if (handlerNewInventoryItemUpdateComplete != null)
2270 foreach (NewInventoryItemUploadComplete d
in handlerNewInventoryItemUpdateComplete.GetInvocationList())
2274 d(agentID, type, AssetID, AssetName, userlevel);
2279 "[EVENT MANAGER]: Delegate for TriggerOnNewInventoryItemUploadComplete failed - continuing. {0} {1}",
2280 e.Message, e.StackTrace);
2288 LandBuy handlerLandBuy = OnLandBuy;
2289 if (handlerLandBuy != null)
2291 foreach (LandBuy d
in handlerLandBuy.GetInvocationList())
2300 "[EVENT MANAGER]: Delegate for TriggerLandBuy failed - continuing. {0} {1}",
2301 e.Message, e.StackTrace);
2309 LandBuy handlerValidateLandBuy = OnValidateLandBuy;
2310 if (handlerValidateLandBuy != null)
2312 foreach (LandBuy d
in handlerValidateLandBuy.GetInvocationList())
2321 "[EVENT MANAGER]: Delegate for TriggerValidateLandBuy failed - continuing. {0} {1}",
2322 e.Message, e.StackTrace);
2330 ScriptAtTargetEvent handlerScriptAtTargetEvent = OnScriptAtTargetEvent;
2331 if (handlerScriptAtTargetEvent != null)
2333 foreach (ScriptAtTargetEvent d
in handlerScriptAtTargetEvent.GetInvocationList())
2337 d(localID, handle, targetpos, currentpos);
2342 "[EVENT MANAGER]: Delegate for TriggerAtTargetEvent failed - continuing. {0} {1}",
2343 e.Message, e.StackTrace);
2351 ScriptNotAtTargetEvent handlerScriptNotAtTargetEvent = OnScriptNotAtTargetEvent;
2352 if (handlerScriptNotAtTargetEvent != null)
2354 foreach (ScriptNotAtTargetEvent d
in handlerScriptNotAtTargetEvent.GetInvocationList())
2363 "[EVENT MANAGER]: Delegate for TriggerNotAtTargetEvent failed - continuing. {0} {1}",
2364 e.Message, e.StackTrace);
2372 ScriptAtRotTargetEvent handlerScriptAtRotTargetEvent = OnScriptAtRotTargetEvent;
2373 if (handlerScriptAtRotTargetEvent != null)
2375 foreach (ScriptAtRotTargetEvent d
in handlerScriptAtRotTargetEvent.GetInvocationList())
2379 d(localID, handle, targetrot, currentrot);
2384 "[EVENT MANAGER]: Delegate for TriggerAtRotTargetEvent failed - continuing. {0} {1}",
2385 e.Message, e.StackTrace);
2393 ScriptNotAtRotTargetEvent handlerScriptNotAtRotTargetEvent = OnScriptNotAtRotTargetEvent;
2394 if (handlerScriptNotAtRotTargetEvent != null)
2396 foreach (ScriptNotAtRotTargetEvent d
in handlerScriptNotAtRotTargetEvent.GetInvocationList())
2405 "[EVENT MANAGER]: Delegate for TriggerNotAtRotTargetEvent failed - continuing. {0} {1}",
2406 e.Message, e.StackTrace);
2414 ScriptMovingStartEvent handlerScriptMovingStartEvent = OnScriptMovingStartEvent;
2415 if (handlerScriptMovingStartEvent != null)
2417 foreach (ScriptMovingStartEvent d
in handlerScriptMovingStartEvent.GetInvocationList())
2426 "[EVENT MANAGER]: Delegate for TriggerMovingStartEvent failed - continuing. {0} {1}",
2427 e.Message, e.StackTrace);
2435 ScriptMovingEndEvent handlerScriptMovingEndEvent = OnScriptMovingEndEvent;
2436 if (handlerScriptMovingEndEvent != null)
2438 foreach (ScriptMovingEndEvent d
in handlerScriptMovingEndEvent.GetInvocationList())
2447 "[EVENT MANAGER]: Delegate for TriggerMovingEndEvent failed - continuing. {0} {1}",
2448 e.Message, e.StackTrace);
2462 RequestChangeWaterHeight handlerRequestChangeWaterHeight = OnRequestChangeWaterHeight;
2463 if (handlerRequestChangeWaterHeight != null)
2465 foreach (RequestChangeWaterHeight d
in handlerRequestChangeWaterHeight.GetInvocationList())
2474 "[EVENT MANAGER]: Delegate for TriggerRequestChangeWaterHeight failed - continuing. {0} {1}",
2475 e.Message, e.StackTrace);
2483 AvatarKillData handlerAvatarKill = OnAvatarKilled;
2484 if (handlerAvatarKill != null)
2486 foreach (AvatarKillData d
in handlerAvatarKill.GetInvocationList())
2490 d(KillerObjectLocalID, DeadAvatar);
2495 "[EVENT MANAGER]: Delegate for TriggerAvatarKill failed - continuing. {0} {1}",
2496 e.Message, e.StackTrace);
2504 Action<ScenePresence> handlerSignificantClientMovement = OnSignificantClientMovement;
2505 if (handlerSignificantClientMovement != null)
2507 foreach (Action<ScenePresence> d
in handlerSignificantClientMovement.GetInvocationList())
2516 "[EVENT MANAGER]: Delegate for TriggerSignificantClientMovement failed - continuing. {0} {1}",
2517 e.Message, e.StackTrace);
2525 ChatFromWorldEvent handlerChatFromWorld = OnChatFromWorld;
2526 if (handlerChatFromWorld != null)
2528 foreach (ChatFromWorldEvent d
in handlerChatFromWorld.GetInvocationList())
2537 "[EVENT MANAGER]: Delegate for TriggerOnChatFromWorld failed - continuing. {0} {1}",
2538 e.Message, e.StackTrace);
2546 ChatFromClientEvent handlerChatFromClient = OnChatFromClient;
2547 if (handlerChatFromClient != null)
2549 foreach (ChatFromClientEvent d
in handlerChatFromClient.GetInvocationList())
2558 "[EVENT MANAGER]: Delegate for TriggerOnChatFromClient failed - continuing. {0} {1}",
2559 e.Message, e.StackTrace);
2566 UUID senderID, HashSet<UUID> receiverIDs,
2567 string message,
ChatTypeEnum type, Vector3 fromPos,
string fromName,
2568 ChatSourceType src, ChatAudibleLevel level)
2570 ChatToClientsEvent handler = OnChatToClients;
2571 if (handler != null)
2573 foreach (ChatToClientsEvent d
in handler.GetInvocationList())
2577 d(senderID, receiverIDs, message, type, fromPos, fromName, src, level);
2582 "[EVENT MANAGER]: Delegate for TriggerOnChatToClients failed - continuing. {0} {1}",
2583 e.Message, e.StackTrace);
2591 ChatBroadcastEvent handlerChatBroadcast = OnChatBroadcast;
2592 if (handlerChatBroadcast != null)
2594 foreach (ChatBroadcastEvent d
in handlerChatBroadcast.GetInvocationList())
2603 "[EVENT MANAGER]: Delegate for TriggerOnChatBroadcast failed - continuing. {0} {1}",
2604 e.Message, e.StackTrace);
2610 internal void TriggerControlEvent(UUID scriptUUID, UUID avatarID, uint held, uint _changed)
2612 ScriptControlEvent handlerScriptControlEvent = OnScriptControlEvent;
2613 if (handlerScriptControlEvent != null)
2615 foreach (ScriptControlEvent d
in handlerScriptControlEvent.GetInvocationList())
2619 d(scriptUUID, avatarID, held, _changed);
2624 "[EVENT MANAGER]: Delegate for TriggerControlEvent failed - continuing. {0} {1}",
2625 e.Message, e.StackTrace);
2633 NoticeNoLandDataFromStorage handlerNoticeNoLandDataFromStorage = OnNoticeNoLandDataFromStorage;
2634 if (handlerNoticeNoLandDataFromStorage != null)
2636 foreach (NoticeNoLandDataFromStorage d
in handlerNoticeNoLandDataFromStorage.GetInvocationList())
2645 "[EVENT MANAGER]: Delegate for TriggerNoticeNoLandDataFromStorage failed - continuing. {0} {1}",
2646 e.Message, e.StackTrace);
2654 IncomingLandDataFromStorage handlerIncomingLandDataFromStorage = OnIncomingLandDataFromStorage;
2655 if (handlerIncomingLandDataFromStorage != null)
2657 foreach (IncomingLandDataFromStorage d
in handlerIncomingLandDataFromStorage.GetInvocationList())
2666 "[EVENT MANAGER]: Delegate for TriggerIncomingLandDataFromStorage failed - continuing. {0} {1}",
2667 e.Message, e.StackTrace);
2675 SetAllowForcefulBan handlerSetAllowForcefulBan = OnSetAllowForcefulBan;
2676 if (handlerSetAllowForcefulBan != null)
2678 foreach (SetAllowForcefulBan d
in handlerSetAllowForcefulBan.GetInvocationList())
2687 "[EVENT MANAGER]: Delegate for TriggerSetAllowForcefulBan failed - continuing. {0} {1}",
2688 e.Message, e.StackTrace);
2696 RequestParcelPrimCountUpdate handlerRequestParcelPrimCountUpdate = OnRequestParcelPrimCountUpdate;
2697 if (handlerRequestParcelPrimCountUpdate != null)
2699 foreach (RequestParcelPrimCountUpdate d
in handlerRequestParcelPrimCountUpdate.GetInvocationList())
2708 "[EVENT MANAGER]: Delegate for TriggerRequestParcelPrimCountUpdate failed - continuing. {0} {1}",
2709 e.Message, e.StackTrace);
2717 ParcelPrimCountTainted handlerParcelPrimCountTainted = OnParcelPrimCountTainted;
2718 if (handlerParcelPrimCountTainted != null)
2720 foreach (ParcelPrimCountTainted d
in handlerParcelPrimCountTainted.GetInvocationList())
2729 "[EVENT MANAGER]: Delegate for TriggerParcelPrimCountTainted failed - continuing. {0} {1}",
2730 e.Message, e.StackTrace);
2743 throw new NotImplementedException(
"TriggerTimerEvent was thought to be not used anymore and the registration for the event from scene object part has been commented out due to a memory leak");
2757 EstateToolsSunUpdate handlerEstateToolsSunUpdate = OnEstateToolsSunUpdate;
2758 if (handlerEstateToolsSunUpdate != null)
2760 foreach (EstateToolsSunUpdate d
in handlerEstateToolsSunUpdate.GetInvocationList())
2769 "[EVENT MANAGER]: Delegate for TriggerEstateToolsSunUpdate failed - continuing. {0} {1}",
2770 e.Message, e.StackTrace);
2778 SunLindenHour handlerCurrentTimeAsLindenSunHour = OnGetCurrentTimeAsLindenSunHour;
2779 if (handlerCurrentTimeAsLindenSunHour != null)
2781 foreach (SunLindenHour d
in handlerCurrentTimeAsLindenSunHour.GetInvocationList())
2790 "[EVENT MANAGER]: Delegate for TriggerOnAttach failed - continuing. {0} {1}",
2791 e.Message, e.StackTrace);
2801 OarFileLoaded handlerOarFileLoaded = OnOarFileLoaded;
2802 if (handlerOarFileLoaded != null)
2804 foreach (OarFileLoaded d
in handlerOarFileLoaded.GetInvocationList())
2808 d(requestId, loadedScenes, message);
2813 "[EVENT MANAGER]: Delegate for TriggerOarFileLoaded failed - continuing. {0} {1}",
2814 e.Message, e.StackTrace);
2822 OarFileSaved handlerOarFileSaved = OnOarFileSaved;
2823 if (handlerOarFileSaved != null)
2825 foreach (OarFileSaved d
in handlerOarFileSaved.GetInvocationList())
2829 d(requestId, message);
2834 "[EVENT MANAGER]: Delegate for TriggerOarFileSaved failed - continuing. {0} {1}",
2835 e.Message, e.StackTrace);
2843 EmptyScriptCompileQueue handlerEmptyScriptCompileQueue = OnEmptyScriptCompileQueue;
2844 if (handlerEmptyScriptCompileQueue != null)
2846 foreach (EmptyScriptCompileQueue d
in handlerEmptyScriptCompileQueue.GetInvocationList())
2850 d(numScriptsFailed, message);
2855 "[EVENT MANAGER]: Delegate for TriggerEmptyScriptCompileQueue failed - continuing. {0} {1}",
2856 e.Message, e.StackTrace);
2864 ScriptColliding handlerCollidingStart = OnScriptColliderStart;
2865 if (handlerCollidingStart != null)
2867 foreach (ScriptColliding d
in handlerCollidingStart.GetInvocationList())
2871 d(localId, colliders);
2876 "[EVENT MANAGER]: Delegate for TriggerScriptCollidingStart failed - continuing. {0} {1}",
2877 e.Message, e.StackTrace);
2885 ScriptColliding handlerColliding = OnScriptColliding;
2886 if (handlerColliding != null)
2888 foreach (ScriptColliding d
in handlerColliding.GetInvocationList())
2892 d(localId, colliders);
2897 "[EVENT MANAGER]: Delegate for TriggerScriptColliding failed - continuing. {0} {1}",
2898 e.Message, e.StackTrace);
2906 ScriptColliding handlerCollidingEnd = OnScriptCollidingEnd;
2907 if (handlerCollidingEnd != null)
2909 foreach (ScriptColliding d
in handlerCollidingEnd.GetInvocationList())
2913 d(localId, colliders);
2918 "[EVENT MANAGER]: Delegate for TriggerScriptCollidingEnd failed - continuing. {0} {1}",
2919 e.Message, e.StackTrace);
2927 ScriptColliding handlerLandCollidingStart = OnScriptLandColliderStart;
2928 if (handlerLandCollidingStart != null)
2930 foreach (ScriptColliding d
in handlerLandCollidingStart.GetInvocationList())
2934 d(localId, colliders);
2939 "[EVENT MANAGER]: Delegate for TriggerScriptLandCollidingStart failed - continuing. {0} {1}",
2940 e.Message, e.StackTrace);
2948 ScriptColliding handlerLandColliding = OnScriptLandColliding;
2949 if (handlerLandColliding != null)
2951 foreach (ScriptColliding d
in handlerLandColliding.GetInvocationList())
2955 d(localId, colliders);
2960 "[EVENT MANAGER]: Delegate for TriggerScriptLandColliding failed - continuing. {0} {1}",
2961 e.Message, e.StackTrace);
2969 ScriptColliding handlerLandCollidingEnd = OnScriptLandColliderEnd;
2970 if (handlerLandCollidingEnd != null)
2972 foreach (ScriptColliding d
in handlerLandCollidingEnd.GetInvocationList())
2976 d(localId, colliders);
2981 "[EVENT MANAGER]: Delegate for TriggerScriptLandCollidingEnd failed - continuing. {0} {1}",
2982 e.Message, e.StackTrace);
2990 OnSetRootAgentSceneDelegate handlerSetRootAgentScene = OnSetRootAgentScene;
2991 if (handlerSetRootAgentScene != null)
2993 foreach (OnSetRootAgentSceneDelegate d
in handlerSetRootAgentScene.GetInvocationList())
3002 "[EVENT MANAGER]: Delegate for TriggerSetRootAgentScene failed - continuing. {0} {1}",
3003 e.Message, e.StackTrace);
3011 RegionUp handlerOnRegionUp = OnRegionUp;
3012 if (handlerOnRegionUp != null)
3014 foreach (RegionUp d
in handlerOnRegionUp.GetInvocationList())
3023 "[EVENT MANAGER]: Delegate for TriggerOnRegionUp failed - continuing. {0} {1}",
3024 e.Message, e.StackTrace);
3032 SceneObjectDelegate handler = OnSceneObjectLoaded;
3033 if (handler != null)
3035 foreach (SceneObjectDelegate d
in handler.GetInvocationList())
3044 "[EVENT MANAGER]: Delegate for TriggerOnSceneObjectLoaded failed - continuing. {0} {1}",
3045 e.Message, e.StackTrace);
3053 SceneObjectPreSaveDelegate handler = OnSceneObjectPreSave;
3054 if (handler != null)
3056 foreach (SceneObjectPreSaveDelegate d
in handler.GetInvocationList())
3060 d(persistingSo, originalSo);
3065 "[EVENT MANAGER]: Delegate for TriggerOnSceneObjectPreSave failed - continuing. {0} {1}",
3066 e.Message, e.StackTrace);
3074 SceneObjectPartCopyDelegate handler = OnSceneObjectPartCopy;
3075 if (handler != null)
3077 foreach (SceneObjectPartCopyDelegate d
in handler.GetInvocationList())
3081 d(copy, original, userExposed);
3086 "[EVENT MANAGER]: Delegate for TriggerOnSceneObjectPartCopy failed - continuing. {0} {1}",
3087 e.Message, e.StackTrace);
3095 SceneObjectPartUpdated handler = OnSceneObjectPartUpdated;
3096 if (handler != null)
3098 foreach (SceneObjectPartUpdated d
in handler.GetInvocationList())
3107 "[EVENT MANAGER]: Delegate for TriggerSceneObjectPartUpdated failed - continuing. {0} {1}",
3108 e.Message, e.StackTrace);
3116 ScenePresenceUpdated handler = OnScenePresenceUpdated;
3117 if (handler != null)
3119 foreach (ScenePresenceUpdated d
in handler.GetInvocationList())
3128 "[EVENT MANAGER]: Delegate for TriggerScenePresenceUpdated failed - continuing. {0} {1}",
3129 e.Message, e.StackTrace);
3139 if (handler != null)
3145 d(args, local_id, remote_client);
3150 "[EVENT MANAGER]: Delegate for TriggerOnSceneObjectPartCopy failed - continuing. {0} {1}",
3151 e.Message, e.StackTrace);
3159 Action<Scene> handler = OnSceneShuttingDown;
3160 if (handler != null)
3162 foreach (Action<Scene> d
in handler.GetInvocationList())
3164 m_log.InfoFormat(
"[EVENT MANAGER]: TriggerSceneShuttingDown invoque {0}", d.Method.Name.ToString());
3172 "[EVENT MANAGER]: Delegate for TriggerSceneShuttingDown failed - continuing. {0} {1}",
3173 e.Message, e.StackTrace);
3177 m_log.Info(
"[EVENT MANAGER]: TriggerSceneShuttingDown done");
3182 RegionStarted handler = OnRegionStarted;
3184 if (handler != null)
3186 foreach (RegionStarted d
in handler.GetInvocationList())
3194 m_log.ErrorFormat(
"[EVENT MANAGER]: Delegate for RegionStarted failed - continuing {0} - {1}",
3195 e.Message, e.StackTrace);
3203 RegionHeartbeatStart handler = OnRegionHeartbeatStart;
3205 if (handler != null)
3207 foreach (RegionHeartbeatStart d
in handler.GetInvocationList())
3215 m_log.ErrorFormat(
"[EVENT MANAGER]: Delegate for OnRegionHeartbeatStart failed - continuing {0} - {1}",
3216 e.Message, e.StackTrace);
3224 RegionHeartbeatEnd handler = OnRegionHeartbeatEnd;
3226 if (handler != null)
3228 foreach (RegionHeartbeatEnd d
in handler.GetInvocationList())
3236 m_log.ErrorFormat(
"[EVENT MANAGER]: Delegate for OnRegionHeartbeatEnd failed - continuing {0} - {1}",
3237 e.Message, e.StackTrace);
3245 RegionLoginsStatusChange handler = OnRegionLoginsStatusChange;
3247 if (handler != null)
3249 foreach (RegionLoginsStatusChange d
in handler.GetInvocationList())
3257 m_log.ErrorFormat(
"[EVENT MANAGER]: Delegate for OnRegionLoginsStatusChange failed - continuing {0} - {1}",
3258 e.Message, e.StackTrace);
3266 Action<IScene> handler = OnRegionReadyStatusChange;
3268 if (handler != null)
3270 foreach (Action<IScene> d
in handler.GetInvocationList())
3278 m_log.ErrorFormat(
"[EVENT MANAGER]: Delegate for OnRegionReadyStatusChange failed - continuing {0} - {1}",
3279 e.Message, e.StackTrace);
3287 PrimsLoaded handler = OnPrimsLoaded;
3289 if (handler != null)
3291 foreach (PrimsLoaded d
in handler.GetInvocationList())
3299 m_log.ErrorFormat(
"[EVENT MANAGER]: Delegate for PrimsLoaded failed - continuing {0} - {1}",
3300 e.Message, e.StackTrace);
3308 TeleportStart handler = OnTeleportStart;
3310 if (handler != null)
3312 foreach (TeleportStart d
in handler.GetInvocationList())
3316 d(client, destination, finalDestination, teleportFlags, gridLogout);
3320 m_log.ErrorFormat(
"[EVENT MANAGER]: Delegate for TeleportStart failed - continuing {0} - {1}",
3321 e.Message, e.StackTrace);
3329 TeleportFail handler = OnTeleportFail;
3331 if (handler != null)
3333 foreach (TeleportFail d
in handler.GetInvocationList())
3337 d(client, gridLogout);
3341 m_log.ErrorFormat(
"[EVENT MANAGER]: Delegate for TeleportFail failed - continuing {0} - {1}",
3342 e.Message, e.StackTrace);
3350 ExtraSettingChangedDelegate handler = OnExtraSettingChanged;
3352 if (handler != null)
3354 foreach (ExtraSettingChangedDelegate d
in handler.GetInvocationList())
3358 d(scene, name, val);
3362 m_log.ErrorFormat(
"[EVENT MANAGER]: Delegate for ExtraSettingChanged failed - continuing {0} - {1}",
3363 e.Message, e.StackTrace);
3371 ThrottleUpdate handler = OnThrottleUpdate;
3372 if (handler != null)
3374 handler(scenePresence);
ChatBroadcastEvent OnChatBroadcast
ChatFromWorldEvent OnChatFromWorld
void TriggerSetRootAgentScene(UUID agentID, Scene scene)
SceneObjectPreSaveDelegate OnSceneObjectPreSave
Called immediately before an object is saved to storage.
bool TriggerDeRezRequested(IClientAPI client, List< SceneObjectGroup > objs, DeRezAction action)
ObjectGrabDelegate OnObjectGrabbing
Triggered when an object is being touched/grabbed continuously.
ScriptColliding OnScriptColliderStart
Triggered when a physical collision has started between a prim and something other than the region te...
void TriggerValidateLandBuy(Object sender, LandBuyArgs args)
OnSaveNewWindlightProfileDelegate OnSaveNewWindlightProfile
ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest
Triggered after parcel properties have been updated.
bool TriggerGroupMove(UUID groupID, Vector3 delta)
OnClientConnectCoreDelegate OnClientConnect
Triggered when a new client connects to the scene.
void TriggerTerrainCheckUpdates()
void TriggerRemoveScript(uint localID, UUID itemID)
void TriggerMovingEndEvent(uint localID)
ScriptChangedEvent OnScriptChangedEvent
Triggered when some scene object properties change.
void TriggerOnClientLogin(IClientAPI client)
void TriggerOnSendNewWindlightProfileTargeted(RegionLightShareData wl, UUID user)
void TriggerObjectGrab(uint localID, uint originalID, Vector3 offsetPos, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs)
ChatFromClientEvent OnChatFromClient
ParcelPrimCountTainted OnParcelPrimCountTainted
Triggered when the parcel prim count has been altered.
CrossAgentToNewRegion OnCrossAgentToNewRegion
void TriggerOarFileLoaded(Guid requestId, List< UUID > loadedScenes, string message)
ScriptColliding OnScriptLandColliding
Triggered when an object that previously collided with the region terrain has not yet stopped collidi...
ScenePresenceUpdated OnScenePresenceUpdated
void TriggerTimerEvent(uint objLocalID, double Interval)
this lets us keep track of nasty script events like timer, etc.
DeregisterCapsEvent OnDeregisterCaps
ScriptNotAtRotTargetEvent OnScriptNotAtRotTargetEvent
Triggered when an object has a rotation target but has not arrived within a tolerance rotation...
void TriggerOnIncomingSceneObject(SceneObjectGroup so)
void TriggerOnSceneObjectLoaded(SceneObjectGroup so)
void TriggerRegionLoginsStatusChange(IScene scene)
void TriggerAvatarEnteringNewParcel(ScenePresence avatar, int localLandID, UUID regionID)
void TriggerLandObjectRemoved(UUID globalID)
TeleportFail OnTeleportFail
Trigered when a teleport fails.
TeleportStart OnTeleportStart
Triggered when a teleport starts
void TriggerAtRotTargetEvent(uint localID, uint handle, Quaternion targetrot, Quaternion currentrot)
void TriggerTerrainUpdate()
MoneyTransferEvent OnMoneyTransfer
Triggered when an attempt to transfer grid currency occurs
void TriggerAtTargetEvent(uint localID, uint handle, Vector3 targetpos, Vector3 currentpos)
NewScript OnNewScript
Fired when a script is created.
void TriggerOnNewInventoryItemUploadComplete(UUID agentID, AssetType type, UUID AssetID, String AssetName, int userlevel)
RequestChangeWaterHeight OnRequestChangeWaterHeight
AvatarKillData OnAvatarKilled
Fired if any avatar is 'killed' due to its health falling to zero
void TriggerScriptLandCollidingStart(uint localId, ColliderArgs colliders)
OnTerrainUpdateDelegate OnTerrainUpdate
SceneGroupGrabed OnSceneGroupGrab
Triggered when an object is grabbed.
void TriggerObjectDeGrab(uint localID, uint originalID, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs)
void TriggerOnDeregisterCaps(UUID agentID, Caps caps)
Action< IClientAPI > OnClientLogin
Fired if the client entering this sim is doing so as a new login
void TriggerPermissionError(UUID user, string reason)
LandBuyArgs(UUID pagentId, UUID pgroupId, bool pfinal, bool pgroupOwned, bool premoveContribution, int pparcelLocalID, int pparcelArea, int pparcelPrice, bool pauthenticated)
EstateToolsSunUpdate OnEstateToolsSunUpdate
void TriggerClientClosed(UUID ClientID, Scene scene)
OnSetRootAgentSceneDelegate OnSetRootAgentScene
Triggered before the grunt work for adding a root agent to a scene has been performed (resuming attac...
A scene object group is conceptually an object in the scene. The object is constituted of SceneObject...
MoneyTransferArgs(UUID asender, UUID areceiver, int aamount, int atransactiontype, string adescription)
AvatarAppearanceChange OnAvatarAppearanceChange
void TriggerOnRegionUp(GridRegion otherRegion)
void TriggerOnSceneObjectPreSave(SceneObjectGroup persistingSo, SceneObjectGroup originalSo)
void TriggerObjectRemovedFromPhysicalScene(SceneObjectPart obj)
void TriggerOnMakeChildAgent(ScenePresence presence)
OpenSim.Framework.Capabilities.Caps Caps
void TriggerObjectGrabbing(uint localID, uint originalID, Vector3 offsetPos, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs)
void TriggerLandObjectAdded(ILandObject newParcel)
void TriggerScriptColliding(uint localId, ColliderArgs colliders)
void TriggerAvatarAppearanceChanged(ScenePresence avatar)
SceneGroupMoved OnSceneGroupMove
Triggered when an object is moved.
RegionLoginsStatusChange OnRegionLoginsStatusChange
Fired when logins to a region are enabled or disabled.
ThrottleUpdate OnThrottleUpdate
void TriggerOnMakeRootAgent(ScenePresence presence)
void TriggerRegionHeartbeatEnd(Scene scene)
void TriggerObjectBeingRemovedFromScene(SceneObjectGroup obj)
OnTerrainCheckUpdatesDelegate OnTerrainCheckUpdates
SceneGroupSpun OnSceneGroupSpin
Triggered when an object is being spun.
IncomingLandDataFromStorage OnIncomingLandDataFromStorage
void TriggerStartScript(uint localID, UUID itemID)
ScriptResetDelegate OnScriptReset
Triggered when a script resets.
UpdateScript OnUpdateScript
An indication that the script has changed.
RegionHeartbeatEnd OnRegionHeartbeatEnd
SceneObjectDelegate OnSceneObjectLoaded
Called immediately after an object is loaded from storage.
ScriptMovingStartEvent OnScriptMovingStartEvent
TODO: Should be triggered when a physics object starts moving.
void TriggerScriptLandColliding(uint localId, ColliderArgs colliders)
ObjectDeGrabDelegate OnObjectDeGrab
Triggered when an object stops being touched/grabbed.
StartScript OnStartScript
Triggered when a script starts.
OnParcelPrimCountAddDelegate OnParcelPrimCountAdd
Triggered in response to OnParcelPrimCountUpdate for objects that actually contribute to parcel prim ...
Action OnShutdown
Triggered when the entire simulator is shutdown.
void TriggerOnRemovePresence(UUID agentId)
OpenSim.Services.Interfaces.GridRegion GridRegion
LandBuy OnLandBuy
Triggered after after OnValidateLandBuy
Action< ScenePresence > OnMakeRootAgent
Triggered after the grunt work for adding a root agent to a scene has been performed (resuming attach...
SetAllowForcefulBan OnSetAllowForcefulBan
void TriggerMoneyTransfer(Object sender, MoneyTransferArgs args)
OnRemovePresenceDelegate OnRemovePresence
Triggered when a presence is removed from the scene
void TriggerIncomingLandDataFromStorage(List< LandData > landData)
void TriggerObjectAddedToPhysicalScene(SceneObjectPart obj)
void TriggerOnRegionStarted(Scene scene)
void TriggerAvatarKill(uint KillerObjectLocalID, ScenePresence DeadAvatar)
void TriggerOnChatFromWorld(Object sender, OSChatMessage chat)
AvatarEnteringNewParcel OnAvatarEnteringNewParcel
EmptyScriptCompileQueue OnEmptyScriptCompileQueue
void TriggerOnParcelPropertiesUpdateRequest(LandUpdateArgs args, int local_id, IClientAPI remote_client)
void TriggerLandObjectUpdated(uint localParcelID, ILandObject newParcel)
void TriggerSetAllowForcefulBan(bool allow)
void TriggerTerrainTainted()
void TriggerOnSceneObjectPartCopy(SceneObjectPart copy, SceneObjectPart original, bool userExposed)
GetScriptRunning OnGetScriptRunning
void TriggerParcelPrimCountTainted()
void TriggerTerrainTick()
void TriggerOnRegisterCaps(UUID agentID, Caps caps)
RequestParcelPrimCountUpdate OnRequestParcelPrimCountUpdate
void TriggerIncomingInstantMessage(GridInstantMessage message)
OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion rotation
void TriggerScenePresenceUpdated(ScenePresence sp)
void TriggerSceneShuttingDown(Scene s)
void TriggerStopScript(uint localID, UUID itemID)
IncomingInstantMessage OnIncomingInstantMessage
SceneObjectPartUpdated OnSceneObjectPartUpdated
SceneGroupSpinStarted OnSceneGroupSpinStart
Triggered when an object starts to spin.
RegisterCapsEvent OnRegisterCaps
void TriggerOnBackup(ISimulationDataService dstore, bool forced)
void TriggerOnNewPresence(ScenePresence presence)
void TriggerEstateToolsSunUpdate(ulong regionHandle)
Called when the sun's position parameters have changed in the Region and/or Estate ...
void TriggerExtraSettingChanged(Scene scene, string name, string val)
void TriggerScriptCollidingEnd(uint localId, ColliderArgs colliders)
void TriggerLandBuy(Object sender, LandBuyArgs args)
void TriggerNoticeNoLandDataFromStorage()
Action< SceneObjectPart > OnObjectRemovedFromPhysicalScene
Triggered when an object is removed from the physical scene (PhysicsActor destroyed).
Action< SceneObjectGroup > OnObjectAddedToScene
Triggered when an object is added to the scene.
void TriggerMovingStartEvent(uint localID)
void TriggerOnChatBroadcast(Object sender, OSChatMessage chat)
ScriptAtTargetEvent OnScriptAtTargetEvent
Triggered when an object has arrived within a tolerance distance of a motion target.
ScriptAtRotTargetEvent OnScriptAtRotTargetEvent
Triggered when an object has arrived within a tolerance rotation of a rotation target.
bool TriggerGroupSpinStart(UUID groupID)
DeRezRequested OnDeRezRequested
When a client sends a derez request for an object inworld but before the object is deleted ...
OnTerrainTaintedDelegate OnTerrainTainted
Triggered if the terrain has been edited
Action< IScene > OnRegionReadyStatusChange
Fired when a region is considered ready for use.
void TriggerRegionHeartbeatStart(Scene scene)
ExtraSettingChangedDelegate OnExtraSettingChanged
RegionHeartbeatStart OnRegionHeartbeatStart
ScriptMovingEndEvent OnScriptMovingEndEvent
TODO: Should be triggered when a physics object stops moving.
SceneObjectPartCopyDelegate OnSceneObjectPartCopy
Called when a scene object part is cloned within the region.
void TriggerOnScriptChangedEvent(uint localID, uint change)
OnBackupDelegate OnBackup
Triggered when a region is backed up/persisted to storage
OarFileLoaded OnOarFileLoaded
NewRezScript OnRezScript
Fired when a script is run.
void TriggerCrossAgentToNewRegion(ScenePresence agent, bool isFlying, GridRegion newRegion)
ScriptColliding OnScriptCollidingEnd
Triggered when something that previously collided with a prim has stopped colliding with it...
void TriggerEmptyScriptCompileQueue(int numScriptsFailed, string message)
bool TriggerGroupSpin(UUID groupID, Quaternion rotation)
void TriggerOnSaveNewWindlightProfile()
A class for triggering remote scene events.
NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete
OnSendNewWindlightProfileTargetedDelegate OnSendNewWindlightProfileTargeted
OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate
Triggered whenever the prim count may have been altered, or prior to an action that requires the curr...
RegionStarted OnRegionStarted
ObjectBeingRemovedFromScene OnObjectBeingRemovedFromScene
Triggered when an object is removed from the scene.
OnTerrainTickDelegate OnTerrainTick
Triggered if the terrain has been edited
void TriggerOnClientMovement(ScenePresence avatar)
void TriggerParcelPrimCountAdd(SceneObjectGroup obj)
OnMakeChildAgentDelegate OnMakeChildAgent
Triggered when an agent has been made a child agent of a scene.
virtual void TriggerUpdateScript(UUID clientId, UUID itemId, UUID primId, bool isScriptRunning, UUID newAssetID)
void TriggerTeleportStart(IClientAPI client, GridRegion destination, GridRegion finalDestination, uint teleportFlags, bool gridLogout)
OpenSim.Framework.Capabilities.Caps Caps
SunLindenHour OnGetCurrentTimeAsLindenSunHour
void TriggerRequestChangeWaterHeight(float height)
OnNewClientDelegate OnNewClient
Triggered when a new client is added to the scene.
LandObjectRemoved OnLandObjectRemoved
NoticeNoLandDataFromStorage OnNoticeNoLandDataFromStorage
void TriggerObjectAddedToScene(SceneObjectGroup obj)
RemoveScript OnRemoveScript
Triggered when a script is removed from an object.
ClientClosed OnClientClosed
Fired when a client is removed from a scene whether it's a child or a root agent. ...
StopScript OnStopScript
Triggered when a script stops.
void TriggerRegionReadyStatusChange(IScene scene)
void TriggerPrimsLoaded(Scene s)
ClientMovement OnClientMovement
Trigerred when an agent moves.
OarFileSaved OnOarFileSaved
OnIncomingSceneObjectDelegate OnIncomingSceneObject
Triggered when an object or attachment enters a scene
ScriptControlEvent OnScriptControlEvent
Triggered when a script receives control input from an agent.
Action< SceneObjectPart > OnObjectAddedToPhysicalScene
Triggered when an object is placed into the physical scene (PhysicsActor created).
virtual void TriggerNewScript(UUID clientID, SceneObjectPart part, UUID itemID)
Action< ScenePresence > OnSignificantClientMovement
ScriptNotAtTargetEvent OnScriptNotAtTargetEvent
Triggered when an object has a motion target but has not arrived within a tolerance distance...
ScriptColliding OnScriptLandColliderEnd
Triggered when an object that previously collided with the region terrain has stopped colliding with ...
Action< Scene > OnSceneShuttingDown
Triggered when an individual scene is shutdown.
IncomingInstantMessage OnUnhandledInstantMessage
void TriggerScriptCollidingStart(uint localId, ColliderArgs colliders)
void TriggerOnNewClient(IClientAPI client)
void TriggerGroupGrab(UUID groupID, Vector3 offset, UUID userID)
void TriggerThrottleUpdate(ScenePresence scenePresence)
void TriggerNotAtTargetEvent(uint localID)
void TriggerNotAtRotTargetEvent(uint localID)
OpenSim.Services.Interfaces.GridRegion GridRegion
void TriggerRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource)
PrimsLoaded OnPrimsLoaded
void TriggerUnhandledInstantMessage(GridInstantMessage message)
delegate void ParcelPropertiesUpdateRequest(LandUpdateArgs args, int local_id, IClientAPI remote_client)
void TriggerOnChatFromClient(Object sender, OSChatMessage chat)
void TriggerOnChatToClients(UUID senderID, HashSet< UUID > receiverIDs, string message, ChatTypeEnum type, Vector3 fromPos, string fromName, ChatSourceType src, ChatAudibleLevel level)
ChatToClientsEvent OnChatToClients
OnPermissionErrorDelegate OnPermissionError
float GetCurrentTimeAsSunLindenHour()
LandObjectAdded OnLandObjectAdded
void TriggerTeleportFail(IClientAPI client, bool gridLogout)
void TriggerOarFileSaved(Guid requestId, string message)
ScriptColliding OnScriptColliding
Triggered when something that previously collided with a prim has not stopped colliding with it...
void TriggerOnPluginConsole(string[] args)
OnNewPresenceDelegate OnNewPresence
Triggered when a new presence is added to the scene
ObjectGrabDelegate OnObjectGrab
Fired when an object is touched/grabbed.
OnPluginConsoleDelegate OnPluginConsole
Triggered after OpenSim.IApplicationPlugin.PostInitialise has been called for all OpenSim...
void TriggerSceneObjectPartUpdated(SceneObjectPart sop, bool full)
void TriggerOnAttach(uint localID, UUID itemID, UUID avatarID)
void TriggerGetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID)
void TriggerParcelPrimCountUpdate()
void TriggerRequestParcelPrimCountUpdate()
void TriggerScriptReset(uint localID, UUID itemID)
OnFrameDelegate OnFrame
Triggered on each sim frame.
void TriggerSignificantClientMovement(ScenePresence presence)
LandBuy OnValidateLandBuy
Triggered to allow or prevent a real estate transaction
delegate void GetScriptRunning(IClientAPI remoteClient, UUID objectID, UUID itemID)
ScriptColliding OnScriptLandColliderStart
Triggered when a physical collision has started between an object and the region terrain.
void TriggerScriptLandCollidingEnd(uint localId, ColliderArgs colliders)