2022-07-05 23:42:51 -04:00
|
|
|
using Content.Shared.Actions;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Zombies;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event that is broadcast whenever an entity is zombified.
|
|
|
|
|
/// Used by the zombie gamemode to track total infections.
|
|
|
|
|
/// </summary>
|
2023-07-25 17:31:35 -04:00
|
|
|
[ByRefEvent]
|
2022-07-05 23:42:51 -04:00
|
|
|
public readonly struct EntityZombifiedEvent
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The entity that was zombified.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public readonly EntityUid Target;
|
|
|
|
|
|
|
|
|
|
public EntityZombifiedEvent(EntityUid target)
|
|
|
|
|
{
|
|
|
|
|
Target = target;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event raised when a player zombifies themself using the "turn" action
|
|
|
|
|
/// </summary>
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class ZombifySelfActionEvent : InstantActionEvent { };
|