Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void SetOPowerMAX(OPower6Type type, bool value) => this[type].SetOPowerMAX(Data, Offset, value);
Esempio n. 3
0
 public bool GetOPowerMAX(OPower6Type type) => this[type].GetOPowerMAX(Data, Offset);
Esempio n. 4
0
 public void SetOPowerLevel(OPower6Type type, int lvl) => this[type].SetOPowerLevel(Data, Offset, lvl);
Esempio n. 5
0
 public bool GetHasOPowerMAX(OPower6Type type) => this[type].HasOPowerMAX;
Esempio n. 6
0
 public int GetOPowerLevel(OPower6Type type) => this[type].GetOPowerLevel(Data, Offset);
Esempio n. 7
0
 public int GetOPowerCount(OPower6Type type) => this[type].BaseCount;
Esempio n. 8
0
 private OPowerFlagSet this[OPower6Type type] => Array.Find(Mapping, t => t.Identifier == type);
Esempio n. 9
0
 public OPowerFlagSet(int count, OPower6Type ident)
 {
     Identifier = ident;
     Count      = count;
 }