diff options
author | dahlia | 2014-02-20 00:18:28 -0800 |
---|---|---|
committer | dahlia | 2014-02-20 00:18:28 -0800 |
commit | a2866b85f3674b0f63b962f46f23490cd198515e (patch) | |
tree | eddfc1fa2dc4ee98ca968e9312faf87e0df77fdb /OpenSim/Region/Framework/Scenes/EventManager.cs | |
parent | add EventManager event OnCrossAgentToNewRegion (diff) | |
download | opensim-SC-a2866b85f3674b0f63b962f46f23490cd198515e.zip opensim-SC-a2866b85f3674b0f63b962f46f23490cd198515e.tar.gz opensim-SC-a2866b85f3674b0f63b962f46f23490cd198515e.tar.bz2 opensim-SC-a2866b85f3674b0f63b962f46f23490cd198515e.tar.xz |
add newRegion parameter to CrossAgentToNewRegion event and trigger the event after crossing thread is invoked
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index 1981a25..ba79964 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -430,7 +430,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
430 | public delegate void IncomingInstantMessage(GridInstantMessage message); | 430 | public delegate void IncomingInstantMessage(GridInstantMessage message); |
431 | public event IncomingInstantMessage OnIncomingInstantMessage; | 431 | public event IncomingInstantMessage OnIncomingInstantMessage; |
432 | 432 | ||
433 | public delegate void CrossAgentToNewRegion(ScenePresence sp, bool isFlying); | 433 | public delegate void CrossAgentToNewRegion(ScenePresence sp, bool isFlying, GridRegion newRegion); |
434 | public event CrossAgentToNewRegion OnCrossAgentToNewRegion; | 434 | public event CrossAgentToNewRegion OnCrossAgentToNewRegion; |
435 | 435 | ||
436 | public event IncomingInstantMessage OnUnhandledInstantMessage; | 436 | public event IncomingInstantMessage OnUnhandledInstantMessage; |
@@ -1963,7 +1963,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1963 | } | 1963 | } |
1964 | } | 1964 | } |
1965 | 1965 | ||
1966 | public void TriggerCrossAgentToNewRegion(ScenePresence agent, bool isFlying) | 1966 | public void TriggerCrossAgentToNewRegion(ScenePresence agent, bool isFlying, GridRegion newRegion) |
1967 | { | 1967 | { |
1968 | CrossAgentToNewRegion handlerCrossAgentToNewRegion = OnCrossAgentToNewRegion; | 1968 | CrossAgentToNewRegion handlerCrossAgentToNewRegion = OnCrossAgentToNewRegion; |
1969 | if (handlerCrossAgentToNewRegion != null) | 1969 | if (handlerCrossAgentToNewRegion != null) |
@@ -1972,7 +1972,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1972 | { | 1972 | { |
1973 | try | 1973 | try |
1974 | { | 1974 | { |
1975 | d(agent, isFlying); | 1975 | d(agent, isFlying, newRegion); |
1976 | } | 1976 | } |
1977 | catch (Exception e) | 1977 | catch (Exception e) |
1978 | { | 1978 | { |