19 lines
459 B
C#
19 lines
459 B
C#
using Content.Shared.Roles.Components;
|
|
|
|
namespace Content.Server.Roles;
|
|
|
|
public sealed class RoleBriefingSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<RoleBriefingComponent, GetBriefingEvent>(OnGetBriefing);
|
|
}
|
|
|
|
private void OnGetBriefing(EntityUid uid, RoleBriefingComponent comp, ref GetBriefingEvent args)
|
|
{
|
|
args.Append(Loc.GetString(comp.Briefing));
|
|
}
|
|
}
|