Esempio n. 1
0
 public static bool HasEntry(this BaseUnityPlugin plugin, string key)
 {
     return(HasEntry(key, TypeLoader.GetMetadata(plugin).GUID));
 }
Esempio n. 2
0
 public static string GetEntry(this BaseUnityPlugin plugin, string key, string defaultValue = "")
 {
     return(GetEntry(key, defaultValue, TypeLoader.GetMetadata(plugin).GUID));
 }
Esempio n. 3
0
 public static void SetEntry(this BaseUnityPlugin plugin, string key, string value)
 {
     SetEntry(key, value, TypeLoader.GetMetadata(plugin).GUID);
 }
 public SavedKeyboardShortcut(string name, BaseUnityPlugin plugin, KeyboardShortcut defaultShortcut)
     : base(name, plugin, KeyboardShortcut.Deserialize, k => k.Serialize(), defaultShortcut ?? new KeyboardShortcut())
 {
 }
Esempio n. 5
0
 public ConfigWrapper(string key, BaseUnityPlugin plugin, IConfigConverter <T> converter, T @default = default(T))
     : this(key, converter.ConvertFromString, converter.ConvertToString, @default)
 {
     Section = MetadataHelper.GetMetadata(plugin).GUID;
 }
Esempio n. 6
0
 public ConfigWrapper(string key, BaseUnityPlugin plugin, Func <string, T> strToObj, Func <T, string> objToStr, T @default = default(T))
     : this(key, strToObj, objToStr, @default)
 {
     Section = MetadataHelper.GetMetadata(plugin).GUID;
 }
Esempio n. 7
0
 public ConfigWrapper(string key, BaseUnityPlugin plugin, T @default = default(T))
     : this(key, @default)
 {
     Section = MetadataHelper.GetMetadata(plugin).GUID;
 }
Esempio n. 8
0
 public ConfigWrapper(string name, BaseUnityPlugin o, T val)
 {
     Value = val;
 }