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 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scripting/Engines/CSharpEngine') 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) -- cgit v1.1