private static void SetupDamageHandlers(AspectedEntity entity) { var takeDamageAspect = entity.GetAspect <TakeDamageAspect>(); takeDamageAspect.AddHandler(entity.GetAspect <ShieldAspect>()); }
public override void Apply(AspectedEntity entity) => entity.GetAspect <GunsAspect>().ScaleReloadTime(1f + _reloadSpeedBoost / 100f);
public override void Apply(AspectedEntity entity) => entity?.GetAspect <RechargeShieldAspect>().Scale(1f + _rechargeRateScale / 100f);
public T GetAspect <T>() where T : class => _entity.GetAspect <T>();
public override void Apply(AspectedEntity entity) => entity?.GetAspect <T>().ApplyBoost(_value);