public override void UnhookEvents() { Context.OnRedBuffUpdate -= OnRedBuffUpdate; Context.OnWhiteBuffUpdate -= OnWhiteBuffUpdate; Context.OnOrangeBuffUpdate -= OnOrangeBuffUpdate; Context.OnKinsectChargeBuffChange -= OnKinsectChargeBuffChange; Context.OnKinsectChargeBuffUpdate -= OnKinsectChargeBuffUpdate; Context.OnKinsectStaminaUpdate -= OnKinsectStaminaUpdate; Context.BuffQueueChanged -= OnBuffQueueChanged; Context = null; base.UnhookEvents(); }
public InsectGlaiveEventArgs(InsectGlaive weapon) { RedBuff = weapon.RedBuff; WhiteBuff = weapon.WhiteBuff; OrangeBuff = weapon.OrangeBuff; KinsectStamina = weapon.KinsectStamina; RedKinsectTimer = weapon.RedKinsectTimer; YellowKinsectTimer = weapon.YellowKinsectTimer; KinsectChargeType = weapon.KinsectChargeType; BuffQueueSize = weapon.BuffQueueSize; FirstBuffQueued = weapon.FirstBuffQueued; SecondBuffQueued = weapon.SecondBuffQueued; }
public void SetContext(InsectGlaive ctx) { Context = ctx; UpdateInformation(); HookEvents(); }