diff options
author | lbsa71 | 2007-10-30 09:05:31 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-30 09:05:31 +0000 |
commit | 67e12b95ea7b68f4904a7484d77ecfd787d16d0c (patch) | |
tree | 20b00d24c8a7617017960432ec044852e3ad5fa9 /OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/Examples | |
parent | * Deleted .user file (diff) | |
download | opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.zip opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.gz opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.bz2 opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.xz |
* Optimized usings
* Shortened type references
* Removed redundant 'this' qualifier
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/Examples/ExportRegionToLSL.cs | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/Examples/ExportRegionToLSL.cs b/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/Examples/ExportRegionToLSL.cs index 7ae4658..2d684d1 100644 --- a/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/Examples/ExportRegionToLSL.cs +++ b/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/Examples/ExportRegionToLSL.cs | |||
@@ -26,19 +26,13 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | using OpenSim.Framework.Console; | ||
30 | using OpenSim.Framework; | ||
31 | using OpenSim.Region.Environment; | ||
32 | using OpenSim.Region.Environment.Scenes; | 29 | using OpenSim.Region.Environment.Scenes; |
33 | 30 | ||
34 | using System.Collections.Generic; | ||
35 | using libsecondlife; | ||
36 | |||
37 | namespace OpenSim.Region.ExtensionsScriptModule.CSharp.Examples | 31 | namespace OpenSim.Region.ExtensionsScriptModule.CSharp.Examples |
38 | { | 32 | { |
39 | public class LSLExportScript : IScript | 33 | public class LSLExportScript : IScript |
40 | { | 34 | { |
41 | ScriptInfo script; | 35 | private ScriptInfo script; |
42 | 36 | ||
43 | public string Name | 37 | public string Name |
44 | { | 38 | { |
@@ -48,11 +42,11 @@ namespace OpenSim.Region.ExtensionsScriptModule.CSharp.Examples | |||
48 | public void Initialise(ScriptInfo scriptInfo) | 42 | public void Initialise(ScriptInfo scriptInfo) |
49 | { | 43 | { |
50 | script = scriptInfo; | 44 | script = scriptInfo; |
51 | 45 | ||
52 | script.events.OnPluginConsole += new EventManager.OnPluginConsoleDelegate(ProcessConsoleMsg); | 46 | script.events.OnPluginConsole += new EventManager.OnPluginConsoleDelegate(ProcessConsoleMsg); |
53 | } | 47 | } |
54 | 48 | ||
55 | void ProcessConsoleMsg(string[] args) | 49 | private void ProcessConsoleMsg(string[] args) |
56 | { | 50 | { |
57 | /*if (args[0].ToLower() == "lslexport") | 51 | /*if (args[0].ToLower() == "lslexport") |
58 | { | 52 | { |
@@ -79,7 +73,7 @@ namespace OpenSim.Region.ExtensionsScriptModule.CSharp.Examples | |||
79 | }*/ | 73 | }*/ |
80 | } | 74 | } |
81 | 75 | ||
82 | string processPrimitiveToString(OpenSim.Region.Environment.Scenes.SceneObjectPart prim) | 76 | private string processPrimitiveToString(SceneObjectPart prim) |
83 | { | 77 | { |
84 | /*string desc = prim.Description; | 78 | /*string desc = prim.Description; |
85 | string name = prim.Name; | 79 | string name = prim.Name; |
@@ -97,4 +91,4 @@ namespace OpenSim.Region.ExtensionsScriptModule.CSharp.Examples | |||
97 | return ""; | 91 | return ""; |
98 | } | 92 | } |
99 | } | 93 | } |
100 | } | 94 | } \ No newline at end of file |