DroppedEvent uses EntityUid exclusively

This commit is contained in:
Vera Aguilera Puerto
2021-11-09 15:03:01 +01:00
parent c10a65d588
commit 22724d06b4
3 changed files with 7 additions and 17 deletions

View File

@@ -37,32 +37,22 @@ namespace Content.Shared.Interaction
/// <summary>
/// Entity that dropped the item.
/// </summary>
public IEntity User { get; }
/// <summary>
/// Entity that dropped the item.
/// </summary>
public EntityUid UserUid => User.Uid;
public EntityUid UserUid { get; }
/// <summary>
/// Item that was dropped.
/// </summary>
public IEntity Dropped { get; }
/// <summary>
/// Item that was dropped.
/// </summary>
public EntityUid DroppedUid => Dropped.Uid;
public EntityUid DroppedUid { get; }
/// <summary>
/// If the item was dropped intentionally.
/// </summary>
public bool Intentional { get; }
public DroppedEvent(IEntity user, IEntity dropped, bool intentional)
public DroppedEvent(EntityUid user, EntityUid dropped, bool intentional)
{
User = user;
Dropped = dropped;
UserUid = user;
DroppedUid = dropped;
Intentional = intentional;
}
}