Mantis #7664: Added IHypergridLinker interface to establish a contract about what implementers need to provide publicly. This is used by 3rd-party addons such as Wifi.
parent
368ea78d14
commit
32d87aa168
|
@ -47,7 +47,7 @@ using OpenMetaverse;
|
|||
|
||||
namespace OpenSim.Services.GridService
|
||||
{
|
||||
public class HypergridLinker
|
||||
public class HypergridLinker : IHypergridLinker
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(
|
||||
|
@ -191,7 +191,7 @@ namespace OpenSim.Services.GridService
|
|||
return TryLinkRegionToCoords(scopeID, mapName, xloc, yloc, UUID.Zero, out reason);
|
||||
}
|
||||
|
||||
private GridRegion TryLinkRegionToCoords(UUID scopeID, string mapName, int xloc, int yloc, UUID ownerID, out string reason)
|
||||
public GridRegion TryLinkRegionToCoords(UUID scopeID, string mapName, int xloc, int yloc, UUID ownerID, out string reason)
|
||||
{
|
||||
reason = string.Empty;
|
||||
GridRegion regInfo = null;
|
||||
|
|
|
@ -124,6 +124,12 @@ namespace OpenSim.Services.Interfaces
|
|||
Dictionary<string,object> GetExtraFeatures();
|
||||
}
|
||||
|
||||
public interface IHypergridLinker
|
||||
{
|
||||
GridRegion TryLinkRegionToCoords(UUID scopeID, string mapName, int xloc, int yloc, UUID ownerID, out string reason);
|
||||
bool TryUnlinkRegion(string mapName);
|
||||
}
|
||||
|
||||
public class GridRegion
|
||||
{
|
||||
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
|
Loading…
Reference in New Issue