mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
19 lines
761 B
C#
19 lines
761 B
C#
using Content.Shared.Administration.Logs;
|
|
using Content.Shared.Trigger.Components.Effects;
|
|
|
|
namespace Content.Shared.Trigger.Systems;
|
|
|
|
public sealed partial class AdminLogOnTriggerSystem : XOnTriggerSystem<AdminLogOnTriggerComponent>
|
|
{
|
|
[Dependency] private ISharedAdminLogManager _adminLogger = default!;
|
|
|
|
protected override void OnTrigger(Entity<AdminLogOnTriggerComponent> ent, EntityUid target, ref TriggerEvent args)
|
|
{
|
|
_adminLogger.Add(
|
|
ent.Comp.LogType,
|
|
ent.Comp.LogImpact,
|
|
$"{ToPrettyString(args.User)} sent a trigger using {ToPrettyString(ent)}: {Loc.GetString(ent.Comp.Message)}"
|
|
);
|
|
// Intentionally does not handle the event since this shouldn't affect the gamestate.
|
|
}
|
|
}
|