/// <summary> /// Sets a string in the ini. /// </summary> /// <param name="section">Section of the key.</param> /// <param name="name">Name of the key.</param> /// <param name="value">Value that should be written.</param> public static void SetString(string section, string name, string value) => StaticInstace.SetString(section, name, value);
/// <summary> /// Sets a bool in the ini. /// </summary> /// <param name="section">Section of the key.</param> /// <param name="name">Name of the key.</param> /// <param name="value">Value that should be written.</param> public static void SetBool(string section, string name, bool value) => StaticInstace.SetBool(section, name, value);
/// <summary> /// Sets a float in the ini. /// </summary> /// <param name="section">Section of the key.</param> /// <param name="name">Name of the key.</param> /// <param name="value">Value that should be written.</param> public static void SetFloat(string section, string name, float value) => StaticInstace.SetFloat(section, name, value);
/// <summary> /// Sets an int in the ini. /// </summary> /// <param name="section">Section of the key.</param> /// <param name="name">Name of the key.</param> /// <param name="value">Value that should be written.</param> public static void SetInt(string section, string name, int value) => StaticInstace.SetInt(section, name, value);
/// <summary> /// Checks whether or not a key exists in the ini. /// </summary> /// <param name="section">Section of the key.</param> /// <param name="name">Name of the key.</param> /// <returns></returns> public static bool HasKey(string section, string name) => StaticInstace.HasKey(section, name);
/// <summary> /// Gets a bool from the ini. /// </summary> /// <param name="section">Section of the key.</param> /// <param name="name">Name of the key.</param> /// <param name="defaultValue">Value that should be used when no value is found.</param> /// <param name="autoSave">Whether or not the default value should be written if no value is found.</param> /// <returns></returns> public static bool GetBool(string section, string name, bool defaultValue = false, bool autoSave = false) => StaticInstace.GetBool(section, name, defaultValue, autoSave);
/// <summary> /// Gets a float from the ini. /// </summary> /// <param name="section">Section of the key.</param> /// <param name="name">Name of the key.</param> /// <param name="defaultValue">Value that should be used when no value is found.</param> /// <param name="autoSave">Whether or not the default value should be written if no value is found.</param> /// <returns></returns> public static float GetFloat(string section, string name, float defaultValue = 0f, bool autoSave = false) => StaticInstace.GetFloat(section, name, defaultValue, autoSave);
/// <summary> /// Gets an int from the ini. /// </summary> /// <param name="section">Section of the key.</param> /// <param name="name">Name of the key.</param> /// <param name="defaultValue">Value that should be used when no value is found.</param> /// <param name="autoSave">Whether or not the default value should be written if no value is found.</param> /// <returns></returns> public static int GetInt(string section, string name, int defaultValue = 0, bool autoSave = false) => StaticInstace.GetInt(section, name, defaultValue, autoSave);
/// <summary> /// Gets a string from the ini. /// </summary> /// <param name="section">Section of the key.</param> /// <param name="name">Name of the key.</param> /// <param name="defaultValue">Value that should be used when no value is found.</param> /// <param name="autoSave">Whether or not the default value should be written if no value is found.</param> /// <returns></returns> public static string GetString(string section, string name, string defaultValue = "", bool autoSave = false) => StaticInstace.GetString(section, name, defaultValue, autoSave);