void RidingPointChange(RIDING riding, ref RidingList bindingList, AbilityBinding <double> dataCxtx, double changingPoint) { RIDING_ENUM ridingName = (RIDING_ENUM)Enum.Parse(typeof(RIDING_ENUM), dataCxtx.EnumName); if ((Keyboard.IsKeyDown(Key.LeftShift)) || (Keyboard.IsKeyDown(Key.RightShift))) { changingPoint *= 10; } if (ridingName == RIDING_ENUM.ATK_MATK_PERCENT) { changingPoint /= 100; } riding.List[(int)ridingName] += changingPoint; bindingList[(int)ridingName].Point = riding.List[(int)ridingName]; MainWindow._user_data_manager.CalcUserData(); }
public RidingList(RIDING param_riding) { Add(new AbilityBinding <double>(EnumBaseTable_Kor.RIDING_ENUM_KOR[RIDING_ENUM.ATK_MATK], param_riding.List[(int)RIDING_ENUM.ATK_MATK], 0, Enum.GetName(typeof(RIDING_ENUM), RIDING_ENUM.ATK_MATK))); Add(new AbilityBinding <double>(EnumBaseTable_Kor.RIDING_ENUM_KOR[RIDING_ENUM.MAX_HP], param_riding.List[(int)RIDING_ENUM.MAX_HP], 0, Enum.GetName(typeof(RIDING_ENUM), RIDING_ENUM.MAX_HP))); Add(new AbilityBinding <double>(EnumBaseTable_Kor.RIDING_ENUM_KOR[RIDING_ENUM.ATK_MATK_PERCENT], param_riding.List[(int)RIDING_ENUM.ATK_MATK_PERCENT], 0, Enum.GetName(typeof(RIDING_ENUM), RIDING_ENUM.ATK_MATK_PERCENT))); }