aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorTalun2012-04-09 19:58:07 +0100
committerMelanie2012-04-09 21:25:22 +0100
commit78c0028179923710949fea349baad2e6bebc49bd (patch)
treead83b28069f46f0890cae3f9405f3d4c5f273da8 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
parentAddresses mantis #5846 (diff)
downloadopensim-SC_OLD-78c0028179923710949fea349baad2e6bebc49bd.zip
opensim-SC_OLD-78c0028179923710949fea349baad2e6bebc49bd.tar.gz
opensim-SC_OLD-78c0028179923710949fea349baad2e6bebc49bd.tar.bz2
opensim-SC_OLD-78c0028179923710949fea349baad2e6bebc49bd.tar.xz
Mantis5502 implementation of some of the new constants
Signed-off-by: Melanie <melanie@t-data.com>
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs28
1 files changed, 27 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 17f3be7..7d14814 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -3255,7 +3255,33 @@ namespace OpenSim.Region.Framework.Scenes
3255 for (int i = 0; i < parts.Length; i++) 3255 for (int i = 0; i < parts.Length; i++)
3256 parts[i].TriggerScriptChangedEvent(val); 3256 parts[i].TriggerScriptChangedEvent(val);
3257 } 3257 }
3258 3258
3259 /// <summary>
3260 /// Returns a count of the number of scripts in this groups parts.
3261 /// </summary>
3262 public int ScriptCount()
3263 {
3264 int count = 0;
3265 SceneObjectPart[] parts = m_parts.GetArray();
3266 for (int i = 0; i < parts.Length; i++)
3267 count += parts[i].Inventory.ScriptCount();
3268
3269 return count;
3270 }
3271
3272 /// <summary>
3273 /// Returns a count of the number of running scripts in this groups parts.
3274 /// </summary>
3275 public int RunningScriptCount()
3276 {
3277 int count = 0;
3278 SceneObjectPart[] parts = m_parts.GetArray();
3279 for (int i = 0; i < parts.Length; i++)
3280 count += parts[i].Inventory.RunningScriptCount();
3281
3282 return count;
3283 }
3284
3259 public override string ToString() 3285 public override string ToString()
3260 { 3286 {
3261 return String.Format("{0} {1} ({2})", Name, UUID, AbsolutePosition); 3287 return String.Format("{0} {1} ({2})", Name, UUID, AbsolutePosition);