aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
diff options
context:
space:
mode:
authorCharles Krinke2008-06-04 14:31:36 +0000
committerCharles Krinke2008-06-04 14:31:36 +0000
commitd635b526e5997a66f3a54134230289cb248a9cee (patch)
tree46851f7e5f85f8831c1b8c59b0e007c2b75e39d0 /OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
parent* fleshing out XMPP entities, adding XmppWriter and XmppSerializer (diff)
downloadopensim-SC_OLD-d635b526e5997a66f3a54134230289cb248a9cee.zip
opensim-SC_OLD-d635b526e5997a66f3a54134230289cb248a9cee.tar.gz
opensim-SC_OLD-d635b526e5997a66f3a54134230289cb248a9cee.tar.bz2
opensim-SC_OLD-d635b526e5997a66f3a54134230289cb248a9cee.tar.xz
Mantis#1439. Thank you kindly, Melanie for a patch that
plumbs in the events for on_rez.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index a1d087e..5ef9c79 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -153,6 +153,24 @@ namespace OpenSim.Region.Environment.Scenes
153 } 153 }
154 154
155 /// <summary> 155 /// <summary>
156 /// Start all the scripts contained in this prim's inventory
157 /// </summary>
158 public void StartScripts(int param)
159 {
160 lock (m_taskInventory)
161 {
162 foreach (TaskInventoryItem item in m_taskInventory.Values)
163 {
164 // XXX more hardcoding badness. Should be an enum in TaskInventoryItem
165 if (10 == item.Type)
166 {
167 StartScript(item, param);
168 }
169 }
170 }
171 }
172
173 /// <summary>
156 /// Stop all the scripts in this prim. 174 /// Stop all the scripts in this prim.
157 /// </summary> 175 /// </summary>
158 public void StopScripts() 176 public void StopScripts()
@@ -175,6 +193,12 @@ namespace OpenSim.Region.Environment.Scenes
175 /// </summary> 193 /// </summary>
176 /// <param name="item"></param> 194 /// <param name="item"></param>
177 /// <returns></returns> 195 /// <returns></returns>
196 public void StartScript(TaskInventoryItem item, int param)
197 {
198 StartScript(item);
199 m_parentGroup.Scene.EventManager.TriggerOnRezEvent(LocalId, item.ItemID, param);
200 }
201
178 public void StartScript(TaskInventoryItem item) 202 public void StartScript(TaskInventoryItem item)
179 { 203 {
180 // m_log.InfoFormat( 204 // m_log.InfoFormat(