mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
Pipe Throttle Update Event to EventManager, client --> ScenePresence --> EventManager, so that modules can know when throttles are updated. The event contains no client specific data to preserve the possibility of 'multiple clients' and you must still call ControllingClient.GetThrottlesPacked(f) to see what the throttles actually are once the event fires. Hook EventManager.OnUpdateThrottle to GetTextureModule.
This commit is contained in:
@@ -376,6 +376,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public event ParcelPrimCountTainted OnParcelPrimCountTainted;
|
||||
public event GetScriptRunning OnGetScriptRunning;
|
||||
|
||||
public delegate void ThrottleUpdate(ScenePresence scenePresence);
|
||||
|
||||
public event ThrottleUpdate OnThrottleUpdate;
|
||||
|
||||
/// <summary>
|
||||
/// RegisterCapsEvent is called by Scene after the Caps object
|
||||
/// has been instantiated and before it is return to the
|
||||
@@ -2641,5 +2645,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void TriggerThrottleUpdate(ScenePresence scenePresence)
|
||||
{
|
||||
ThrottleUpdate handler = OnThrottleUpdate;
|
||||
if (handler != null)
|
||||
{
|
||||
handler(scenePresence);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user