Exemple #1
0
        public static Buff Get(BuffSheet.Row row)
        {
            switch (row.StatModifier.StatType)
            {
            case StatType.HP:
                return(new HPBuff(row));

            case StatType.ATK:
                return(new AttackBuff(row));

            case StatType.DEF:
                return(new DefenseBuff(row));

            case StatType.CRI:
                return(new CriticalBuff(row));

            case StatType.HIT:
                return(new HitBuff(row));

            case StatType.SPD:
                return(new SpeedBuff(row));

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Exemple #2
0
 public HPBuff(BuffSheet.Row row) : base(row)
 {
 }
Exemple #3
0
 public DefenseBuff(BuffSheet.Row row) : base(row)
 {
 }
 public static string GetLocalizedName(this BuffSheet.Row row)
 {
     return(L10nManager.Localize($"BUFF_NAME_{row.Id}"));
 }
 public static string GetLocalizedDescription(this BuffSheet.Row row)
 {
     return(L10nManager.Localize($"BUFF_DESCRIPTION_{row.Id}"));
 }
 public static Sprite GetIcon(this BuffSheet.Row row)
 {
     return(SpriteHelper.GetBuffIcon(row.IconResource));
 }
Exemple #7
0
 public SpeedBuff(BuffSheet.Row row) : base(row)
 {
 }
Exemple #8
0
 protected Buff(Buff value)
 {
     originalDuration = value.RowData.Duration;
     remainedDuration = value.remainedDuration;
     RowData          = value.RowData;
 }
Exemple #9
0
 protected Buff(BuffSheet.Row row)
 {
     originalDuration = remainedDuration = row.Duration;
     RowData          = row;
 }
Exemple #10
0
 public CriticalBuff(BuffSheet.Row row) : base(row)
 {
 }
Exemple #11
0
 public AttackBuff(BuffSheet.Row row) : base(row)
 {
 }