diff --git a/Content.Server/Roles/Job.cs b/Content.Server/Roles/Job.cs index 658ecf748f..c94ca22258 100644 --- a/Content.Server/Roles/Job.cs +++ b/Content.Server/Roles/Job.cs @@ -2,18 +2,23 @@ using Content.Server.Chat.Managers; using Content.Shared.Roles; using Robust.Shared.IoC; using Robust.Shared.Localization; +using Robust.Shared.ViewVariables; namespace Content.Server.Roles { public class Job : Role { + [ViewVariables] public JobPrototype Prototype { get; } public override string Name { get; } + public override bool Antagonist => false; + [ViewVariables] public string? StartingGear => Prototype.StartingGear; + [ViewVariables] public bool CanBeAntag; public Job(Mind.Mind mind, JobPrototype jobPrototype) : base(mind) diff --git a/Content.Server/Roles/Role.cs b/Content.Server/Roles/Role.cs index 8c0943272a..9a628185bb 100644 --- a/Content.Server/Roles/Role.cs +++ b/Content.Server/Roles/Role.cs @@ -1,6 +1,8 @@ // Hey look, // Antag Datums. +using Robust.Shared.ViewVariables; + namespace Content.Server.Roles { /// @@ -13,16 +15,19 @@ namespace Content.Server.Roles /// /// The mind owning this role instance. /// + [ViewVariables] public Mind.Mind Mind { get; } /// /// A friendly name for this role type. /// + [ViewVariables] public abstract string Name { get; } /// /// Whether this role should be considered antagonistic or not. /// + [ViewVariables] public abstract bool Antagonist { get; } protected Role(Mind.Mind mind)