From 20a9bf08f51351e1e0a9de94f184ff56cd572665 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 1 May 2008 18:04:42 +0000 Subject: * Rolled back a few changes. --- .../Environment/Modules/Framework/Commander.cs | 22 +++++++++++----------- .../Modules/Framework/CommanderTestModule.cs | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/Framework') diff --git a/OpenSim/Region/Environment/Modules/Framework/Commander.cs b/OpenSim/Region/Environment/Modules/Framework/Commander.cs index d226c3d..4430c10 100644 --- a/OpenSim/Region/Environment/Modules/Framework/Commander.cs +++ b/OpenSim/Region/Environment/Modules/Framework/Commander.cs @@ -42,11 +42,11 @@ namespace OpenSim.Region.Environment.Modules.Framework public class Command : ICommand { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); - private readonly List m_args = new List(); + private List m_args = new List(); - private readonly Action m_command; - private readonly string m_help; - private readonly string m_name; + private Action m_command; + private string m_help; + private string m_name; public Command(string name, Action command, string help) { @@ -164,9 +164,9 @@ namespace OpenSim.Region.Environment.Modules.Framework /// public class CommandArgument { - private readonly string m_help; - private readonly string m_name; - private readonly string m_type; + private string m_help; + private string m_name; + private string m_type; private Object m_val; public CommandArgument(string name, string help, string type) @@ -204,8 +204,8 @@ namespace OpenSim.Region.Environment.Modules.Framework public class Commander : ICommander { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); - private readonly Dictionary m_commands = new Dictionary(); - private readonly string m_name; + private Dictionary m_commands = new Dictionary(); + private string m_name; public Commander(string name) { @@ -235,11 +235,11 @@ namespace OpenSim.Region.Environment.Modules.Framework } classSrc = classSrc.Remove(classSrc.Length - 1); // Delete the last comma classSrc += " )\n\t{\n"; - classSrc += "\t\tObject[] args = new Object[" + com.Arguments.Count + "];\n"; + classSrc += "\t\tObject[] args = new Object[" + com.Arguments.Count.ToString() + "];\n"; int i = 0; foreach (KeyValuePair arg in com.Arguments) { - classSrc += "\t\targs[" + i + "] = " + Util.Md5Hash(arg.Key) + " " + ";\n"; + classSrc += "\t\targs[" + i.ToString() + "] = " + Util.Md5Hash(arg.Key) + " " + ";\n"; i++; } classSrc += "\t\tGetCommander(\"" + m_name + "\").Run(\"" + com.Name + "\", args);\n"; diff --git a/OpenSim/Region/Environment/Modules/Framework/CommanderTestModule.cs b/OpenSim/Region/Environment/Modules/Framework/CommanderTestModule.cs index 3df9129..7b5c981 100644 --- a/OpenSim/Region/Environment/Modules/Framework/CommanderTestModule.cs +++ b/OpenSim/Region/Environment/Modules/Framework/CommanderTestModule.cs @@ -34,7 +34,7 @@ namespace OpenSim.Region.Environment.Modules.Framework { public class CommanderTestModule : IRegionModule, ICommandableModule { - private readonly Commander m_commander = new Commander("CommanderTest"); + private Commander m_commander = new Commander("CommanderTest"); private Scene m_scene; #region ICommandableModule Members -- cgit v1.1