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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user