Example #1
0
 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();
 }
Example #2
0
 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;
 }
Example #3
0
 public void SetContext(InsectGlaive ctx)
 {
     Context = ctx;
     UpdateInformation();
     HookEvents();
 }