Files
tbd-station-14/Content.Server/Mobs/Roles/Job.cs
2020-05-03 11:25:39 +02:00

35 lines
826 B
C#

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<IChatManager>();
chat.DispatchServerMessage(Mind.Session, $"You're a new {Name}. Do your best!");
}
}
}