示例#1
0
 // Constructor
 public BattleCEff(
     BattleSEType effectType,
     BattleSETiming effectTiming = BattleSETiming.Unique,
     bool[] boolParams           = null,
     float[] floatParams         = null,
     string[] stringParams       = null
     ) : base(boolParams, floatParams, stringParams)
 {
     this.effectType   = effectType;
     this.effectTiming = effectTiming;
 }
示例#2
0
    public List <EffectDatabase.StatusBTLEff.BattleSE> GetEffectsNewFiltered(BattleSETiming timing)
    {
        List <EffectDatabase.StatusBTLEff.BattleSE> effects = new List <EffectDatabase.StatusBTLEff.BattleSE>();

        for (int i = 0; i < effectsNew.Count; i++)
        {
            if (effectsNew[i].timing == timing)
            {
                effects.Add(effectsNew[i]);
            }
        }
        return(effects);
    }
示例#3
0
    public List <BattleCEff> GetEffectsFiltered(BattleSETiming timing)
    {
        List <BattleCEff> effects = new List <BattleCEff>();

        for (int i = 0; i < this.effects.Count; i++)
        {
            if (this.effects[i].effectTiming == timing ||
                this.effects[i].effectTiming == BattleSETiming.Any)
            {
                effects.Add(this.effects[i]);
            }
        }
        return(effects);
    }