Adds job icons to the job list.
This commit is contained in:
@@ -39,6 +39,8 @@ namespace Content.Shared.Jobs
|
||||
|
||||
public string StartingGear { get; private set; }
|
||||
|
||||
public string Icon { get; private set; }
|
||||
|
||||
public IReadOnlyCollection<string> Department { get; private set; }
|
||||
public IReadOnlyCollection<string> Access { get; private set; }
|
||||
|
||||
@@ -72,6 +74,11 @@ namespace Content.Shared.Jobs
|
||||
{
|
||||
Access = Array.Empty<string>();
|
||||
}
|
||||
|
||||
if (mapping.TryGetNode("icon", out var iconNode))
|
||||
{
|
||||
Icon = iconNode.AsString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user