aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-05-08 22:58:34 +0100
committerJustin Clark-Casey (justincc)2012-05-08 23:05:01 +0100
commit01b78235db71994ba3e37bd6ea297bed7e4576b9 (patch)
tree91a89fd18939632973180287f78085723b6b9b9c /OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs
parentPerform SceneGraph.DuplicateObject() under existing m_updateLock already used... (diff)
downloadopensim-SC_OLD-01b78235db71994ba3e37bd6ea297bed7e4576b9.zip
opensim-SC_OLD-01b78235db71994ba3e37bd6ea297bed7e4576b9.tar.gz
opensim-SC_OLD-01b78235db71994ba3e37bd6ea297bed7e4576b9.tar.bz2
opensim-SC_OLD-01b78235db71994ba3e37bd6ea297bed7e4576b9.tar.xz
Instead of constantly looking up unchanging self item in script code, pass in self item on initialization.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs20
1 files changed, 13 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs b/OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs
index bb5bacc..cced522 100644
--- a/OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs
+++ b/OpenSim/Region/ScriptEngine/Interfaces/IScriptApi.cs
@@ -27,17 +27,23 @@
27 27
28using System; 28using System;
29using OpenMetaverse; 29using OpenMetaverse;
30using OpenSim.Framework;
30using OpenSim.Region.Framework.Scenes; 31using OpenSim.Region.Framework.Scenes;
31 32
32
33namespace OpenSim.Region.ScriptEngine.Interfaces 33namespace OpenSim.Region.ScriptEngine.Interfaces
34{ 34{
35 public interface IScriptApi 35 public interface IScriptApi
36 { 36 {
37 // 37 /// <summary>
38 // Each API has an identifier, which is used to load the 38 /// Initialize the API
39 // proper runtime assembly at load time. 39 /// </summary>
40 // 40 /// <remarks>
41 void Initialize(IScriptEngine engine, SceneObjectPart part, uint localID, UUID item); 41 /// Each API has an identifier, which is used to load the
42 /// proper runtime assembly at load time.
43 /// <param name='engine'>/param>
44 /// <param name='part'></param>
45 /// <param name='localID'></param>
46 /// <param name='item'></param>
47 void Initialize(IScriptEngine engine, SceneObjectPart part, uint localID, TaskInventoryItem item);
42 } 48 }
43} 49} \ No newline at end of file