Files
tbd-station-14/Content.Server/Roles/RoleBriefingSystem.cs
2025-08-13 12:51:46 +02:00

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));
}
}