several changes to land handling. Landchannel.cs is just a wrrapper for landmanagementmodule, so let module be it and ignore all code on landchannel.cs, to remove one day; make parcel fakeID more a thing (it is our actual parcel ID. proper globalID cannot be sent to viewers, because HG, etc.

This commit is contained in:
UbitUmarov
2020-08-24 17:36:57 +01:00
parent e997392ab0
commit 0ee1e3b2d9
9 changed files with 233 additions and 221 deletions

View File

@@ -46,11 +46,6 @@ namespace OpenSim.Framework
/// </summary>
public class LandData
{
// use only one serializer to give the runtime a chance to
// optimize it (it won't do that if you use a new instance
// every time)
private static XmlSerializer serializer = new XmlSerializer(typeof(LandData));
private Vector3 _AABBMax = new Vector3();
private Vector3 _AABBMin = new Vector3();
private int _area = 0;
@@ -382,7 +377,7 @@ namespace OpenSim.Framework
}
/// <summary>
/// jp2 data for the image representative of the parcel in the parcel dialog
/// parcel shape in bits per ocupied location
/// </summary>
public byte[] Bitmap
{
@@ -837,22 +832,5 @@ namespace OpenSim.Framework
return landData;
}
// public void ToXml(XmlWriter xmlWriter)
// {
// serializer.Serialize(xmlWriter, this);
// }
/// <summary>
/// Restore a LandData object from the serialized xml representation.
/// </summary>
/// <param name="xmlReader"></param>
/// <returns></returns>
// public static LandData FromXml(XmlReader xmlReader)
// {
// LandData land = (LandData)serializer.Deserialize(xmlReader);
//
// return land;
// }
}
}