public static bool HasEntry(this BaseUnityPlugin plugin, string key) { return(HasEntry(key, TypeLoader.GetMetadata(plugin).GUID)); }
public static string GetEntry(this BaseUnityPlugin plugin, string key, string defaultValue = "") { return(GetEntry(key, defaultValue, TypeLoader.GetMetadata(plugin).GUID)); }
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()) { }
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; }
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; }
public ConfigWrapper(string key, BaseUnityPlugin plugin, T @default = default(T)) : this(key, @default) { Section = MetadataHelper.GetMetadata(plugin).GUID; }
public ConfigWrapper(string name, BaseUnityPlugin o, T val) { Value = val; }