mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
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:
@@ -44,6 +44,12 @@ namespace OpenSim.Framework
|
||||
bool[,] LandBitmap { get; set; }
|
||||
UUID RegionUUID { get; }
|
||||
|
||||
UUID GlobalID { get; }
|
||||
UUID FakeID { get; }
|
||||
int LocalID { get; }
|
||||
UUID OwnerID { get; }
|
||||
UUID GroupID { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Prim counts for this land object.
|
||||
/// </summary>
|
||||
@@ -100,7 +106,8 @@ namespace OpenSim.Framework
|
||||
bool[,] BasicFullRegionLandBitmap();
|
||||
|
||||
/// <summary>
|
||||
/// Create a square land bitmap.
|
||||
/// Create a land bitmap.
|
||||
/// Square name is wrong kept bc legacy
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Land co-ordinates are zero indexed. The inputs are treated as points. So if you want to create a bitmap
|
||||
@@ -117,6 +124,7 @@ namespace OpenSim.Framework
|
||||
/// <param name="end_y"></param>
|
||||
/// <param name="set_value"></param>
|
||||
/// <returns>The bitmap created.</returns>
|
||||
|
||||
bool[,] GetSquareLandBitmap(int start_x, int start_y, int end_x, int end_y, bool set_value = true);
|
||||
|
||||
bool[,] ModifyLandBitmapSquare(bool[,] land_bitmap, int start_x, int start_y, int end_x, int end_y, bool set_value);
|
||||
@@ -143,7 +151,7 @@ namespace OpenSim.Framework
|
||||
/// <param name="AABBMin">out: parcel.AABBMin <x,y,0></param>
|
||||
/// <param name="AABBMax">out: parcel.AABBMax <x,y,0></param>
|
||||
/// <returns>New parcel bitmap</returns>
|
||||
bool[,] RemapLandBitmap(bool[,] bitmap_base, Vector2 displacement, float rotationDegrees, Vector2 boundingOrigin, Vector2 boundingSize, Vector2 regionSize, out bool isEmptyNow, out Vector3 AABBMin, out Vector3 AABBMax);
|
||||
bool[,] RemapLandBitmap(bool[,] bitmap_base, Vector2 displacement, float rotationDegrees, Vector2 boundingOrigin, Vector2 boundingSize, Vector2 regionSize, out bool isEmptyNow);
|
||||
|
||||
/// <summary>
|
||||
/// Clears any parcel data in bitmap_base where there exists parcel data in bitmap_new. In other words the parcel data
|
||||
@@ -155,7 +163,7 @@ namespace OpenSim.Framework
|
||||
/// <param name="AABBMin">out: parcel.AABBMin <x,y,0></param>
|
||||
/// <param name="AABBMax">out: parcel.AABBMax <x,y,0></param>
|
||||
/// <returns>New parcel bitmap</returns>
|
||||
bool[,] RemoveFromLandBitmap(bool[,] bitmap_base, bool[,] bitmap_new, out bool isEmptyNow, out Vector3 AABBMin, out Vector3 AABBMax);
|
||||
bool[,] RemoveFromLandBitmap(bool[,] bitmap_base, bool[,] bitmap_new, out bool isEmptyNow);
|
||||
|
||||
byte[] ConvertLandBitmapToBytes();
|
||||
bool[,] ConvertBytesToLandBitmap(bool overrideRegionSize = false);
|
||||
|
||||
Reference in New Issue
Block a user