diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/ILandObject.cs (renamed from OpenSim/Region/Framework/Interfaces/ILandObject.cs) | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/ILandObject.cs b/OpenSim/Framework/ILandObject.cs index eeb9d3a..5a55b02 100644 --- a/OpenSim/Region/Framework/Interfaces/ILandObject.cs +++ b/OpenSim/Framework/ILandObject.cs | |||
@@ -27,10 +27,8 @@ | |||
27 | 27 | ||
28 | using System.Collections.Generic; | 28 | using System.Collections.Generic; |
29 | using OpenMetaverse; | 29 | using OpenMetaverse; |
30 | using OpenSim.Framework; | ||
31 | using OpenSim.Region.Framework.Scenes; | ||
32 | 30 | ||
33 | namespace OpenSim.Region.Framework.Interfaces | 31 | namespace OpenSim.Framework |
34 | { | 32 | { |
35 | public delegate int overrideParcelMaxPrimCountDelegate(ILandObject obj); | 33 | public delegate int overrideParcelMaxPrimCountDelegate(ILandObject obj); |
36 | public delegate int overrideSimulatorMaxPrimCountDelegate(ILandObject obj); | 34 | public delegate int overrideSimulatorMaxPrimCountDelegate(ILandObject obj); |
@@ -46,6 +44,11 @@ namespace OpenSim.Region.Framework.Interfaces | |||
46 | UUID RegionUUID { get; } | 44 | UUID RegionUUID { get; } |
47 | 45 | ||
48 | /// <summary> | 46 | /// <summary> |
47 | /// Prim counts for this land object. | ||
48 | /// </summary> | ||
49 | IPrimCounts PrimCounts { get; set; } | ||
50 | |||
51 | /// <summary> | ||
49 | /// The start point for the land object. This is the western-most point as one scans land working from | 52 | /// The start point for the land object. This is the western-most point as one scans land working from |
50 | /// north to south. | 53 | /// north to south. |
51 | /// </summary> | 54 | /// </summary> |
@@ -79,17 +82,36 @@ namespace OpenSim.Region.Framework.Interfaces | |||
79 | void ForceUpdateLandInfo(); | 82 | void ForceUpdateLandInfo(); |
80 | void SetLandBitmap(bool[,] bitmap); | 83 | void SetLandBitmap(bool[,] bitmap); |
81 | 84 | ||
85 | /// <summary> | ||
86 | /// Get a land bitmap that would cover an entire region. | ||
87 | /// </summary> | ||
88 | /// <returns>The bitmap created.</returns> | ||
82 | bool[,] BasicFullRegionLandBitmap(); | 89 | bool[,] BasicFullRegionLandBitmap(); |
90 | |||
91 | /// <summary> | ||
92 | /// Create a square land bitmap. | ||
93 | /// </summary> | ||
94 | /// <remarks> | ||
95 | /// Land co-ordinates are zero indexed. The inputs are treated as points. So if you want to create a bitmap | ||
96 | /// that covers an entire 256 x 256m region apart from a strip of land on the east, then you would need to | ||
97 | /// specify start_x = 0, start_y = 0, end_x = 252 (or anything up to 255), end_y = 256. | ||
98 | /// | ||
99 | /// At the moment, the smallest parcel of land is 4m x 4m, so if the | ||
100 | /// region is 256 x 256m (the SL size), the bitmap returned will start at (0,0) and end at (63,63). | ||
101 | /// </remarks> | ||
102 | /// <param name="start_x"></param> | ||
103 | /// <param name="start_y"></param> | ||
104 | /// <param name="end_x"></param> | ||
105 | /// <param name="end_y"></param> | ||
106 | /// <returns>The bitmap created.</returns> | ||
83 | bool[,] GetSquareLandBitmap(int start_x, int start_y, int end_x, int end_y); | 107 | bool[,] GetSquareLandBitmap(int start_x, int start_y, int end_x, int end_y); |
108 | |||
84 | bool[,] ModifyLandBitmapSquare(bool[,] land_bitmap, int start_x, int start_y, int end_x, int end_y, bool set_value); | 109 | bool[,] ModifyLandBitmapSquare(bool[,] land_bitmap, int start_x, int start_y, int end_x, int end_y, bool set_value); |
85 | bool[,] MergeLandBitmaps(bool[,] bitmap_base, bool[,] bitmap_add); | 110 | bool[,] MergeLandBitmaps(bool[,] bitmap_base, bool[,] bitmap_add); |
86 | void SendForceObjectSelect(int local_id, int request_type, List<UUID> returnIDs, IClientAPI remote_client); | 111 | void SendForceObjectSelect(int local_id, int request_type, List<UUID> returnIDs, IClientAPI remote_client); |
87 | void SendLandObjectOwners(IClientAPI remote_client); | 112 | void SendLandObjectOwners(IClientAPI remote_client); |
88 | void ReturnObject(SceneObjectGroup obj); | ||
89 | void ReturnLandObjects(uint type, UUID[] owners, UUID[] tasks, IClientAPI remote_client); | 113 | void ReturnLandObjects(uint type, UUID[] owners, UUID[] tasks, IClientAPI remote_client); |
90 | void ResetLandPrimCounts(); | 114 | void ResetOverMeRecord(); |
91 | void AddPrimToCount(SceneObjectGroup obj); | ||
92 | void RemovePrimFromCount(SceneObjectGroup obj); | ||
93 | void UpdateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area); | 115 | void UpdateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area); |
94 | 116 | ||
95 | void DeedToGroup(UUID groupID); | 117 | void DeedToGroup(UUID groupID); |