Verb predict (#5638)
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
using Content.Server.Access.Systems;
|
||||
using Content.Server.PDA;
|
||||
using Robust.Shared.Analyzers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
|
||||
namespace Content.Server.Access.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(IdCardSystem), typeof(PDASystem))]
|
||||
public class IdCardComponent : Component
|
||||
{
|
||||
public override string Name => "IdCard";
|
||||
|
||||
[DataField("originalOwnerName")]
|
||||
public string OriginalOwnerName = default!;
|
||||
|
||||
[DataField("fullName")]
|
||||
public string? FullName;
|
||||
|
||||
[DataField("jobTitle")]
|
||||
public string? JobTitle;
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using Content.Server.Access.Systems;
|
||||
using Content.Server.Power.Components;
|
||||
using Content.Server.UserInterface;
|
||||
using Content.Shared.Access;
|
||||
using Content.Shared.Access.Components;
|
||||
using Content.Shared.Containers.ItemSlots;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
@@ -115,6 +116,9 @@ namespace Content.Server.Access.Components
|
||||
|
||||
public void UpdateUserInterface()
|
||||
{
|
||||
if (!Initialized)
|
||||
return;
|
||||
|
||||
IdCardConsoleBoundUserInterfaceState newState;
|
||||
// this could be prettier
|
||||
if (TargetIdSlot.Item is not {Valid: true} targetIdEntity)
|
||||
|
||||
Reference in New Issue
Block a user