mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
18 lines
459 B
C#
18 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));
|
|
}
|
|
}
|