| 12345678910111213141516171819202122 |
- using Content.Shared.Ninja.Components;
- namespace Content.Shared.Ninja.Systems;
- /// <summary>
- /// All interaction logic is implemented serverside.
- /// This is in shared for API and access.
- /// </summary>
- public abstract class SharedStunProviderSystem : EntitySystem
- {
- /// <summary>
- /// Set the battery field on the stun provider.
- /// </summary>
- public void SetBattery(Entity<StunProviderComponent?> ent, EntityUid? battery)
- {
- if (!Resolve(ent, ref ent.Comp) || ent.Comp.BatteryUid == battery)
- return;
- ent.Comp.BatteryUid = battery;
- Dirty(ent, ent.Comp);
- }
- }
|