diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scripting/ScriptInterpretedAPI.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scripting/ScriptInterpretedAPI.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/ScriptInterpretedAPI.cs b/OpenSim/Region/Environment/Scenes/Scripting/ScriptInterpretedAPI.cs index 284ae74..af8a29f 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/ScriptInterpretedAPI.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/ScriptInterpretedAPI.cs | |||
@@ -8,6 +8,7 @@ using LSLList = System.Collections.Generic.List<string>; | |||
8 | 8 | ||
9 | using OpenSim.Region.Environment.Scenes; | 9 | using OpenSim.Region.Environment.Scenes; |
10 | using OpenSim.Region.Environment.LandManagement; | 10 | using OpenSim.Region.Environment.LandManagement; |
11 | using libsecondlife; | ||
11 | 12 | ||
12 | namespace OpenSim.Region.Scripting | 13 | namespace OpenSim.Region.Scripting |
13 | { | 14 | { |
@@ -17,13 +18,13 @@ namespace OpenSim.Region.Scripting | |||
17 | /// <remarks>Avoid at all costs. This should ONLY be used for LSL.</remarks> | 18 | /// <remarks>Avoid at all costs. This should ONLY be used for LSL.</remarks> |
18 | class ScriptInterpretedAPI | 19 | class ScriptInterpretedAPI |
19 | { | 20 | { |
20 | protected libsecondlife.LLUUID m_object; | 21 | protected LLUUID m_object; |
21 | protected Scene m_scene; | 22 | protected Scene m_scene; |
22 | 23 | ||
23 | /// <summary> | 24 | /// <summary> |
24 | /// The scene in which this script is acting | 25 | /// The scene in which this script is acting |
25 | /// </summary> | 26 | /// </summary> |
26 | public Scene World | 27 | public Scene Scene |
27 | { | 28 | { |
28 | get { return m_scene; } | 29 | get { return m_scene; } |
29 | } | 30 | } |
@@ -41,7 +42,7 @@ namespace OpenSim.Region.Scripting | |||
41 | /// </summary> | 42 | /// </summary> |
42 | public SceneObject Task | 43 | public SceneObject Task |
43 | { | 44 | { |
44 | get { return World.Objects[ObjectID]; } | 45 | get { return Scene.Objects[ObjectID]; } |
45 | } | 46 | } |
46 | 47 | ||
47 | /// <summary> | 48 | /// <summary> |
@@ -74,7 +75,7 @@ namespace OpenSim.Region.Scripting | |||
74 | public void osAddToLandPassList(Key avatar, float hours) | 75 | public void osAddToLandPassList(Key avatar, float hours) |
75 | { | 76 | { |
76 | Vector myPosition = Task.Pos; | 77 | Vector myPosition = Task.Pos; |
77 | Land myParcel = World.LandManager.getLandObject(myPosition.X, myPosition.Y); | 78 | Land myParcel = Scene.LandManager.getLandObject(myPosition.X, myPosition.Y); |
78 | 79 | ||
79 | OpenSim.Framework.Console.MainLog.Instance.Warn("script", "Unimplemented function called by script: osAddToLandPassList(Key avatar, float hours)"); | 80 | OpenSim.Framework.Console.MainLog.Instance.Warn("script", "Unimplemented function called by script: osAddToLandPassList(Key avatar, float hours)"); |
80 | return; | 81 | return; |
@@ -228,8 +229,8 @@ namespace OpenSim.Region.Scripting | |||
228 | 229 | ||
229 | public void osCreateLink(Key target, int parent) | 230 | public void osCreateLink(Key target, int parent) |
230 | { | 231 | { |
231 | if(World.Entities[target] is SceneObject) | 232 | if(Scene.Entities[target] is SceneObject) |
232 | Task.AddNewChildPrims((SceneObject)World.Entities[target]); | 233 | Task.AddNewChildPrims((SceneObject)Scene.Entities[target]); |
233 | 234 | ||
234 | return; | 235 | return; |
235 | } | 236 | } |