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