23 lines
648 B
C#
23 lines
648 B
C#
using Content.Shared.Emag.Systems;
|
|
using Content.Shared.Silicons.Laws.Components;
|
|
|
|
namespace Content.Shared.Silicons.Laws;
|
|
|
|
/// <summary>
|
|
/// This handles getting and displaying the laws for silicons.
|
|
/// </summary>
|
|
public abstract class SharedSiliconLawSystem : EntitySystem
|
|
{
|
|
/// <inheritdoc/>
|
|
public override void Initialize()
|
|
{
|
|
SubscribeLocalEvent<EmagSiliconLawComponent, GotEmaggedEvent>(OnGotEmagged);
|
|
}
|
|
|
|
protected virtual void OnGotEmagged(EntityUid uid, EmagSiliconLawComponent component, ref GotEmaggedEvent args)
|
|
{
|
|
component.OwnerName = Name(args.UserUid);
|
|
args.Handled = true;
|
|
}
|
|
}
|