Example #1
0
 public Buff(Creature owner, int buffId, BuffDefine define, int casterId)
 {
     this.Owner    = owner;
     this.BuffId   = buffId;
     this.Define   = define;
     this.casterId = casterId;
     this.OnAdd();
 }
Example #2
0
 public Buff(int buffID, Creature owner, BuffDefine define, BattleContext context)
 {
     this.BuffId  = buffID;
     this.Owner   = owner;
     this.Define  = define;
     this.Context = context;
     this.OnAdd();
 }
Example #3
0
    public void AddBuff(BuffData buffData)
    {
        if (null == buffData)
        {
            return;
        }

        Buff buffInfo = BuffDefine.GetBuffInfo(buffData);

        BattleBuffCouner.AddBuff(buffInfo);
        buffInfo.Start();
    }
Example #4
0
        internal void AddBuff(BattleContext context, BuffDefine define)
        {
            Buff buff = new Buff(this.BuffID, this.Owner, define, context);

            this.Buffs.Add(buff);
        }
Example #5
0
 internal void AddBuff(BattleContext context, BuffDefine buffDefine)
 {
     this.BuffMgr.AddBuff(context, buffDefine);
 }