aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Sun/SunModule.cs
diff options
context:
space:
mode:
authorDiva Canto2012-11-09 16:28:30 -0800
committerDiva Canto2012-11-09 16:28:30 -0800
commit19aab3e6fea9c14d28c952c4e1f38919a4cc4363 (patch)
tree3aec4ee8dcfd1b8bbae05789603fb6116bbb24a8 /OpenSim/Region/CoreModules/World/Sun/SunModule.cs
parentConverted the SunModule to the new region module interface. (39 to go...) (diff)
downloadopensim-SC_OLD-19aab3e6fea9c14d28c952c4e1f38919a4cc4363.zip
opensim-SC_OLD-19aab3e6fea9c14d28c952c4e1f38919a4cc4363.tar.gz
opensim-SC_OLD-19aab3e6fea9c14d28c952c4e1f38919a4cc4363.tar.bz2
opensim-SC_OLD-19aab3e6fea9c14d28c952c4e1f38919a4cc4363.tar.xz
Converted the WindModule to the new region module interface (38 to go). Also added both the WindModule and the SunModule to the Plugin manifest.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Sun/SunModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/Sun/SunModule.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/CoreModules/World/Sun/SunModule.cs b/OpenSim/Region/CoreModules/World/Sun/SunModule.cs
index df025bf..bdbf273 100644
--- a/OpenSim/Region/CoreModules/World/Sun/SunModule.cs
+++ b/OpenSim/Region/CoreModules/World/Sun/SunModule.cs
@@ -278,14 +278,6 @@ namespace OpenSim.Region.CoreModules
278 // This one puts an entry in the main help screen 278 // This one puts an entry in the main help screen
279// m_scene.AddCommand("Regions", this, "sun", "sun", "Usage: sun [param] [value] - Get or Update Sun module paramater", null); 279// m_scene.AddCommand("Regions", this, "sun", "sun", "Usage: sun [param] [value] - Get or Update Sun module paramater", null);
280 280
281 // This one enables the ability to type just "sun" without any parameters
282// m_scene.AddCommand("Regions", this, "sun", "", "", HandleSunConsoleCommand);
283 foreach (KeyValuePair<string, string> kvp in GetParamList())
284 {
285 string sunCommand = string.Format("sun {0}", kvp.Key);
286 m_scene.AddCommand("Regions", this, sunCommand, string.Format("{0} [<value>]", sunCommand), kvp.Value, "", HandleSunConsoleCommand);
287 }
288
289 TimeZone local = TimeZone.CurrentTimeZone; 281 TimeZone local = TimeZone.CurrentTimeZone;
290 TicksUTCOffset = local.GetUtcOffset(local.ToLocalTime(DateTime.Now)).Ticks; 282 TicksUTCOffset = local.GetUtcOffset(local.ToLocalTime(DateTime.Now)).Ticks;
291 m_log.DebugFormat("[SUN]: localtime offset is {0}", TicksUTCOffset); 283 m_log.DebugFormat("[SUN]: localtime offset is {0}", TicksUTCOffset);
@@ -385,6 +377,14 @@ namespace OpenSim.Region.CoreModules
385 377
386 scene.RegisterModuleInterface<ISunModule>(this); 378 scene.RegisterModuleInterface<ISunModule>(this);
387 379
380 // This one enables the ability to type just "sun" without any parameters
381 // m_scene.AddCommand("Regions", this, "sun", "", "", HandleSunConsoleCommand);
382 foreach (KeyValuePair<string, string> kvp in GetParamList())
383 {
384 string sunCommand = string.Format("sun {0}", kvp.Key);
385 m_scene.AddCommand("Regions", this, sunCommand, string.Format("{0} [<value>]", sunCommand), kvp.Value, "", HandleSunConsoleCommand);
386 }
387
388 ready = true; 388 ready = true;
389 } 389 }
390 390