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