summaryrefslogtreecommitdiff
path: root/StardewInjector/Config.cs
diff options
context:
space:
mode:
authorClxS <slxxls92@gmail.com>2016-03-03 20:17:40 +0000
committerClxS <slxxls92@gmail.com>2016-03-03 20:17:40 +0000
commitf77e922ad08078586b1c67f0d88f68b054364434 (patch)
tree176788af61d48b689e98a9a0fdc1facff1eab242 /StardewInjector/Config.cs
parentd3f0e00db9946d1b509f0ad72f9a51095c190f9f (diff)
parent9a1b910ea32f518b605c88315f192afc6fc40f28 (diff)
downloadSMAPI-f77e922ad08078586b1c67f0d88f68b054364434.tar.gz
SMAPI-f77e922ad08078586b1c67f0d88f68b054364434.tar.bz2
SMAPI-f77e922ad08078586b1c67f0d88f68b054364434.zip
Merged Zoryn4163/master into master
Diffstat (limited to 'StardewInjector/Config.cs')
-rw-r--r--StardewInjector/Config.cs72
1 files changed, 72 insertions, 0 deletions
diff --git a/StardewInjector/Config.cs b/StardewInjector/Config.cs
new file mode 100644
index 00000000..cea45e98
--- /dev/null
+++ b/StardewInjector/Config.cs
@@ -0,0 +1,72 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Linq;
+using System.Text;
+
+namespace StardewInjector
+{
+ public static class Config
+ {
+ public static bool EnableDebugMode
+ {
+ get
+ {
+ bool val = false;
+ bool.TryParse(ConfigurationManager.AppSettings["EnableDebugMode"], out val);
+ return val;
+ }
+ }
+
+ public static bool EnableAlwaysSpawnFishingBubble
+ {
+ get
+ {
+ bool val = false;
+ bool.TryParse(ConfigurationManager.AppSettings["EnableAlwaysSpawnFishingBubble"], out val);
+ return val;
+ }
+ }
+
+ public static bool EnableEasyFishing
+ {
+ get
+ {
+ bool val = false;
+ bool.TryParse(ConfigurationManager.AppSettings["EnableEasyFishing"], out val);
+ return val;
+ }
+ }
+
+ public static int SecondsPerTenMinutes
+ {
+ get
+ {
+ int val = 7;
+ int.TryParse(ConfigurationManager.AppSettings["SecondsPerTenMinutes"], out val);
+ return val;
+ }
+ }
+
+ public static float RunSpeed
+ {
+ get
+ {
+ float val = 1f;
+ float.TryParse(ConfigurationManager.AppSettings["RunSpeed"], out val);
+ return val;
+ }
+ }
+
+ public static bool EnableTweakedDiagonalMovement
+ {
+ get
+ {
+ bool val = false;
+ bool.TryParse(ConfigurationManager.AppSettings["EnableTweakedDiagonalMovement"], out val);
+ return val;
+ }
+ }
+
+ }
+}