clean some modules api
parent
4345d225f1
commit
d3ff4e0806
|
@ -1,16 +0,0 @@
|
||||||
:VERSION 1
|
|
||||||
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
CREATE TABLE `XMute` (
|
|
||||||
`AgentID` char(36) NOT NULL,
|
|
||||||
`MuteID` char(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
|
|
||||||
`MuteName` varchar(64) NOT NULL DEFAULT '',
|
|
||||||
`MuteType` int(11) NOT NULL DEFAULT '1',
|
|
||||||
`MuteFlags` int(11) NOT NULL DEFAULT '0',
|
|
||||||
`Stamp` int(11) NOT NULL,
|
|
||||||
UNIQUE KEY `AgentID_2` (`AgentID`,`MuteID`,`MuteName`),
|
|
||||||
KEY `AgentID` (`AgentID`)
|
|
||||||
);
|
|
||||||
|
|
||||||
COMMIT;
|
|
|
@ -163,7 +163,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||||
|
|
||||||
#region ISharedRegionModule implementation
|
#region ISharedRegionModule implementation
|
||||||
|
|
||||||
void ISharedRegionModule.PostInitialise()
|
public void PostInitialise()
|
||||||
{
|
{
|
||||||
if(!Enabled)
|
if(!Enabled)
|
||||||
return;
|
return;
|
||||||
|
@ -173,7 +173,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||||
|
|
||||||
#region IRegionModuleBase implementation
|
#region IRegionModuleBase implementation
|
||||||
|
|
||||||
void IRegionModuleBase.Initialise(IConfigSource source)
|
public void Initialise(IConfigSource source)
|
||||||
{
|
{
|
||||||
IConfig moduleConfig = source.Configs["Modules"];
|
IConfig moduleConfig = source.Configs["Modules"];
|
||||||
if (moduleConfig != null)
|
if (moduleConfig != null)
|
||||||
|
@ -187,12 +187,12 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void IRegionModuleBase.Close()
|
public void Close()
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void IRegionModuleBase.AddRegion(Scene scene)
|
public void AddRegion(Scene scene)
|
||||||
{
|
{
|
||||||
if (!Enabled)
|
if (!Enabled)
|
||||||
return;
|
return;
|
||||||
|
@ -206,7 +206,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void IRegionModuleBase.RemoveRegion(Scene scene)
|
public void RemoveRegion(Scene scene)
|
||||||
{
|
{
|
||||||
if (!Enabled)
|
if (!Enabled)
|
||||||
return;
|
return;
|
||||||
|
@ -218,7 +218,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void IRegionModuleBase.RegionLoaded(Scene scene)
|
public void RegionLoaded(Scene scene)
|
||||||
{
|
{
|
||||||
if (!Enabled)
|
if (!Enabled)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -127,7 +127,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Identifies the module to the system.
|
/// Identifies the module to the system.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
string IRegionModuleBase.Name
|
public string Name
|
||||||
{
|
{
|
||||||
get { return "AutoBackupModule"; }
|
get { return "AutoBackupModule"; }
|
||||||
}
|
}
|
||||||
|
@ -135,7 +135,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// We don't implement an interface, this is a single-use module.
|
/// We don't implement an interface, this is a single-use module.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Type IRegionModuleBase.ReplaceableInterface
|
public Type ReplaceableInterface
|
||||||
{
|
{
|
||||||
get { return null; }
|
get { return null; }
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||||
/// Called once in the lifetime of the module at startup.
|
/// Called once in the lifetime of the module at startup.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="source">The input config source for OpenSim.ini.</param>
|
/// <param name="source">The input config source for OpenSim.ini.</param>
|
||||||
void IRegionModuleBase.Initialise(IConfigSource source)
|
public void Initialise(IConfigSource source)
|
||||||
{
|
{
|
||||||
// Determine if we have been enabled at all in OpenSim.ini -- this is part and parcel of being an optional module
|
// Determine if we have been enabled at all in OpenSim.ini -- this is part and parcel of being an optional module
|
||||||
m_configSource = source;
|
m_configSource = source;
|
||||||
|
@ -184,7 +184,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called once at de-init (sim shutting down).
|
/// Called once at de-init (sim shutting down).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void IRegionModuleBase.Close()
|
public void Close()
|
||||||
{
|
{
|
||||||
if (!m_enabled)
|
if (!m_enabled)
|
||||||
return;
|
return;
|
||||||
|
@ -197,7 +197,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||||
/// Currently a no-op for AutoBackup because we have to wait for region to be fully loaded.
|
/// Currently a no-op for AutoBackup because we have to wait for region to be fully loaded.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="scene"></param>
|
/// <param name="scene"></param>
|
||||||
void IRegionModuleBase.AddRegion (Scene scene)
|
public void AddRegion (Scene scene)
|
||||||
{
|
{
|
||||||
if (!m_enabled)
|
if (!m_enabled)
|
||||||
return;
|
return;
|
||||||
|
@ -210,7 +210,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||||
/// Here we just clean up some resources and stop the OAR backup (if any) for the given scene.
|
/// Here we just clean up some resources and stop the OAR backup (if any) for the given scene.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="scene">The scene (region) to stop performing AutoBackup on.</param>
|
/// <param name="scene">The scene (region) to stop performing AutoBackup on.</param>
|
||||||
void IRegionModuleBase.RemoveRegion(Scene scene)
|
public void RemoveRegion(Scene scene)
|
||||||
{
|
{
|
||||||
if (m_enabled)
|
if (m_enabled)
|
||||||
return;
|
return;
|
||||||
|
@ -228,7 +228,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||||
/// We read lots of Nini config, maybe set a timer, add members to state tracking Dictionaries, etc.
|
/// We read lots of Nini config, maybe set a timer, add members to state tracking Dictionaries, etc.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="scene">The scene to (possibly) perform AutoBackup on.</param>
|
/// <param name="scene">The scene to (possibly) perform AutoBackup on.</param>
|
||||||
void IRegionModuleBase.RegionLoaded(Scene scene)
|
public void RegionLoaded(Scene scene)
|
||||||
{
|
{
|
||||||
if (!m_enabled)
|
if (!m_enabled)
|
||||||
return;
|
return;
|
||||||
|
@ -258,7 +258,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Currently a no-op.
|
/// Currently a no-op.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void ISharedRegionModule.PostInitialise()
|
public void PostInitialise()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue