Disposals refactor (#17803)
This commit is contained in:
@@ -37,6 +37,7 @@ public abstract class SharedGrapplingGunSystem : EntitySystem
|
||||
{
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<GrapplingProjectileComponent, ProjectileEmbedEvent>(OnGrappleCollide);
|
||||
SubscribeLocalEvent<GrapplingProjectileComponent, JointRemovedEvent>(OnGrappleJointRemoved);
|
||||
SubscribeLocalEvent<CanWeightlessMoveEvent>(OnWeightlessMove);
|
||||
SubscribeAllEvent<RequestGrapplingReelMessage>(OnGrapplingReel);
|
||||
|
||||
@@ -45,6 +46,11 @@ public abstract class SharedGrapplingGunSystem : EntitySystem
|
||||
SubscribeLocalEvent<GrapplingGunComponent, HandDeselectedEvent>(OnGrapplingDeselected);
|
||||
}
|
||||
|
||||
private void OnGrappleJointRemoved(EntityUid uid, GrapplingProjectileComponent component, JointRemovedEvent args)
|
||||
{
|
||||
QueueDel(uid);
|
||||
}
|
||||
|
||||
private void OnGrapplingShot(EntityUid uid, GrapplingGunComponent component, ref GunShotEvent args)
|
||||
{
|
||||
foreach (var (shotUid, _) in args.Ammo)
|
||||
|
||||
Reference in New Issue
Block a user