2first dirty version and non persistent parcel uglysky

This commit is contained in:
UbitUmarov
2020-06-17 15:49:13 +01:00
parent 7a9e03876a
commit e538628dec
7 changed files with 291 additions and 195 deletions

View File

@@ -172,6 +172,8 @@ namespace OpenSim.Framework
void SetParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel);
void SetSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel);
void StoreEnviroment(ViewerEnviroment VEnv);
/// <summary>
/// Set the media url for this land parcel

View File

@@ -732,6 +732,11 @@ namespace OpenSim.Framework
}
}
public int EnviromentVersion = -1;
[XmlIgnore] //this needs to be added by hand
public ViewerEnviroment Enviroment { get; set;}
public LandData()
{
_globalID = UUID.Random();
@@ -739,6 +744,8 @@ namespace OpenSim.Framework
AnyAVSounds = true;
GroupAVSounds = true;
LastDwellTimeMS = Util.GetTimeStampMS();
EnviromentVersion = -1;
Enviroment = null;
}
/// <summary>
@@ -804,6 +811,17 @@ namespace OpenSim.Framework
landData._parcelAccessList.Add(newEntry);
}
if (Enviroment == null)
{
landData.Enviroment = null;
landData.EnviromentVersion = -1;
}
else
{
landData.Enviroment = Enviroment.Clone();
landData.EnviromentVersion = EnviromentVersion;
}
return landData;
}