From 1b100e17a59480c6e66c2b8b5735003b0a1083c7 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Mon, 6 Aug 2007 13:01:47 +0000 Subject: * minor refactorings --- .../Scenes/Scripting/Engines/CSharpEngine/CSharpScriptEngine.cs | 2 +- .../Scripting/Engines/CSharpEngine/Examples/ExportRegionToLSL.cs | 4 ++-- .../Scenes/Scripting/Engines/JScriptEngine/JScriptEngine.cs | 2 +- .../Environment/Scenes/Scripting/Engines/JVMEngine/OpenSimJVM.cs | 4 ++-- .../Environment/Scenes/Scripting/Engines/LSLEngine/LSLScript.cs | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scripting/Engines') diff --git a/OpenSim/Region/Environment/Scenes/Scripting/Engines/CSharpEngine/CSharpScriptEngine.cs b/OpenSim/Region/Environment/Scenes/Scripting/Engines/CSharpEngine/CSharpScriptEngine.cs index b0ccd22..8e1b23e 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/Engines/CSharpEngine/CSharpScriptEngine.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/Engines/CSharpEngine/CSharpScriptEngine.cs @@ -75,7 +75,7 @@ namespace OpenSim.Region.Scripting { IScript script = (IScript)compilerResults.CompiledAssembly.CreateInstance(pluginType.ToString()); - string scriptName = "C#/" + script.getName(); + string scriptName = "C#/" + script.Name; Console.WriteLine("Script: " + scriptName + " loaded."); if (!scripts.ContainsKey(scriptName)) diff --git a/OpenSim/Region/Environment/Scenes/Scripting/Engines/CSharpEngine/Examples/ExportRegionToLSL.cs b/OpenSim/Region/Environment/Scenes/Scripting/Engines/CSharpEngine/Examples/ExportRegionToLSL.cs index f753b30..d5566b7 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/Engines/CSharpEngine/Examples/ExportRegionToLSL.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/Engines/CSharpEngine/Examples/ExportRegionToLSL.cs @@ -12,9 +12,9 @@ namespace OpenSim.Region.Scripting.Examples { ScriptInfo script; - public string getName() + public string Name { - return "LSL Export Script 0.1"; + get { return "LSL Export Script 0.1"; } } public void Initialise(ScriptInfo scriptInfo) diff --git a/OpenSim/Region/Environment/Scenes/Scripting/Engines/JScriptEngine/JScriptEngine.cs b/OpenSim/Region/Environment/Scenes/Scripting/Engines/JScriptEngine/JScriptEngine.cs index af4f8b4..554ffeb 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/Engines/JScriptEngine/JScriptEngine.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/Engines/JScriptEngine/JScriptEngine.cs @@ -75,7 +75,7 @@ namespace OpenSim.Region.Scripting { IScript script = (IScript)compilerResults.CompiledAssembly.CreateInstance(pluginType.ToString()); - string scriptName = "JS.NET/" + script.getName(); + string scriptName = "JS.NET/" + script.Name; Console.WriteLine("Script: " + scriptName + " loaded."); if (!scripts.ContainsKey(scriptName)) diff --git a/OpenSim/Region/Environment/Scenes/Scripting/Engines/JVMEngine/OpenSimJVM.cs b/OpenSim/Region/Environment/Scenes/Scripting/Engines/JVMEngine/OpenSimJVM.cs index 78c6f67..9fb76d4 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/Engines/JVMEngine/OpenSimJVM.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/Engines/JVMEngine/OpenSimJVM.cs @@ -91,9 +91,9 @@ namespace OpenSim.Region.Scripting.EmbeddedJVM } } - public string getName() + public string Name { - return "JVM Scripting Engine"; + get { return "JVM Scripting Engine"; } } public void LoadScript(string script) diff --git a/OpenSim/Region/Environment/Scenes/Scripting/Engines/LSLEngine/LSLScript.cs b/OpenSim/Region/Environment/Scenes/Scripting/Engines/LSLEngine/LSLScript.cs index 49357f5..6eca69a 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/Engines/LSLEngine/LSLScript.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/Engines/LSLEngine/LSLScript.cs @@ -25,9 +25,9 @@ namespace OpenSim.Region.Scripting.LSL scriptInfo = info; } - public string getName() + public string Name { - return "LSL Script"; + get { return "LSL Script"; } } } } -- cgit v1.1