Fix warnings and code cleanup/fixes (#13570)
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Content.Shared.Roles
|
||||
private string? _description = string.Empty;
|
||||
|
||||
[ViewVariables]
|
||||
[IdDataFieldAttribute]
|
||||
[IdDataField]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Shared.Roles;
|
||||
[Prototype("department")]
|
||||
public sealed class DepartmentPrototype : IPrototype
|
||||
{
|
||||
[IdDataFieldAttribute] public string ID { get; } = default!;
|
||||
[IdDataField] public string ID { get; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// A description string to display in the character menu as an explanation of the department's function.
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Content.Shared.Roles
|
||||
public sealed class JobPrototype : IPrototype
|
||||
{
|
||||
[ViewVariables]
|
||||
[IdDataFieldAttribute]
|
||||
[IdDataField]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
[DataField("playTimeTracker", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<PlayTimeTrackerPrototype>))]
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Content.Shared.Roles
|
||||
private Dictionary<string, string> _inHand = new(0);
|
||||
|
||||
[ViewVariables]
|
||||
[IdDataFieldAttribute]
|
||||
[IdDataField]
|
||||
public string ID { get; } = string.Empty;
|
||||
|
||||
public string GetGear(string slot, HumanoidCharacterProfile? profile)
|
||||
|
||||
Reference in New Issue
Block a user