diff options
author | Justin Clark-Casey (justincc) | 2012-05-08 23:20:27 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-05-08 23:20:27 +0100 |
commit | 6406d5a5b9c1c4ef261254e7d4446603b496d1fd (patch) | |
tree | dde37d6079f7c1679985f02add6fd6cf52410b00 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs | |
parent | Instead of constantly looking up unchanging self item in script code, pass in... (diff) | |
download | opensim-SC_OLD-6406d5a5b9c1c4ef261254e7d4446603b496d1fd.zip opensim-SC_OLD-6406d5a5b9c1c4ef261254e7d4446603b496d1fd.tar.gz opensim-SC_OLD-6406d5a5b9c1c4ef261254e7d4446603b496d1fd.tar.bz2 opensim-SC_OLD-6406d5a5b9c1c4ef261254e7d4446603b496d1fd.tar.xz |
refactor: Eliminate local id parameter from api initialize.
This is always available from m_host.LocalId
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs index a578b50..4bd3dff 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs | |||
@@ -57,16 +57,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
57 | { | 57 | { |
58 | internal IScriptEngine m_ScriptEngine; | 58 | internal IScriptEngine m_ScriptEngine; |
59 | internal SceneObjectPart m_host; | 59 | internal SceneObjectPart m_host; |
60 | internal uint m_localID; | ||
61 | internal TaskInventoryItem m_item; | 60 | internal TaskInventoryItem m_item; |
62 | internal bool m_MODFunctionsEnabled = false; | 61 | internal bool m_MODFunctionsEnabled = false; |
63 | internal IScriptModuleComms m_comms = null; | 62 | internal IScriptModuleComms m_comms = null; |
64 | 63 | ||
65 | public void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, uint localID, TaskInventoryItem item) | 64 | public void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, TaskInventoryItem item) |
66 | { | 65 | { |
67 | m_ScriptEngine = ScriptEngine; | 66 | m_ScriptEngine = ScriptEngine; |
68 | m_host = host; | 67 | m_host = host; |
69 | m_localID = localID; | ||
70 | m_item = item; | 68 | m_item = item; |
71 | 69 | ||
72 | if (m_ScriptEngine.Config.GetBoolean("AllowMODFunctions", false)) | 70 | if (m_ScriptEngine.Config.GetBoolean("AllowMODFunctions", false)) |