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/LS_Api.cs | |
parent | Instead of constantly looking up unchanging self item in script code, pass in... (diff) | |
download | opensim-SC-6406d5a5b9c1c4ef261254e7d4446603b496d1fd.zip opensim-SC-6406d5a5b9c1c4ef261254e7d4446603b496d1fd.tar.gz opensim-SC-6406d5a5b9c1c4ef261254e7d4446603b496d1fd.tar.bz2 opensim-SC-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/LS_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs index cd47d96..795de80 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs | |||
@@ -58,15 +58,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
58 | { | 58 | { |
59 | internal IScriptEngine m_ScriptEngine; | 59 | internal IScriptEngine m_ScriptEngine; |
60 | internal SceneObjectPart m_host; | 60 | internal SceneObjectPart m_host; |
61 | internal uint m_localID; | ||
62 | internal bool m_LSFunctionsEnabled = false; | 61 | internal bool m_LSFunctionsEnabled = 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 | 68 | ||
71 | if (m_ScriptEngine.Config.GetBoolean("AllowLightShareFunctions", false)) | 69 | if (m_ScriptEngine.Config.GetBoolean("AllowLightShareFunctions", false)) |
72 | m_LSFunctionsEnabled = true; | 70 | m_LSFunctionsEnabled = true; |