Next step for world map overlays
parent
ea16c9f858
commit
bde2ff5e78
|
@ -263,7 +263,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
|||
foreach (GridRegion r in regions)
|
||||
{
|
||||
MapBlockData block = new MapBlockData();
|
||||
MapBlockFromGridRegion(block, r);
|
||||
MapBlockFromGridRegion(block, r, 0);
|
||||
mapBlocks.Add(block);
|
||||
}
|
||||
avatarPresence.ControllingClient.SendMapBlock(mapBlocks, 0);
|
||||
|
@ -990,7 +990,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
|||
response.Add(block);
|
||||
}
|
||||
// The lower 16 bits are an unsigned int16
|
||||
remoteClient.SendMapBlock(response, flags & 0xffff);
|
||||
remoteClient.SendMapBlock(response, flag & 0xffff);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1031,6 +1031,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
|||
break;
|
||||
default:
|
||||
block.MapImageId = UUID.Zero;
|
||||
break;
|
||||
}
|
||||
block.Name = r.RegionName;
|
||||
block.X = (ushort)(r.RegionLocX / Constants.RegionSize);
|
||||
|
|
|
@ -190,6 +190,7 @@ namespace OpenSim.Services.Interfaces
|
|||
public UUID ScopeID = UUID.Zero;
|
||||
|
||||
public UUID TerrainImage = UUID.Zero;
|
||||
public UUID ParcelImage = UUID.Zero;
|
||||
public byte Access;
|
||||
public int Maturity;
|
||||
public string RegionSecret = string.Empty;
|
||||
|
@ -236,6 +237,7 @@ namespace OpenSim.Services.Interfaces
|
|||
RegionID = ConvertFrom.RegionID;
|
||||
ServerURI = ConvertFrom.ServerURI;
|
||||
TerrainImage = ConvertFrom.RegionSettings.TerrainImageID;
|
||||
ParcelImage = ConvertFrom.RegionSettings.ParcelImageID;
|
||||
Access = ConvertFrom.AccessLevel;
|
||||
Maturity = ConvertFrom.RegionSettings.Maturity;
|
||||
RegionSecret = ConvertFrom.regionSecret;
|
||||
|
@ -253,6 +255,7 @@ namespace OpenSim.Services.Interfaces
|
|||
RegionID = ConvertFrom.RegionID;
|
||||
ServerURI = ConvertFrom.ServerURI;
|
||||
TerrainImage = ConvertFrom.TerrainImage;
|
||||
ParcelImage = ConvertFrom.ParcelImage;
|
||||
Access = ConvertFrom.Access;
|
||||
Maturity = ConvertFrom.Maturity;
|
||||
RegionSecret = ConvertFrom.RegionSecret;
|
||||
|
@ -281,7 +284,7 @@ namespace OpenSim.Services.Interfaces
|
|||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return RegionID.GetHashCode() ^ TerrainImage.GetHashCode();
|
||||
return RegionID.GetHashCode() ^ TerrainImage.GetHashCode() ^ ParcelImage.GetHashCode();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
@ -359,6 +362,7 @@ namespace OpenSim.Services.Interfaces
|
|||
kvp["serverURI"] = ServerURI;
|
||||
kvp["serverPort"] = InternalEndPoint.Port.ToString();
|
||||
kvp["regionMapTexture"] = TerrainImage.ToString();
|
||||
kvp["parcelMapTexture"] = ParcelImage.ToString();
|
||||
kvp["access"] = Access.ToString();
|
||||
kvp["regionSecret"] = RegionSecret;
|
||||
kvp["owner_uuid"] = EstateOwner.ToString();
|
||||
|
@ -411,6 +415,9 @@ namespace OpenSim.Services.Interfaces
|
|||
if (kvp.ContainsKey("regionMapTexture"))
|
||||
UUID.TryParse((string)kvp["regionMapTexture"], out TerrainImage);
|
||||
|
||||
if (kvp.ContainsKey("parcelMapTexture"))
|
||||
UUID.TryParse((string)kvp["parcelMapTexture"], out ParcelImage);
|
||||
|
||||
if (kvp.ContainsKey("access"))
|
||||
Access = Byte.Parse((string)kvp["access"]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue