mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
* Modernized ScriptManager to new interface-based module calls.
* 'remove redundant this qualifier' ftw
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using libsecondlife;
|
||||
using OpenSim.Framework.Interfaces;
|
||||
using OpenSim.Region.Environment.Interfaces;
|
||||
|
||||
namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
@@ -9,41 +10,54 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
public class EventManager
|
||||
{
|
||||
public delegate void OnFrameDelegate();
|
||||
|
||||
public event OnFrameDelegate OnFrame;
|
||||
|
||||
public delegate void OnBackupDelegate(Interfaces.IRegionDataStore datastore);
|
||||
public delegate void OnBackupDelegate(IRegionDataStore datastore);
|
||||
|
||||
public event OnBackupDelegate OnBackup;
|
||||
|
||||
public delegate void OnNewClientDelegate(IClientAPI client);
|
||||
|
||||
public event OnNewClientDelegate OnNewClient;
|
||||
|
||||
public delegate void OnNewPresenceDelegate(ScenePresence presence);
|
||||
|
||||
public event OnNewPresenceDelegate OnNewPresence;
|
||||
|
||||
public delegate void OnRemovePresenceDelegate(LLUUID uuid);
|
||||
|
||||
public event OnRemovePresenceDelegate OnRemovePresence;
|
||||
|
||||
public delegate void OnParcelPrimCountUpdateDelegate();
|
||||
|
||||
public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate;
|
||||
|
||||
public delegate void OnParcelPrimCountAddDelegate(SceneObjectGroup obj);
|
||||
|
||||
public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd;
|
||||
|
||||
public delegate void OnScriptConsoleDelegate(string[] args);
|
||||
|
||||
public event OnScriptConsoleDelegate OnScriptConsole;
|
||||
|
||||
public delegate void OnShutdownDelegate();
|
||||
|
||||
public event OnShutdownDelegate OnShutdown;
|
||||
|
||||
public delegate void ObjectGrabDelegate(uint localID, LLVector3 offsetPos, IClientAPI remoteClient);
|
||||
|
||||
public delegate void OnPermissionErrorDelegate(LLUUID user, string reason);
|
||||
|
||||
public event ObjectGrabDelegate OnObjectGrab;
|
||||
public event OnPermissionErrorDelegate OnPermissionError;
|
||||
|
||||
public delegate void NewRezScript(uint localID, LLUUID itemID, string script);
|
||||
|
||||
public event NewRezScript OnRezScript;
|
||||
|
||||
public delegate void RemoveScript(uint localID, LLUUID itemID);
|
||||
|
||||
public event RemoveScript OnRemoveScript;
|
||||
|
||||
public void TriggerPermissionError(LLUUID user, string reason)
|
||||
@@ -86,7 +100,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public void TriggerOnBackup(Interfaces.IRegionDataStore dstore)
|
||||
public void TriggerOnBackup(IRegionDataStore dstore)
|
||||
{
|
||||
if (OnBackup != null)
|
||||
{
|
||||
@@ -101,6 +115,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
OnParcelPrimCountUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
public void TriggerParcelPrimCountAdd(SceneObjectGroup obj)
|
||||
{
|
||||
if (OnParcelPrimCountAdd != null)
|
||||
@@ -137,4 +152,4 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user