示例#1
0
 public float GetValue(bool forceRefresh)
 {
     if (forceRefresh)
     {
         this._value = NativeOptions.GetConfig(this.Type);
     }
     return(this._value);
 }
示例#2
0
 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;
 }
示例#3
0
 protected NativeOptionData(NativeOptions.NativeOptionsType type)
 {
     this.Type   = type;
     this._value = NativeOptions.GetConfig(type);
 }