StaminaMeleeHitEvent.cs 915 B

12345678910111213141516171819202122232425262728293031
  1. using Content.Shared.Damage.Components;
  2. using Robust.Shared.Collections;
  3. namespace Content.Shared.Damage.Events;
  4. /// <summary>
  5. /// The components in the list are going to be hit,
  6. /// give opportunities to change the damage or other stuff.
  7. /// </summary>
  8. public sealed class StaminaMeleeHitEvent : HandledEntityEventArgs
  9. {
  10. /// <summary>
  11. /// List of hit stamina components.
  12. /// </summary>
  13. public List<(EntityUid Entity, StaminaComponent Component)> HitList;
  14. /// <summary>
  15. /// The multiplier. Generally, try to use *= or /= instead of overwriting.
  16. /// </summary>
  17. public float Multiplier = 1;
  18. /// <summary>
  19. /// The flat modifier. Generally, try to use += or -= instead of overwriting.
  20. /// </summary>
  21. public float FlatModifier = 0;
  22. public StaminaMeleeHitEvent(List<(EntityUid Entity, StaminaComponent Component)> hitList)
  23. {
  24. HitList = hitList;
  25. }
  26. }