Exemplo n.º 1
0
 public ChargeBladeEventArgs(ChargeBlade weapon)
 {
     VialChargeGauge = weapon.VialChargeGauge;
     ShieldBuffTimer = weapon.ShieldBuffTimer;
     SwordBuffTimer  = weapon.SwordBuffTimer;
     PoweraxeTimer   = weapon.PoweraxeTimer;
     Vials           = weapon.Vials;
 }
 public override void UnhookEvents()
 {
     Context.OnShieldBuffChange       -= OnShieldBuffUpdate;
     Context.OnSwordBuffChange        -= OnSwordBuffUpdate;
     Context.OnVialChargeGaugeChange  -= OnVialChargeGaugeUpdate;
     Context.OnVialsChange            -= OnVialsChange;
     Context.OnPoweraxeBuffChange     -= OnPowerchargeUpdate;
     Context.OnSafijiivaCounterUpdate -= OnSafijiivaCounterUpdate;
     Context = null;
 }
 public void SetContext(ChargeBlade ctx)
 {
     Context = ctx;
     UpdateInformation();
     HookEvents();
 }