Give some of the most common interaction events EntityUid properties
This commit is contained in:
@@ -45,11 +45,21 @@ namespace Content.Shared.Interaction
|
||||
/// </summary>
|
||||
public IEntity User { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Entity that activated the target world entity.
|
||||
/// </summary>
|
||||
public EntityUid UserUid => User.Uid;
|
||||
|
||||
/// <summary>
|
||||
/// Entity that was activated in the world.
|
||||
/// </summary>
|
||||
public IEntity Target { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Entity that was activated in the world.
|
||||
/// </summary>
|
||||
public EntityUid TargetUid => Target.Uid;
|
||||
|
||||
public ActivateInWorldEvent(IEntity user, IEntity target)
|
||||
{
|
||||
User = user;
|
||||
|
||||
Reference in New Issue
Block a user