LocalPlayer EntityUid

This commit is contained in:
Vera Aguilera Puerto
2021-11-09 12:38:25 +01:00
parent 8c3c8fceea
commit 07c65474cb
+4 -2
View File
@@ -24,11 +24,13 @@ namespace Robust.Client.Player
public event Action<EntityDetachedEventArgs>? EntityDetached;
/// <summary>
/// Game entity that the local player is controlling. If this is null, the player
/// is in free/spectator cam.
/// Game entity that the local player is controlling. If this is null, the player is not attached to any
/// entity at all.
/// </summary>
[ViewVariables] public IEntity? ControlledEntity { get; private set; }
[ViewVariables] public EntityUid? ControlledEntityUid => ControlledEntity?.Uid;
[ViewVariables] public NetUserId UserId { get; set; }