mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
* minor refactorings
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -25,9 +25,9 @@ namespace OpenSim.Region.Scripting.LSL
|
||||
scriptInfo = info;
|
||||
}
|
||||
|
||||
public string getName()
|
||||
public string Name
|
||||
{
|
||||
return "LSL Script";
|
||||
get { return "LSL Script"; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user