fish-station/Content.Shared/Blocking/Components/BlockingUserComponent.cs
Vigers Ray 014e6ac131
Культ крови (#847)
Signed-off-by: pacable <igor.mamaev1@gmail.com>
Co-authored-by: pacable <igor.mamaev1@gmail.com>
Co-authored-by: Babaev <129369024+babaevlsdd@users.noreply.github.com>
2025-03-29 14:46:54 +03:00

38 lines
938 B
C#

using Content.Shared.Damage;
using Robust.Shared.Physics;
namespace Content.Shared.Blocking;
/// <summary>
/// This component gets dynamically added to an Entity via the <see cref="BlockingSystem"/>
/// </summary>
[RegisterComponent]
public sealed partial class BlockingUserComponent : Component
{
/// <summary>
/// The entity that's being used to block
/// </summary>
[DataField("blockingItem")]
public EntityUid? BlockingItem;
/// <summary>
/// Stores the entities original bodytype
/// Used so that it can be put back to what it was after anchoring
/// </summary>
[DataField("originalBodyType")]
public BodyType OriginalBodyType;
}
public sealed class BlockingEvent : EntityEventArgs
{
public EntityUid? User;
public DamageSpecifier Damage;
public BlockingEvent(EntityUid user,
DamageSpecifier damage)
{
User = user;
Damage = damage;
}
}