Files
libremetaverse/Programs/Simian/Extensions/GridLocal.cs
John Hurliman 70fe1f8f2a [Simian]
* Initial framework support for multiple simulators. Currently only the first region config is loaded, but the framework is there
* Big reorganization of config and data files
* Started renaming extensions that handle LLUDP packets to start with the LL prefix. Work in progress
* Initial SSL support

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2482 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-12 23:02:42 +00:00

71 lines
1.5 KiB
C#

using System;
using ExtensionLoader;
using OpenMetaverse;
namespace Simian
{
public class GridLocal : IExtension<Simian>, IGridProvider
{
Simian server;
public GridLocal()
{
}
public bool Start(Simian server)
{
this.server = server;
return true;
}
public void Stop()
{
}
public bool TryRegisterGridSpace(RegionInfo region, out UUID regionID)
{
regionID = UUID.Zero;
return false;
}
public bool TryRegisterAnyGridSpace(RegionInfo region, bool isolated, out UUID regionID)
{
regionID = UUID.Zero;
return false;
}
public bool UnregisterGridSpace(RegionInfo region)
{
return false;
}
public void RegionUpdate(RegionInfo region)
{
}
public void RegionHeartbeat(RegionInfo region)
{
}
public bool TryGetRegion(UUID regionID, out RegionInfo region)
{
region = null;
return false;
}
public bool TryGetRegion(uint x, uint y, out RegionInfo region)
{
region = null;
return false;
}
public ISceneProvider GetDefaultLocalScene()
{
if (server.Scenes.Count > 0)
return server.Scenes[0];
else
return null;
}
}
}