CatStation/Content.Shared/Atmos/EntitySystems/SharedFirestarterSystem.cs
Pieter-Jan Briers 5168b5f3d4
IoC source gen compatibility (#43863)
* 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
2026-05-09 03:29:58 +00:00

24 lines
753 B
C#

using Content.Shared.Actions;
using Content.Shared.Atmos.Components;
namespace Content.Shared.Atmos.EntitySystems;
public abstract partial class SharedFirestarterSystem : EntitySystem
{
[Dependency] private SharedActionsSystem _actionsSystem = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<FirestarterComponent, ComponentInit>(OnComponentInit);
}
/// <summary>
/// Adds the firestarter action.
/// </summary>
private void OnComponentInit(EntityUid uid, FirestarterComponent component, ComponentInit args)
{
_actionsSystem.AddAction(uid, ref component.FireStarterActionEntity, component.FireStarterAction, uid);
Dirty(uid, component);
}
}