Fix PDA capitalization to be PascalCase (#17335)
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Content.Shared.Access.Components
|
||||
{
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[AutoGenerateComponentState]
|
||||
[Access(typeof(SharedIdCardSystem), typeof(SharedPDASystem), typeof(SharedAgentIdCardSystem), Other = AccessPermissions.ReadWrite)]
|
||||
[Access(typeof(SharedIdCardSystem), typeof(SharedPdaSystem), typeof(SharedAgentIdCardSystem), Other = AccessPermissions.ReadWrite)]
|
||||
public sealed partial class IdCardComponent : Component
|
||||
{
|
||||
[DataField("fullName")]
|
||||
@@ -17,7 +17,7 @@ namespace Content.Shared.Access.Components
|
||||
|
||||
[DataField("jobTitle")]
|
||||
[AutoNetworkedField]
|
||||
[Access(typeof(SharedIdCardSystem), typeof(SharedPDASystem), typeof(SharedAgentIdCardSystem),
|
||||
[Access(typeof(SharedIdCardSystem), typeof(SharedPdaSystem), typeof(SharedAgentIdCardSystem),
|
||||
Other = AccessPermissions.ReadWrite)]
|
||||
public string? JobTitle;
|
||||
}
|
||||
|
||||
@@ -256,8 +256,8 @@ namespace Content.Shared.Access.Systems
|
||||
return true;
|
||||
}
|
||||
|
||||
if (TryComp(uid, out PDAComponent? pda) &&
|
||||
pda.ContainedID?.Owner is {Valid: true} id)
|
||||
if (TryComp(uid, out PdaComponent? pda) &&
|
||||
pda.ContainedId?.Owner is {Valid: true} id)
|
||||
{
|
||||
tags = EntityManager.GetComponent<AccessComponent>(id).Tags;
|
||||
return true;
|
||||
@@ -279,8 +279,8 @@ namespace Content.Shared.Access.Systems
|
||||
return true;
|
||||
}
|
||||
|
||||
if (TryComp<PDAComponent>(uid, out var pda) &&
|
||||
pda.ContainedID?.Owner is {Valid: true} id)
|
||||
if (TryComp<PdaComponent>(uid, out var pda) &&
|
||||
pda.ContainedId?.Owner is {Valid: true} id)
|
||||
{
|
||||
if (TryComp<StationRecordKeyStorageComponent>(id, out var pdastorage) && pdastorage.Key != null)
|
||||
{
|
||||
|
||||
@@ -39,16 +39,16 @@ public abstract class SharedIdCardSystem : EntitySystem
|
||||
|
||||
/// <summary>
|
||||
/// Attempt to get an id card component from an entity, either by getting it directly from the entity, or by
|
||||
/// getting the contained id from a <see cref="PDAComponent"/>.
|
||||
/// getting the contained id from a <see cref="PdaComponent"/>.
|
||||
/// </summary>
|
||||
public bool TryGetIdCard(EntityUid uid, [NotNullWhen(true)] out IdCardComponent? idCard)
|
||||
{
|
||||
if (EntityManager.TryGetComponent(uid, out idCard))
|
||||
return true;
|
||||
|
||||
if (EntityManager.TryGetComponent(uid, out PDAComponent? pda) && pda.ContainedID != null)
|
||||
if (EntityManager.TryGetComponent(uid, out PdaComponent? pda) && pda.ContainedId != null)
|
||||
{
|
||||
idCard = pda.ContainedID;
|
||||
idCard = pda.ContainedId;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user