ZombieEvents.cs 676 B

1234567891011121314151617181920212223242526
  1. using Content.Shared.Actions;
  2. namespace Content.Shared.Zombies;
  3. /// <summary>
  4. /// Event that is broadcast whenever an entity is zombified.
  5. /// Used by the zombie gamemode to track total infections.
  6. /// </summary>
  7. [ByRefEvent]
  8. public readonly struct EntityZombifiedEvent
  9. {
  10. /// <summary>
  11. /// The entity that was zombified.
  12. /// </summary>
  13. public readonly EntityUid Target;
  14. public EntityZombifiedEvent(EntityUid target)
  15. {
  16. Target = target;
  17. }
  18. };
  19. /// <summary>
  20. /// Event raised when a player zombifies themself using the "turn" action
  21. /// </summary>
  22. public sealed partial class ZombifySelfActionEvent : InstantActionEvent { };