DisarmedEvent.cs 941 B

12345678910111213141516171819202122232425262728293031
  1. namespace Content.Shared.CombatMode
  2. {
  3. public sealed class DisarmedEvent : HandledEntityEventArgs
  4. {
  5. /// <summary>
  6. /// The entity being disarmed.
  7. /// </summary>
  8. public EntityUid Target { get; init; }
  9. /// <summary>
  10. /// The entity performing the disarm.
  11. /// </summary>
  12. public EntityUid Source { get; init; }
  13. /// <summary>
  14. /// Probability for push/knockdown.
  15. /// </summary>
  16. public float PushProbability { get; init; }
  17. /// <summary>
  18. /// Prefix for the popup message that will be displayed on a successful push.
  19. /// Should be set before returning.
  20. /// </summary>
  21. public string PopupPrefix { get; set; } = "";
  22. /// <summary>
  23. /// Whether the entity was successfully stunned from a shove.
  24. /// </summary>
  25. public bool IsStunned { get; set; }
  26. }
  27. }