* 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:
Adam Frisby
2008-05-01 16:35:00 +00:00
parent 01f31fd933
commit 13526097f2
76 changed files with 4181 additions and 4314 deletions

View File

@@ -44,4 +44,4 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
string TouchName { get; set; }
void SetText(string text, Vector3 color, double alpha);
}
}
}

View File

@@ -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
}
}
}

View File

@@ -35,4 +35,4 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
void Shutdown();
// void StartScript(string ScriptID, IScriptHost ObjectID);
}
}
}

View File

@@ -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;
}
}
}
}