diff options
author | Adam Frisby | 2007-06-28 08:09:05 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-28 08:09:05 +0000 |
commit | 0c1a6c85cc678effc882dd5897d3357416807ba9 (patch) | |
tree | 6149f74c6a5a4d75bbeea3711a687dc6dcc66a6f /OpenSim/OpenSim.Region/Scenes/scripting/ScriptInfo.cs | |
parent | Some very Preliminary work on .net remoting for interregion comms. (diff) | |
download | opensim-SC-0c1a6c85cc678effc882dd5897d3357416807ba9.zip opensim-SC-0c1a6c85cc678effc882dd5897d3357416807ba9.tar.gz opensim-SC-0c1a6c85cc678effc882dd5897d3357416807ba9.tar.bz2 opensim-SC-0c1a6c85cc678effc882dd5897d3357416807ba9.tar.xz |
* Brand spankin' new scripting engine.
* Use "script load somefile.cs" for C# scripting. Will commit additional languages shortly. Scripts should implement the IScript interfaces to work correctly.
* Someone port this over to NameSpaceChanges (built in Sugilite since sugilite is working)
Diffstat (limited to 'OpenSim/OpenSim.Region/Scenes/scripting/ScriptInfo.cs')
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/scripting/ScriptInfo.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/scripting/ScriptInfo.cs b/OpenSim/OpenSim.Region/Scenes/scripting/ScriptInfo.cs new file mode 100644 index 0000000..a9fede5 --- /dev/null +++ b/OpenSim/OpenSim.Region/Scenes/scripting/ScriptInfo.cs | |||
@@ -0,0 +1,31 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | using OpenSim.Region.Scenes; | ||
6 | using OpenSim.Framework.Console; | ||
7 | |||
8 | namespace OpenSim.Scripting | ||
9 | { | ||
10 | /// <summary> | ||
11 | /// Class which provides access to the world | ||
12 | /// </summary> | ||
13 | public class ScriptInfo | ||
14 | { | ||
15 | // Reference to world.eventsManager provided for convenience | ||
16 | public EventManager events; | ||
17 | |||
18 | // The main world | ||
19 | public Scene world; | ||
20 | |||
21 | // The console | ||
22 | public LogBase logger; | ||
23 | |||
24 | public ScriptInfo(Scene scene) | ||
25 | { | ||
26 | world = scene; | ||
27 | events = world.eventManager; | ||
28 | logger = OpenSim.Framework.Console.MainLog.Instance; | ||
29 | } | ||
30 | } | ||
31 | } | ||