public Buff(Creature owner, int buffId, BuffDefine define, int casterId) { this.Owner = owner; this.BuffId = buffId; this.Define = define; this.casterId = casterId; this.OnAdd(); }
public Buff(int buffID, Creature owner, BuffDefine define, BattleContext context) { this.BuffId = buffID; this.Owner = owner; this.Define = define; this.Context = context; this.OnAdd(); }
public void AddBuff(BuffData buffData) { if (null == buffData) { return; } Buff buffInfo = BuffDefine.GetBuffInfo(buffData); BattleBuffCouner.AddBuff(buffInfo); buffInfo.Start(); }
internal void AddBuff(BattleContext context, BuffDefine define) { Buff buff = new Buff(this.BuffID, this.Owner, define, context); this.Buffs.Add(buff); }
internal void AddBuff(BattleContext context, BuffDefine buffDefine) { this.BuffMgr.AddBuff(context, buffDefine); }