Job + department descriptions (#13157)

Co-authored-by: Sissel <axel.roche@pm.me>
This commit is contained in:
Kara
2022-12-23 17:36:12 -06:00
committed by GitHub
parent 92f806439e
commit a1350df01a
43 changed files with 121 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
using System.Linq;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
@@ -8,6 +9,18 @@ public sealed class DepartmentPrototype : IPrototype
{
[IdDataFieldAttribute] public string ID { get; } = default!;
/// <summary>
/// A description string to display in the character menu as an explanation of the department's function.
/// </summary>
[DataField("description", required: true)]
public string Description = default!;
/// <summary>
/// A color representing this department to use for text.
/// </summary>
[DataField("color", required: true)]
public Color Color = default!;
[ViewVariables(VVAccess.ReadWrite),
DataField("roles", customTypeSerializer: typeof(PrototypeIdListSerializer<JobPrototype>))]
public List<string> Roles = new();