public float GetValue(bool forceRefresh) { if (forceRefresh) { this._value = NativeOptions.GetConfig(this.Type); } return(this._value); }
public void InitializeOptions() { this.SendMeBloodEvents = BannerlordConfig.ShowBlood; this.SendMeSoundEvents = (double)NativeOptions.GetConfig(NativeOptions.NativeOptionsType.SoundVolume) > 0.00999999977648258 && (double)NativeOptions.GetConfig(NativeOptions.NativeOptionsType.MasterVolume) > 0.00999999977648258; }
protected NativeOptionData(NativeOptions.NativeOptionsType type) { this.Type = type; this._value = NativeOptions.GetConfig(type); }