namespace Content.Shared.Interaction.Events
{
///
/// Event raised directed at a user to see if they can perform a generic interaction.
///
[ByRefEvent]
public struct InteractionAttemptEvent(EntityUid uid, EntityUid? target)
{
public bool Cancelled;
public readonly EntityUid Uid = uid;
public readonly EntityUid? Target = target;
}
///
/// Raised to determine whether an entity is conscious to perform an action.
///
[ByRefEvent]
public struct ConsciousAttemptEvent(EntityUid uid)
{
public bool Cancelled;
public readonly EntityUid Uid = uid;
}
///
/// Event raised directed at the target entity of an interaction to see if the user is allowed to perform some
/// generic interaction.
///
[ByRefEvent]
public struct GettingInteractedWithAttemptEvent(EntityUid uid, EntityUid? target)
{
public bool Cancelled;
public readonly EntityUid Uid = uid;
public readonly EntityUid? Target = target;
}
}