mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
*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.
This commit is contained in:
@@ -42,5 +42,7 @@ namespace OpenSim.Region.Environment.Interfaces
|
||||
bool IsForcefulBansAllowed();
|
||||
void UpdateLandObject(int localID, LandData data);
|
||||
void ReturnObjectsInParcel(int localID, uint returnType, LLUUID[] agentIDs, LLUUID[] taskIDs, IClientAPI remoteClient);
|
||||
void setParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel);
|
||||
void setSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,8 +32,14 @@ using OpenSim.Region.Environment.Scenes;
|
||||
|
||||
namespace OpenSim.Region.Environment.Interfaces
|
||||
{
|
||||
public delegate int overrideParcelMaxPrimCountDelegate(ILandObject obj);
|
||||
public delegate int overrideSimulatorMaxPrimCountDelegate(ILandObject obj);
|
||||
|
||||
public interface ILandObject
|
||||
{
|
||||
int getParcelMaxPrimCount(ILandObject thisObject);
|
||||
int getSimulatorMaxPrimCount(ILandObject thisObject);
|
||||
|
||||
LandData landData { get; set; }
|
||||
bool[,] landBitmap { get; set; }
|
||||
LLUUID regionUUID { get; }
|
||||
@@ -57,6 +63,7 @@ namespace OpenSim.Region.Environment.Interfaces
|
||||
void forceUpdateLandInfo();
|
||||
void setLandBitmap(bool[,] bitmap);
|
||||
|
||||
|
||||
bool[,] basicFullRegionLandBitmap();
|
||||
bool[,] getSquareLandBitmap(int start_x, int start_y, int end_x, int end_y);
|
||||
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
|
||||
void addPrimToCount(SceneObjectGroup obj);
|
||||
void removePrimFromCount(SceneObjectGroup obj);
|
||||
void updateLandSold(LLUUID avatarID, LLUUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area);
|
||||
|
||||
void setParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel);
|
||||
void setSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user