using Content.Shared.Actions; namespace Content.Shared.Jaunt; public sealed class JauntSystem : EntitySystem { [Dependency] private readonly SharedActionsSystem _actions = default!; public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnInit); SubscribeLocalEvent(OnShutdown); } private void OnInit(Entity ent, ref MapInitEvent args) { _actions.AddAction(ent.Owner, ref ent.Comp.Action, ent.Comp.JauntAction); } private void OnShutdown(Entity ent, ref ComponentShutdown args) { _actions.RemoveAction(ent.Owner, ent.Comp.Action); } }