mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 02:41:18 +03:00
* FAILURE * oh it was that easy * actually this is how its supposed to be yeah * remove mobstate and satiation * replacements * cleaner * discord remarks * refactor: extract ActionRequirementsSystem.DoCancel method, fix typo in ActionRequirementsComponent * review --------- Co-authored-by: Fildrance <fildrance@gmail.com>
10 lines
421 B
C#
10 lines
421 B
C#
using Content.Shared.Popups;
|
|
|
|
namespace Content.Shared.Actions.Events;
|
|
|
|
/// <summary>
|
|
/// Raised before an action is used and can be cancelled to prevent it.
|
|
/// Allowed to have side effects like modifying the action components.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public record struct ActionAttemptEvent(EntityUid User, EntityUid? Target, bool Cancelled = false, string? Reason = null, PopupType Type = PopupType.SmallCaution);
|