CatStation/Content.Shared/Interaction/ActivateInWorldEvent.cs
deltanedas 03a8a2d73d
Remove ITargetedInteractEventArgs for being unused (#44562)
remove 5 year old unused shitcode

Co-authored-by: deltanedas <@deltanedas:goida.zip>
2026-07-08 12:40:16 +00:00

66 lines
1.7 KiB
C#

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