diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/scripting/ScriptInfo.cs (renamed from OpenSim/Region/Environment/Scenes/scripting/Script.cs) | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/OpenSim/Region/Environment/Scenes/scripting/Script.cs b/OpenSim/Region/Environment/Scenes/scripting/ScriptInfo.cs index 5d398b0..57df4c4 100644 --- a/OpenSim/Region/Environment/Scenes/scripting/Script.cs +++ b/OpenSim/Region/Environment/Scenes/scripting/ScriptInfo.cs | |||
@@ -28,26 +28,31 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Text; | 30 | using System.Text; |
31 | using libsecondlife; | ||
32 | 31 | ||
33 | namespace OpenSim.Region.Environment.Scripting | 32 | using OpenSim.Region.Environment.Scenes; |
33 | using OpenSim.Framework.Console; | ||
34 | |||
35 | namespace OpenSim.Scripting | ||
34 | { | 36 | { |
35 | public class Script | 37 | /// <summary> |
38 | /// Class which provides access to the world | ||
39 | /// </summary> | ||
40 | public class ScriptInfo | ||
36 | { | 41 | { |
37 | private LLUUID m_scriptId; | 42 | // Reference to world.eventsManager provided for convenience |
38 | public virtual LLUUID ScriptId | 43 | public EventManager events; |
39 | { | 44 | |
40 | get | 45 | // The main world |
41 | { | 46 | public Scene world; |
42 | return m_scriptId; | 47 | |
43 | } | 48 | // The console |
44 | } | 49 | public LogBase logger; |
45 | 50 | ||
46 | public Script( LLUUID scriptId ) | 51 | public ScriptInfo(Scene scene) |
47 | { | 52 | { |
48 | m_scriptId = scriptId; | 53 | world = scene; |
54 | events = world.eventManager; | ||
55 | logger = OpenSim.Framework.Console.MainLog.Instance; | ||
49 | } | 56 | } |
50 | |||
51 | public ScriptEventHandler OnFrame; | ||
52 | } | 57 | } |
53 | } | 58 | } |