using JetBrains.Annotations; namespace Content.Shared.Interaction; /// /// Raised when an entity is activated in the world. /// [PublicAPI] public sealed class ActivateInWorldEvent : HandledEntityEventArgs, ITargetedInteractEventArgs { /// /// Entity that activated the target world entity. /// public EntityUid User { get; } /// /// Entity that was activated in the world. /// public EntityUid Target { get; } /// /// Whether or not can perform complex interactions or only basic ones. /// public bool Complex; /// /// Set to true when the activation is logged by a specific logger. /// public bool WasLogged { get; set; } public ActivateInWorldEvent(EntityUid user, EntityUid target, bool complex) { User = user; Target = target; Complex = complex; } } /// /// Event raised on the user when it activates something in the world /// [PublicAPI] public sealed class UserActivateInWorldEvent : HandledEntityEventArgs, ITargetedInteractEventArgs { /// /// Entity that activated the target world entity. /// public EntityUid User { get; } /// /// Entity that was activated in the world. /// public EntityUid Target { get; } /// /// Whether or not can perform complex interactions or only basic ones. /// public bool Complex; public UserActivateInWorldEvent(EntityUid user, EntityUid target, bool complex) { User = user; Target = target; Complex = complex; } }