public Unit() : base() { ItmInterface = new ItemsInterface(this); CbtInterface = new CombatInterface(this); StsInterface = new StatsInterface(this); QtsInterface = new QuestsInterface(this); MvtInterface = new MovementInterface(this); AbtInterface = new AbilityInterface(this); AiInterface = new AIInterface(this); }
public Unit() : base() { ItmInterface = AddInterface<ItemsInterface>(); CbtInterface = AddInterface<CombatInterface>(); StsInterface = AddInterface<StatsInterface>(); QtsInterface = AddInterface<QuestsInterface>(); MvtInterface = AddInterface<MovementInterface>(); AbtInterface = AddInterface<AbilityInterface>(); AiInterface = AddInterface<AIInterface>(); }
public override bool Load() { Evt = Obj.EvtInterface; if (Obj.IsUnit()) { Cbt = Obj.GetUnit().CbtInterface; Mvt = Obj.GetUnit().MvtInterface; } if(Evt != null) Evt.AddEvent(UpdateThink, BrainThinkTime, 0); return base.Load(); }
public override bool Load() { Evt = _Owner.EvtInterface; if (_Owner.IsUnit()) { Cbt = _Owner.GetUnit().CbtInterface; Mvt = _Owner.GetUnit().MvtInterface; } Evt.AddEvent(UpdateThink, BrainThinkTime + RandomMgr.Next(0, 2000), 0); Evt.AddEventNotify(EventName.ON_TARGET_DIE, OnTargetDie); return(base.Load()); }
public override bool Load() { Evt = _Owner.EvtInterface; if (_Owner.IsUnit()) { Cbt = _Owner.GetUnit().CbtInterface; Mvt = _Owner.GetUnit().MvtInterface; } Evt.AddEvent(UpdateThink, BrainThinkTime + RandomMgr.Next(0, 2000), 0); Evt.AddEventNotify(EventName.ON_TARGET_DIE, OnTargetDie); return base.Load(); }
public override bool Load() { Evt = Obj.EvtInterface; if (Obj.IsUnit()) { Cbt = Obj.GetUnit().CbtInterface; Mvt = Obj.GetUnit().MvtInterface; } if (Evt != null) { Evt.AddEvent(UpdateThink, BrainThinkTime, 0); } return(base.Load()); }