mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-15 06:42:25 +02:00
LocalPlayer EntityUid
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user