mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
*Added SceneExternalChecks.cs that is used to manage checking the results of multiple functions that register with the class and return the result (usually true/false) based on those results. This is useful for module wanting to put their opinion in decisions such as 'can the user rez this object?'
This commit is contained in:
@@ -140,12 +140,21 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual bool CanRezObject(LLUUID user, LLVector3 position)
|
||||
public virtual bool CanRezObject(LLUUID user, LLVector3 position, int objectCount)
|
||||
{
|
||||
bool permission = false;
|
||||
|
||||
|
||||
|
||||
string reason = "Insufficient permission";
|
||||
|
||||
//Perform ExternalChecks first!
|
||||
bool results = m_scene.ExternalChecks.ExternalChecksCanRezObject(objectCount, user, position);
|
||||
if (results == false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
ILandObject land = m_scene.LandChannel.GetLandObject(position.X, position.Y);
|
||||
if (land == null) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user