mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
When preparing a Hypergrid teleport, tell the receiving grid which user is entering the grid.
This can affect which region to use. E.g., returning users may be allowed to enter any region, whereas users from other grids will have to enter a gateway region. Previously per-user decisions were only made later, but by then it's too late to change which region the user enters.
This commit is contained in:
@@ -202,10 +202,16 @@ namespace OpenSim.Services.Connectors.Hypergrid
|
||||
return mapTile;
|
||||
}
|
||||
|
||||
public GridRegion GetHyperlinkRegion(GridRegion gatekeeper, UUID regionID, out string message)
|
||||
public GridRegion GetHyperlinkRegion(GridRegion gatekeeper, UUID regionID, UUID agentID, string agentHomeURI, out string message)
|
||||
{
|
||||
Hashtable hash = new Hashtable();
|
||||
hash["region_uuid"] = regionID.ToString();
|
||||
if (agentID != UUID.Zero)
|
||||
{
|
||||
hash["agent_id"] = agentID.ToString();
|
||||
if (agentHomeURI != null)
|
||||
hash["agent_home_uri"] = agentHomeURI;
|
||||
}
|
||||
|
||||
IList paramList = new ArrayList();
|
||||
paramList.Add(hash);
|
||||
|
||||
Reference in New Issue
Block a user