diff options
author | Adam Frisby | 2008-05-01 16:35:00 +0000 |
---|---|---|
committer | Adam Frisby | 2008-05-01 16:35:00 +0000 |
commit | 13526097f24b7a8ad63b1d482c44b44397fa055f (patch) | |
tree | 7a82c20ed7c63e2aea5ad3863325e37f64e1cbea /OpenSim/Region/Environment/Scenes/Scripting | |
parent | * Breaking all the code, breaking all the code..! (diff) | |
download | opensim-SC-13526097f24b7a8ad63b1d482c44b44397fa055f.zip opensim-SC-13526097f24b7a8ad63b1d482c44b44397fa055f.tar.gz opensim-SC-13526097f24b7a8ad63b1d482c44b44397fa055f.tar.bz2 opensim-SC-13526097f24b7a8ad63b1d482c44b44397fa055f.tar.xz |
* Spring cleaning on Region.Environment.
* Converted a large number of read-only fields to be actually, readonly.
* Reformatted code sections.
* Removed redundant code.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scripting')
4 files changed, 10 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs b/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs index dbe2516..ccb2aa7 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs | |||
@@ -44,4 +44,4 @@ namespace OpenSim.Region.Environment.Scenes.Scripting | |||
44 | string TouchName { get; set; } | 44 | string TouchName { get; set; } |
45 | void SetText(string text, Vector3 color, double alpha); | 45 | void SetText(string text, Vector3 color, double alpha); |
46 | } | 46 | } |
47 | } | 47 | } \ No newline at end of file |
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs b/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs index 4b1b56a..a37ce53 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs | |||
@@ -33,7 +33,9 @@ namespace OpenSim.Region.Environment.Scenes.Scripting | |||
33 | { | 33 | { |
34 | public class NullScriptHost : IScriptHost | 34 | public class NullScriptHost : IScriptHost |
35 | { | 35 | { |
36 | private LLVector3 m_pos = new LLVector3(128, 128, 30); | 36 | private readonly LLVector3 m_pos = new LLVector3(128, 128, 30); |
37 | |||
38 | #region IScriptHost Members | ||
37 | 39 | ||
38 | public string Name | 40 | public string Name |
39 | { | 41 | { |
@@ -83,5 +85,7 @@ namespace OpenSim.Region.Environment.Scenes.Scripting | |||
83 | { | 85 | { |
84 | Console.WriteLine("Tried to SetText [{0}] on NullScriptHost", text); | 86 | Console.WriteLine("Tried to SetText [{0}] on NullScriptHost", text); |
85 | } | 87 | } |
88 | |||
89 | #endregion | ||
86 | } | 90 | } |
87 | } | 91 | } \ No newline at end of file |
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs index b1ee519..cb0e1e8 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineInterface.cs | |||
@@ -35,4 +35,4 @@ namespace OpenSim.Region.Environment.Scenes.Scripting | |||
35 | void Shutdown(); | 35 | void Shutdown(); |
36 | // void StartScript(string ScriptID, IScriptHost ObjectID); | 36 | // void StartScript(string ScriptID, IScriptHost ObjectID); |
37 | } | 37 | } |
38 | } | 38 | } \ No newline at end of file |
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs index 6216e2c..0048e6b 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/ScriptEngineLoader.cs | |||
@@ -51,7 +51,7 @@ namespace OpenSim.Region.Environment.Scenes.Scripting | |||
51 | { | 51 | { |
52 | m_log.Error("[ScriptEngine]: " + | 52 | m_log.Error("[ScriptEngine]: " + |
53 | "Error loading assembly \"" + EngineName + "\": " + e.Message + ", " + | 53 | "Error loading assembly \"" + EngineName + "\": " + e.Message + ", " + |
54 | e.StackTrace.ToString()); | 54 | e.StackTrace); |
55 | } | 55 | } |
56 | return ret; | 56 | return ret; |
57 | } | 57 | } |
@@ -116,4 +116,4 @@ namespace OpenSim.Region.Environment.Scenes.Scripting | |||
116 | return ret; | 116 | return ret; |
117 | } | 117 | } |
118 | } | 118 | } |
119 | } | 119 | } \ No newline at end of file |