mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Spring cleaning on Region.Environment.
* Converted a large number of read-only fields to be actually, readonly. * Reformatted code sections. * Removed redundant code.
This commit is contained in:
@@ -44,4 +44,4 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
|
||||
string TouchName { get; set; }
|
||||
void SetText(string text, Vector3 color, double alpha);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,9 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
|
||||
{
|
||||
public class NullScriptHost : IScriptHost
|
||||
{
|
||||
private LLVector3 m_pos = new LLVector3(128, 128, 30);
|
||||
private readonly LLVector3 m_pos = new LLVector3(128, 128, 30);
|
||||
|
||||
#region IScriptHost Members
|
||||
|
||||
public string Name
|
||||
{
|
||||
@@ -83,5 +85,7 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
|
||||
{
|
||||
Console.WriteLine("Tried to SetText [{0}] on NullScriptHost", text);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -35,4 +35,4 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
|
||||
void Shutdown();
|
||||
// void StartScript(string ScriptID, IScriptHost ObjectID);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -51,7 +51,7 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
|
||||
{
|
||||
m_log.Error("[ScriptEngine]: " +
|
||||
"Error loading assembly \"" + EngineName + "\": " + e.Message + ", " +
|
||||
e.StackTrace.ToString());
|
||||
e.StackTrace);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
@@ -116,4 +116,4 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user