aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-01-07 03:02:13 +0000
committerJustin Clarke Casey2008-01-07 03:02:13 +0000
commit6b4b041902627d9d16f28847b1db7f369b931006 (patch)
tree40b44be799775829606766cf1ad8950655486b30 /OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
parentShameless self-promotion :) (diff)
downloadopensim-SC_OLD-6b4b041902627d9d16f28847b1db7f369b931006.zip
opensim-SC_OLD-6b4b041902627d9d16f28847b1db7f369b931006.tar.gz
opensim-SC_OLD-6b4b041902627d9d16f28847b1db7f369b931006.tar.bz2
opensim-SC_OLD-6b4b041902627d9d16f28847b1db7f369b931006.tar.xz
Refactor Scene.Inventory.RezScript to use newer script starting code
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs30
1 files changed, 26 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
index 50e3fa7..1d382fa 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
@@ -37,7 +37,29 @@ using OpenSim.Region.Environment.Interfaces;
37namespace OpenSim.Region.Environment.Scenes 37namespace OpenSim.Region.Environment.Scenes
38{ 38{
39 public partial class SceneObjectGroup : EntityBase 39 public partial class SceneObjectGroup : EntityBase
40 { 40 {
41 /// <summary>
42 /// Start a given script.
43 /// </summary>
44 /// <param name="localID">
45 /// A <see cref="System.UInt32"/>
46 /// </param>
47 public void StartScript(uint localID, LLUUID itemID)
48 {
49 SceneObjectPart part = GetChildPart(localID);
50 if (part != null)
51 {
52 part.StartScript(itemID);
53 }
54 else
55 {
56 MainLog.Instance.Error(
57 "PRIMINVENTORY",
58 "Couldn't find part {0} in object group {1}, {2} to start script with ID {3}",
59 localID, Name, UUID, itemID);
60 }
61 }
62
41 /// <summary> 63 /// <summary>
42 /// Start the scripts contained in all the prims in this group. 64 /// Start the scripts contained in all the prims in this group.
43 /// </summary> 65 /// </summary>
@@ -63,8 +85,8 @@ namespace OpenSim.Region.Environment.Scenes
63 } 85 }
64 else 86 else
65 { 87 {
66 MainLog.Instance.Warn( 88 MainLog.Instance.Error(
67 "SCENE", 89 "PRIMINVENTORY",
68 "Couldn't find part {0} in object group {1}, {2} to retreive prim inventory", 90 "Couldn't find part {0} in object group {1}, {2} to retreive prim inventory",
69 localID, Name, UUID); 91 localID, Name, UUID);
70 } 92 }
@@ -80,7 +102,7 @@ namespace OpenSim.Region.Environment.Scenes
80 } 102 }
81 else 103 else
82 { 104 {
83 MainLog.Instance.Warn( 105 MainLog.Instance.Error(
84 "PRIMINVENTORY", 106 "PRIMINVENTORY",
85 "Couldn't find part {0} in object group {1}, {2} to request inventory data", 107 "Couldn't find part {0} in object group {1}, {2} to request inventory data",
86 localID, Name, UUID); 108 localID, Name, UUID);