перенос общих файлов из папки White в _White

This commit is contained in:
Remuchi
2024-01-28 18:37:24 +07:00
parent 1e4ad59270
commit 3a08b81d53
370 changed files with 805 additions and 812 deletions

View File

@@ -0,0 +1,27 @@
using Content.Shared.Actions;
namespace Content.Shared._White.Harpy
{
public class HarpySingerSystem : EntitySystem
{
[Dependency] private readonly SharedActionsSystem _actionsSystem = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<HarpySingerComponent, ComponentStartup>(OnStartup);
SubscribeLocalEvent<HarpySingerComponent, ComponentShutdown>(OnShutdown);
}
private void OnStartup(EntityUid uid, HarpySingerComponent component, ComponentStartup args)
{
_actionsSystem.AddAction(uid, ref component.MidiAction, component.MidiActionId);
}
private void OnShutdown(EntityUid uid, HarpySingerComponent component, ComponentShutdown args)
{
_actionsSystem.RemoveAction(uid, component.MidiAction);
}
}
}