diff options
author | Adam Frisby | 2007-07-15 22:04:56 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-15 22:04:56 +0000 |
commit | f2c449f10e7c6b7dc3468ecdaea9e97039e1e0a9 (patch) | |
tree | 75400e1a09fc051352db022667d0718fa372b34e /OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpEngine/Examples | |
parent | *Fixed master avatar requesting when in grid mode. (diff) | |
download | opensim-SC_OLD-f2c449f10e7c6b7dc3468ecdaea9e97039e1e0a9.zip opensim-SC_OLD-f2c449f10e7c6b7dc3468ecdaea9e97039e1e0a9.tar.gz opensim-SC_OLD-f2c449f10e7c6b7dc3468ecdaea9e97039e1e0a9.tar.bz2 opensim-SC_OLD-f2c449f10e7c6b7dc3468ecdaea9e97039e1e0a9.tar.xz |
* Added new scripting related events, in particular a new event which is triggered by console commands so that the script can subscribe to console messages and operate when they occur.
* Added new example script (work in progress)
* Fixed typo in Scripting engines for C# and JScript.NET
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpEngine/Examples')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpEngine/Examples/ExportRegionToLSL.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpEngine/Examples/ExportRegionToLSL.cs b/OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpEngine/Examples/ExportRegionToLSL.cs new file mode 100644 index 0000000..4cc2c96 --- /dev/null +++ b/OpenSim/Region/Environment/Scenes/scripting/Engines/CSharpEngine/Examples/ExportRegionToLSL.cs | |||
@@ -0,0 +1,32 @@ | |||
1 | using OpenSim.Framework.Console; | ||
2 | using OpenSim.Framework; | ||
3 | using OpenSim.Region.Environment; | ||
4 | using OpenSim.Region.Environment.Scenes; | ||
5 | |||
6 | namespace OpenSim.Region.Scripting.Examples | ||
7 | { | ||
8 | public class LSLExportScript : IScript | ||
9 | { | ||
10 | ScriptInfo script; | ||
11 | |||
12 | public string getName() | ||
13 | { | ||
14 | return "LSL Export Script 0.1"; | ||
15 | } | ||
16 | |||
17 | public void Initialise(ScriptInfo scriptInfo) | ||
18 | { | ||
19 | script = scriptInfo; | ||
20 | |||
21 | script.events.OnScriptConsole += new EventManager.OnScriptConsoleDelegate(events_OnScriptConsole); | ||
22 | } | ||
23 | |||
24 | void events_OnScriptConsole(string[] args) | ||
25 | { | ||
26 | if (args[0].ToLower() == "lslexport") | ||
27 | { | ||
28 | |||
29 | } | ||
30 | } | ||
31 | } | ||
32 | } \ No newline at end of file | ||