27 lines
648 B
C#
27 lines
648 B
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, ITargetedInteractEventArgs
|
|
{
|
|
/// <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; }
|
|
|
|
public ActivateInWorldEvent(EntityUid user, EntityUid target)
|
|
{
|
|
User = user;
|
|
Target = target;
|
|
}
|
|
}
|