示例#1
0
 public void SetSetting(string name, int?newValue = null, int?newMin = null, int?newMax = null, float?newMultiplier = null)
 {
     Settings.SetWorldValue(name, newValue, newMin, newMax, newMultiplier);
     MyWorldGrid.SetValue(name, Settings[name].GetValue());
 }
示例#2
0
 public void ChangeSetting(string name, int change)
 {
     Settings.ChangeValueBy(name, change);
     MyWorldGrid.SetValue(name, Settings[name].GetValue());
 }