fix: make IdentityComp.IdentityEntitySlot optional (#39357)

* fix: make IdentityComp.IdentityEntitySlot optional

* Revert "fix: make IdentityComp.IdentityEntitySlot optional"

This reverts commit fa25263be916ed142bf2cff9871fca3e64c6da2b.

* fix conflicts

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
Perry Fraser
2025-10-21 11:33:59 -04:00
committed by GitHub
parent 43b9d71973
commit 5a0a984aa8
3 changed files with 24 additions and 7 deletions

View File

@@ -14,8 +14,12 @@ namespace Content.Shared.IdentityManagement.Components;
[RegisterComponent, NetworkedComponent]
public sealed partial class IdentityComponent : Component
{
/// <summary>
/// The slot which carries around the entity representing the carrier's
/// perceived identity. May be null if the component is not initialized.
/// </summary>
[ViewVariables]
public ContainerSlot IdentityEntitySlot = default!;
public ContainerSlot? IdentityEntitySlot;
}
/// <summary>
@@ -32,7 +36,7 @@ public sealed class IdentityRepresentation
public string? PresumedName;
public string? PresumedJob;
public IdentityRepresentation(string trueName, Gender trueGender, string ageString, string? presumedName=null, string? presumedJob=null)
public IdentityRepresentation(string trueName, Gender trueGender, string ageString, string? presumedName = null, string? presumedJob = null)
{
TrueName = trueName;
TrueGender = trueGender;