private void LoadCurrent() { Current = Types[CB_Type.SelectedIndex]; CB_Value.Items.Clear(); int count = Data.GetOPowerCount(Current); for (int i = 0; i <= count; i++) { CB_Value.Items.Add(Values[i]); } CB_Value.SelectedIndex = Data.GetOPowerLevel(Current); CHK_S.Enabled = Data.GetHasOPowerS(Current); CHK_S.Checked = Data.GetOPowerS(Current); CHK_MAX.Enabled = Data.GetHasOPowerMAX(Current); CHK_MAX.Checked = Data.GetOPowerMAX(Current); }
public void SetOPowerMAX(OPower6Type type, bool value) => this[type].SetOPowerMAX(Data, Offset, value);
public bool GetOPowerMAX(OPower6Type type) => this[type].GetOPowerMAX(Data, Offset);
public void SetOPowerLevel(OPower6Type type, int lvl) => this[type].SetOPowerLevel(Data, Offset, lvl);
public bool GetHasOPowerMAX(OPower6Type type) => this[type].HasOPowerMAX;
public int GetOPowerLevel(OPower6Type type) => this[type].GetOPowerLevel(Data, Offset);
public int GetOPowerCount(OPower6Type type) => this[type].BaseCount;
private OPowerFlagSet this[OPower6Type type] => Array.Find(Mapping, t => t.Identifier == type);
public OPowerFlagSet(int count, OPower6Type ident) { Identifier = ident; Count = count; }