using Content.Shared.Ninja.Components;
namespace Content.Shared.Ninja.Systems;
///
/// All interaction logic is implemented serverside.
/// This is in shared for API and access.
///
public abstract class SharedStunProviderSystem : EntitySystem
{
///
/// Set the battery field on the stun provider.
///
public void SetBattery(EntityUid uid, EntityUid? battery, StunProviderComponent? comp = null)
{
if (!Resolve(uid, ref comp))
return;
comp.BatteryUid = battery;
}
///
/// Set the no power popup field on the stun provider.
///
public void SetNoPowerPopup(EntityUid uid, string popup, StunProviderComponent? comp = null)
{
if (!Resolve(uid, ref comp))
return;
comp.NoPowerPopup = popup;
}
}