Ejemplo n.º 1
0
 /// <summary>
 /// Get the string using the preferred SettingsKey
 /// </summary>
 public static string GetString(SettingsKey key)
 {
     return(GetString(KeyToString(key)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Set the string using the preferred SettingsKey
 /// </summary>
 public static void SetString(SettingsKey key, string value)
 {
     SetString(KeyToString(key), value);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Expand keys in the form "leaderboard.hiscore1" to "leaderboard/hiscore1"
 /// Returns a fullpath filename
 /// </summary>
 public static string FilenameFromKey(SettingsKey key, string extension = ".txt")
 {
     return(FilenameFromKey(KeyToString(key), extension));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// </summary>
 public static string KeyToString(SettingsKey key)
 {
     return(key.ToString().ToLower());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Remove the setting from memory and delete the setting file using the
 /// preferred SettingsKey
 /// </summary>
 public static void Remove(SettingsKey key)
 {
     Log.Verbose(string.Format("Settings.Remove(key: {0})", key));
     Remove(KeyToString(key));
 }