Fix warnings and code cleanup/fixes (#13570)

This commit is contained in:
Visne
2023-01-19 03:56:45 +01:00
committed by GitHub
parent 3ca5a0224b
commit c6d3e4f3bd
265 changed files with 499 additions and 666 deletions

View File

@@ -13,7 +13,7 @@ namespace Content.Shared.Roles
private string? _description = string.Empty;
[ViewVariables]
[IdDataFieldAttribute]
[IdDataField]
public string ID { get; } = default!;
/// <summary>

View File

@@ -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.

View File

@@ -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>))]

View File

@@ -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)