diff options
author | mingchen | 2008-06-11 17:31:43 +0000 |
---|---|---|
committer | mingchen | 2008-06-11 17:31:43 +0000 |
commit | 0896cb53d4bb9ffb4492a1a5dfdc2749d9117abb (patch) | |
tree | 644718e985b16ae25ea9b1779444ebf80c64ceb9 /OpenSim/Region/Environment/Interfaces/ILandObject.cs | |
parent | Mantis#1514. Thank you kindly, Boscata for an InventoryServer patch (diff) | |
download | opensim-SC-0896cb53d4bb9ffb4492a1a5dfdc2749d9117abb.zip opensim-SC-0896cb53d4bb9ffb4492a1a5dfdc2749d9117abb.tar.gz opensim-SC-0896cb53d4bb9ffb4492a1a5dfdc2749d9117abb.tar.bz2 opensim-SC-0896cb53d4bb9ffb4492a1a5dfdc2749d9117abb.tar.xz |
*Parcel Prim Count Maximums moved to their own functions so modules can override the default method of calculating how many prims a parcel can have.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Interfaces/ILandObject.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Interfaces/ILandObject.cs b/OpenSim/Region/Environment/Interfaces/ILandObject.cs index 4368493..750b387 100644 --- a/OpenSim/Region/Environment/Interfaces/ILandObject.cs +++ b/OpenSim/Region/Environment/Interfaces/ILandObject.cs | |||
@@ -32,8 +32,14 @@ using OpenSim.Region.Environment.Scenes; | |||
32 | 32 | ||
33 | namespace OpenSim.Region.Environment.Interfaces | 33 | namespace OpenSim.Region.Environment.Interfaces |
34 | { | 34 | { |
35 | public delegate int overrideParcelMaxPrimCountDelegate(ILandObject obj); | ||
36 | public delegate int overrideSimulatorMaxPrimCountDelegate(ILandObject obj); | ||
37 | |||
35 | public interface ILandObject | 38 | public interface ILandObject |
36 | { | 39 | { |
40 | int getParcelMaxPrimCount(ILandObject thisObject); | ||
41 | int getSimulatorMaxPrimCount(ILandObject thisObject); | ||
42 | |||
37 | LandData landData { get; set; } | 43 | LandData landData { get; set; } |
38 | bool[,] landBitmap { get; set; } | 44 | bool[,] landBitmap { get; set; } |
39 | LLUUID regionUUID { get; } | 45 | LLUUID regionUUID { get; } |
@@ -57,6 +63,7 @@ namespace OpenSim.Region.Environment.Interfaces | |||
57 | void forceUpdateLandInfo(); | 63 | void forceUpdateLandInfo(); |
58 | void setLandBitmap(bool[,] bitmap); | 64 | void setLandBitmap(bool[,] bitmap); |
59 | 65 | ||
66 | |||
60 | bool[,] basicFullRegionLandBitmap(); | 67 | bool[,] basicFullRegionLandBitmap(); |
61 | bool[,] getSquareLandBitmap(int start_x, int start_y, int end_x, int end_y); | 68 | bool[,] getSquareLandBitmap(int start_x, int start_y, int end_x, int end_y); |
62 | bool[,] modifyLandBitmapSquare(bool[,] land_bitmap, int start_x, int start_y, int end_x, int end_y, bool set_value); | 69 | bool[,] modifyLandBitmapSquare(bool[,] land_bitmap, int start_x, int start_y, int end_x, int end_y, bool set_value); |
@@ -69,5 +76,8 @@ namespace OpenSim.Region.Environment.Interfaces | |||
69 | void addPrimToCount(SceneObjectGroup obj); | 76 | void addPrimToCount(SceneObjectGroup obj); |
70 | void removePrimFromCount(SceneObjectGroup obj); | 77 | void removePrimFromCount(SceneObjectGroup obj); |
71 | void updateLandSold(LLUUID avatarID, LLUUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area); | 78 | void updateLandSold(LLUUID avatarID, LLUUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area); |
79 | |||
80 | void setParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel); | ||
81 | void setSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel); | ||
72 | } | 82 | } |
73 | } | 83 | } |