diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs b/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs index eac9e25..dba10df 100644 --- a/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs +++ b/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs | |||
@@ -899,6 +899,31 @@ namespace OpenSim.Region.Environment.Scenes | |||
899 | } | 899 | } |
900 | #endregion | 900 | #endregion |
901 | 901 | ||
902 | public delegate bool CanReclaimParcel(LLUUID user, ILandObject parcel, Scene scene); | ||
903 | private List<CanReclaimParcel> CanReclaimParcelCheckFunctions = new List<CanReclaimParcel>(); | ||
904 | |||
905 | public void addCheckReclaimParcel(CanReclaimParcel delegateFunc) | ||
906 | { | ||
907 | if (!CanReclaimParcelCheckFunctions.Contains(delegateFunc)) | ||
908 | CanReclaimParcelCheckFunctions.Add(delegateFunc); | ||
909 | } | ||
910 | public void removeCheckReclaimParcel(CanReclaimParcel delegateFunc) | ||
911 | { | ||
912 | if (CanReclaimParcelCheckFunctions.Contains(delegateFunc)) | ||
913 | CanReclaimParcelCheckFunctions.Remove(delegateFunc); | ||
914 | } | ||
915 | |||
916 | public bool ExternalChecksCanReclaimParcel(LLUUID user, ILandObject parcel) | ||
917 | { | ||
918 | foreach (CanReclaimParcel check in CanReclaimParcelCheckFunctions) | ||
919 | { | ||
920 | if (check(user, parcel, m_scene) == false) | ||
921 | { | ||
922 | return false; | ||
923 | } | ||
924 | } | ||
925 | return true; | ||
926 | } | ||
902 | public delegate bool CanBuyLand(LLUUID user, ILandObject parcel, Scene scene); | 927 | public delegate bool CanBuyLand(LLUUID user, ILandObject parcel, Scene scene); |
903 | private List<CanBuyLand> CanBuyLandCheckFunctions = new List<CanBuyLand>(); | 928 | private List<CanBuyLand> CanBuyLandCheckFunctions = new List<CanBuyLand>(); |
904 | 929 | ||