aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneEvents.cs
diff options
context:
space:
mode:
authormingchen2007-07-14 17:01:15 +0000
committermingchen2007-07-14 17:01:15 +0000
commitbf32020693b62685bc15f2e56cd2b717f4e170a7 (patch)
tree80256e8f0217533ecfd4aa6fa7f44e7c3ac49ed5 /OpenSim/Region/Environment/Scenes/SceneEvents.cs
parent* SimpleApp finally doing something fun. :) (diff)
downloadopensim-SC-bf32020693b62685bc15f2e56cd2b717f4e170a7.zip
opensim-SC-bf32020693b62685bc15f2e56cd2b717f4e170a7.tar.gz
opensim-SC-bf32020693b62685bc15f2e56cd2b717f4e170a7.tar.bz2
opensim-SC-bf32020693b62685bc15f2e56cd2b717f4e170a7.tar.xz
*Removed ParcelManager from SceneObject and Primitive and replaced with events in EventManager
*Prim count and sim-wide prim count correctly reflect object bonus multiplier
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneEvents.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
index 685ed8c..46768d5 100644
--- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
@@ -19,9 +19,15 @@ namespace OpenSim.Region.Environment.Scenes
19 public delegate void OnRemovePresenceDelegate(LLUUID uuid); 19 public delegate void OnRemovePresenceDelegate(LLUUID uuid);
20 public event OnRemovePresenceDelegate OnRemovePresence; 20 public event OnRemovePresenceDelegate OnRemovePresence;
21 21
22 public delegate void OnParcelPrimCountTaintedDelegate();
23 public event OnParcelPrimCountTaintedDelegate OnParcelPrimCountTainted;
24
22 public delegate void OnParcelPrimCountUpdateDelegate(); 25 public delegate void OnParcelPrimCountUpdateDelegate();
23 public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate; 26 public event OnParcelPrimCountUpdateDelegate OnParcelPrimCountUpdate;
24 27
28 public delegate void OnParcelPrimCountAddDelegate(SceneObject obj);
29 public event OnParcelPrimCountAddDelegate OnParcelPrimCountAdd;
30
25 public void TriggerOnFrame() 31 public void TriggerOnFrame()
26 { 32 {
27 if (OnFrame != null) 33 if (OnFrame != null)
@@ -52,6 +58,13 @@ namespace OpenSim.Region.Environment.Scenes
52 } 58 }
53 } 59 }
54 60
61 public void TriggerParcelPrimCountTainted()
62 {
63 if (OnParcelPrimCountTainted != null)
64 {
65 OnParcelPrimCountTainted();
66 }
67 }
55 public void TriggerParcelPrimCountUpdate() 68 public void TriggerParcelPrimCountUpdate()
56 { 69 {
57 if (OnParcelPrimCountUpdate != null) 70 if (OnParcelPrimCountUpdate != null)
@@ -59,5 +72,12 @@ namespace OpenSim.Region.Environment.Scenes
59 OnParcelPrimCountUpdate(); 72 OnParcelPrimCountUpdate();
60 } 73 }
61 } 74 }
75 public void TriggerParcelPrimCountAdd(SceneObject obj)
76 {
77 if (OnParcelPrimCountAdd != null)
78 {
79 OnParcelPrimCountAdd(obj);
80 }
81 }
62 } 82 }
63} 83}