Add RequestMapBlocks to local and remote interfaces

zircon^2
morphw 2007-05-20 02:35:23 +00:00
parent bb475e71c7
commit a0607dadaf
2 changed files with 22 additions and 0 deletions

View File

@ -34,6 +34,7 @@ using OpenSim.Framework.Console;
using libsecondlife;
using Db4objects.Db4o;
using Db4objects.Db4o.Query;
using System.Collections;
namespace OpenSim.GridInterfaces.Local
{
@ -114,6 +115,12 @@ namespace OpenSim.GridInterfaces.Local
{
}
public override IList RequestMapBlocks(int minX, int minY, int maxX, int maxY)
{
return new ArrayList();
}
public override void Close()
{

View File

@ -161,6 +161,21 @@ namespace OpenSim.GridInterfaces.Remote
return null;
}
public override IList RequestMapBlocks(int minX, int minY, int maxX, int maxY)
{
Hashtable param = new Hashtable();
param["xmin"] = minX;
param["ymin"] = minY;
param["xmax"] = maxX;
param["ymax"] = maxY;
IList parameters = new ArrayList();
parameters.Add(param);
XmlRpcRequest req = new XmlRpcRequest("map_block", parameters);
XmlRpcResponse resp = req.Send(GridServerUrl, 3000);
Hashtable respData = (Hashtable)resp.Value;
return (IList)respData["sim-profiles"];
}
public override void SetServerInfo(string ServerUrl, string SendKey, string RecvKey)
{
this.GridServerUrl = ServerUrl;