Estate series, patch 9 (#9157)
Adds the new access semantics and the new flag (allow only age verified) Plumbs in the abuse email address from sim to viewer. The other way around, libomv appears to be lacking support for the data field in the packet. Includes a migration, run prebuild!0.6.0-stable
parent
c952dd465c
commit
12c5bfa3e0
|
@ -0,0 +1,6 @@
|
||||||
|
begin;
|
||||||
|
|
||||||
|
alter table estate_settings add column DenyMinors tinyint not null;
|
||||||
|
|
||||||
|
commit;
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
begin;
|
||||||
|
|
||||||
|
alter table estate_settings add column DenyMinors tinyint not null default 0;
|
||||||
|
|
||||||
|
commit;
|
||||||
|
|
|
@ -231,6 +231,14 @@ namespace OpenSim.Framework
|
||||||
set { m_EstateOwner = value; }
|
set { m_EstateOwner = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private bool m_DenyMinors = false;
|
||||||
|
|
||||||
|
public bool DenyMinors
|
||||||
|
{
|
||||||
|
get { return m_DenyMinors; }
|
||||||
|
set { m_DenyMinors = value; }
|
||||||
|
}
|
||||||
|
|
||||||
// All those lists...
|
// All those lists...
|
||||||
//
|
//
|
||||||
private List<LLUUID> l_EstateManagers = new List<LLUUID>();
|
private List<LLUUID> l_EstateManagers = new List<LLUUID>();
|
||||||
|
|
|
@ -642,7 +642,7 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args);
|
void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args);
|
||||||
void SendEstateCovenantInformation(LLUUID covenant);
|
void SendEstateCovenantInformation(LLUUID covenant);
|
||||||
void SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant);
|
void SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant, string abuseEmail);
|
||||||
|
|
||||||
void SendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags);
|
void SendLandProperties(IClientAPI remote_client, int sequence_id, bool snap_selection, int request_result, LandData landData, float simObjectBonusFactor, int parcelObjectCapacity, int simObjectCapacity, uint regionFlags);
|
||||||
void SendLandAccessListData(List<LLUUID> avatars, uint accessFlag, int localLandID);
|
void SendLandAccessListData(List<LLUUID> avatars, uint accessFlag, int localLandID);
|
||||||
|
|
|
@ -2657,15 +2657,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
this.OutPacket(einfopack, ThrottleOutPacketType.Task);
|
this.OutPacket(einfopack, ThrottleOutPacketType.Task);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant)
|
public void SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant, string abuseEmail)
|
||||||
{
|
{
|
||||||
EstateOwnerMessagePacket packet = new EstateOwnerMessagePacket();
|
EstateOwnerMessagePacket packet = new EstateOwnerMessagePacket();
|
||||||
packet.MethodData.Invoice = invoice;
|
packet.MethodData.Invoice = invoice;
|
||||||
packet.AgentData.TransactionID = LLUUID.Random();
|
packet.AgentData.TransactionID = LLUUID.Random();
|
||||||
packet.MethodData.Method = Helpers.StringToField("estateupdateinfo");
|
packet.MethodData.Method = Helpers.StringToField("estateupdateinfo");
|
||||||
EstateOwnerMessagePacket.ParamListBlock[] returnblock = new EstateOwnerMessagePacket.ParamListBlock[9];
|
EstateOwnerMessagePacket.ParamListBlock[] returnblock = new EstateOwnerMessagePacket.ParamListBlock[10];
|
||||||
|
|
||||||
for (int i = 0; i < 9; i++)
|
for (int i = 0; i < 10; i++)
|
||||||
{
|
{
|
||||||
returnblock[i] = new EstateOwnerMessagePacket.ParamListBlock();
|
returnblock[i] = new EstateOwnerMessagePacket.ParamListBlock();
|
||||||
}
|
}
|
||||||
|
@ -2681,6 +2681,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
returnblock[6].Parameter = Helpers.StringToField(covenant.ToString());
|
returnblock[6].Parameter = Helpers.StringToField(covenant.ToString());
|
||||||
returnblock[7].Parameter = Helpers.StringToField("1160895077"); // what is this?
|
returnblock[7].Parameter = Helpers.StringToField("1160895077"); // what is this?
|
||||||
returnblock[8].Parameter = Helpers.StringToField("1"); // what is this?
|
returnblock[8].Parameter = Helpers.StringToField("1"); // what is this?
|
||||||
|
returnblock[9].Parameter = Helpers.StringToField(abuseEmail);
|
||||||
|
|
||||||
packet.ParamList = returnblock;
|
packet.ParamList = returnblock;
|
||||||
packet.Header.Reliable = false;
|
packet.Header.Reliable = false;
|
||||||
|
|
|
@ -60,7 +60,8 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
|
||||||
m_scene.RegionInfo.EstateSettings.ParentEstateID,
|
m_scene.RegionInfo.EstateSettings.ParentEstateID,
|
||||||
GetEstateFlags(),
|
GetEstateFlags(),
|
||||||
sun,
|
sun,
|
||||||
m_scene.RegionInfo.RegionSettings.Covenant);
|
m_scene.RegionInfo.RegionSettings.Covenant,
|
||||||
|
m_scene.RegionInfo.EstateSettings.AbuseEmail);
|
||||||
|
|
||||||
remote_client.SendEstateManagersList(invoice,
|
remote_client.SendEstateManagersList(invoice,
|
||||||
m_scene.RegionInfo.EstateSettings.EstateManagers,
|
m_scene.RegionInfo.EstateSettings.EstateManagers,
|
||||||
|
@ -628,6 +629,11 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
|
||||||
else
|
else
|
||||||
m_scene.RegionInfo.EstateSettings.DenyTransacted = false;
|
m_scene.RegionInfo.EstateSettings.DenyTransacted = false;
|
||||||
|
|
||||||
|
if ((parms1 & 0x40000000) != 0)
|
||||||
|
m_scene.RegionInfo.EstateSettings.DenyMinors = true;
|
||||||
|
else
|
||||||
|
m_scene.RegionInfo.EstateSettings.DenyMinors = false;
|
||||||
|
|
||||||
m_scene.RegionInfo.EstateSettings.Save();
|
m_scene.RegionInfo.EstateSettings.Save();
|
||||||
|
|
||||||
float sun = (float)m_scene.RegionInfo.RegionSettings.SunPosition;
|
float sun = (float)m_scene.RegionInfo.RegionSettings.SunPosition;
|
||||||
|
@ -797,6 +803,8 @@ namespace OpenSim.Region.Environment.Modules.World.Estate
|
||||||
flags |= Simulator.RegionFlags.ResetHomeOnTeleport;
|
flags |= Simulator.RegionFlags.ResetHomeOnTeleport;
|
||||||
if (m_scene.RegionInfo.EstateSettings.TaxFree)
|
if (m_scene.RegionInfo.EstateSettings.TaxFree)
|
||||||
flags |= Simulator.RegionFlags.TaxFree;
|
flags |= Simulator.RegionFlags.TaxFree;
|
||||||
|
if (m_scene.RegionInfo.EstateSettings.DenyMinors)
|
||||||
|
flags |= (Simulator.RegionFlags)(1 << 30);
|
||||||
|
|
||||||
return (uint)flags;
|
return (uint)flags;
|
||||||
}
|
}
|
||||||
|
|
|
@ -781,7 +781,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
|
||||||
public void SendEstateCovenantInformation(LLUUID covenant)
|
public void SendEstateCovenantInformation(LLUUID covenant)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
public void SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant)
|
public void SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant, string abuseEmail)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -773,7 +773,7 @@ namespace OpenSim.Region.Examples.SimpleModule
|
||||||
public void SendEstateCovenantInformation(LLUUID covenant)
|
public void SendEstateCovenantInformation(LLUUID covenant)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
public void SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant)
|
public void SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant, string abuseEmail)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue