using System; using System.Collections.Generic; using Content.Server.Interfaces.Chat; using Content.Shared.Jobs; using Robust.Shared.IoC; namespace Content.Server.Mobs.Roles { public class Job : Role { public JobPrototype Prototype { get; } public override string Name { get; } public override bool Antag => false; public string StartingGear => Prototype.StartingGear; public Job(Mind mind, JobPrototype jobPrototype) : base(mind) { Prototype = jobPrototype; Name = jobPrototype.Name; } public override void Greet() { base.Greet(); var chat = IoCManager.Resolve(); chat.DispatchServerMessage(Mind.Session, $"You're a new {Name}. Do your best!"); } } }