Update (MOST) instances of EntityUid, Component in GunSystem to Entity<T> (#41966)

* Entity<T>, skipping Magazine and ChamberMagazine

* missed some

* AUGH!!

* ballistic examine

* dotnet hates me

* WHY ARE YOU CALLED THAT!!!!

* cheers aada
This commit is contained in:
mq
2026-04-04 16:57:22 +02:00
committed by BarryNorfolk
parent ac967adc24
commit a4e9f24572
58 changed files with 720 additions and 737 deletions
@@ -27,18 +27,18 @@ public sealed partial class GunSignalControlSystem : EntitySystem
return;
if (args.Port == gunControl.Comp.TriggerPort)
_gun.AttemptShoot(gunControl, gun);
_gun.AttemptShoot((gunControl, gun));
if (!TryComp<AutoShootGunComponent>(gunControl, out var autoShoot))
return;
if (args.Port == gunControl.Comp.TogglePort)
_gun.SetEnabled(gunControl, autoShoot, !autoShoot.Enabled);
_gun.SetEnabled((gunControl, autoShoot), !autoShoot.Enabled);
if (args.Port == gunControl.Comp.OnPort)
_gun.SetEnabled(gunControl, autoShoot, true);
_gun.SetEnabled((gunControl, autoShoot), true);
if (args.Port == gunControl.Comp.OffPort)
_gun.SetEnabled(gunControl, autoShoot, false);
_gun.SetEnabled((gunControl, autoShoot), false);
}
}