Add RequestMapBlocks to local and remote interfaces
parent
bb475e71c7
commit
a0607dadaf
|
@ -34,6 +34,7 @@ using OpenSim.Framework.Console;
|
|||
using libsecondlife;
|
||||
using Db4objects.Db4o;
|
||||
using Db4objects.Db4o.Query;
|
||||
using System.Collections;
|
||||
|
||||
namespace OpenSim.GridInterfaces.Local
|
||||
{
|
||||
|
@ -115,6 +116,12 @@ namespace OpenSim.GridInterfaces.Local
|
|||
|
||||
}
|
||||
|
||||
public override IList RequestMapBlocks(int minX, int minY, int maxX, int maxY)
|
||||
{
|
||||
return new ArrayList();
|
||||
}
|
||||
|
||||
|
||||
public override void Close()
|
||||
{
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue