Give some of the most common interaction events EntityUid properties
This commit is contained in:
@@ -41,11 +41,21 @@ namespace Content.Shared.Interaction
|
||||
/// </summary>
|
||||
public IEntity User { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Entity holding the item in their hand.
|
||||
/// </summary>
|
||||
public EntityUid UserUid => User.Uid;
|
||||
|
||||
/// <summary>
|
||||
/// Item that was used.
|
||||
/// </summary>
|
||||
public IEntity Used { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Item that was used.
|
||||
/// </summary>
|
||||
public EntityUid UsedUid => Used.Uid;
|
||||
|
||||
public UseInHandEvent(IEntity user, IEntity used)
|
||||
{
|
||||
User = user;
|
||||
|
||||
Reference in New Issue
Block a user