aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.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/SceneObjectPart.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/SceneObjectPart.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs26
1 files changed, 24 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index 5f93986..98cd3af 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -97,7 +97,7 @@ namespace OpenSim.Region.Environment.Scenes
97 } 97 }
98 98
99 /// <summary> 99 /// <summary>
100 /// Start a script in this prim 100 /// Start a script which is in this prim's inventory.
101 /// </summary> 101 /// </summary>
102 /// <param name="item"></param> 102 /// <param name="item"></param>
103 /// <returns>true if script asset was found, false if it wasn't</returns> 103 /// <returns>true if script asset was found, false if it wasn't</returns>
@@ -126,7 +126,29 @@ namespace OpenSim.Region.Environment.Scenes
126 } 126 }
127 127
128 return false; 128 return false;
129 } 129 }
130
131 /// <summary>
132 /// Start a script which is in this prim's inventory.
133 /// </summary>
134 /// <param name="itemId">
135 /// A <see cref="LLUUID"/>
136 /// </param>
137 public void StartScript(LLUUID itemId)
138 {
139 if (m_taskInventory.ContainsKey(itemId))
140 {
141 StartScript(m_taskInventory[itemId]);
142 }
143 else
144 {
145 MainLog.Instance.Error(
146 "PRIMINVENTORY",
147 "Couldn't start script with ID {0} since it couldn't be found for prim {1}, {2}",
148 itemId, Name, UUID);
149 }
150
151 }
130 152
131 /// <summary> 153 /// <summary>
132 /// Add an item to this prim's inventory. 154 /// Add an item to this prim's inventory.