Files
tbd-station-14/Content.Shared/Throwing/ThrowAttemptEvent.cs
Princess Cheeseballs dec2d42a1d Crawling Part 1: The Knockdownening (#36881)
Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Co-authored-by: ScarKy0 <scarky0@onet.eu>
2025-07-20 01:54:42 +02:00

38 lines
1.1 KiB
C#

namespace Content.Shared.Throwing
{
public sealed class ThrowAttemptEvent : CancellableEntityEventArgs
{
public ThrowAttemptEvent(EntityUid uid, EntityUid itemUid)
{
Uid = uid;
ItemUid = itemUid;
}
public EntityUid Uid { get; }
public EntityUid ItemUid { get; }
}
/// <summary>
/// Raised on the item entity that is thrown.
/// </summary>
/// <param name="User">The user that threw this entity.</param>
/// <param name="Cancelled">Whether or not the throw should be cancelled.</param>
[ByRefEvent]
public record struct ThrowItemAttemptEvent(EntityUid User, bool Cancelled = false);
/// <summary>
/// Raised when we try to pushback an entity from throwing
/// </summary>
public sealed class ThrowPushbackAttemptEvent : CancellableEntityEventArgs {}
/// <summary>
/// Raised on an entity that is being pushed from a thrown entity
/// </summary>
[ByRefEvent]
public record struct ThrowerImpulseEvent()
{
public bool Push;
};
}