Remove obsolete Fixture.Body references (#16259)
This commit is contained in:
@@ -283,7 +283,7 @@ public sealed partial class ExplosionSystem : EntitySystem
|
||||
ref (List<TransformComponent> List, HashSet<EntityUid> Processed, EntityQuery<TransformComponent> XformQuery) state,
|
||||
in FixtureProxy proxy)
|
||||
{
|
||||
var owner = proxy.Fixture.Body.Owner;
|
||||
var owner = proxy.Entity;
|
||||
return GridQueryCallback(ref state, in owner);
|
||||
}
|
||||
|
||||
@@ -366,8 +366,8 @@ public sealed partial class ExplosionSystem : EntitySystem
|
||||
ref (List<TransformComponent> List, HashSet<EntityUid> Processed, Matrix3 InvSpaceMatrix, EntityUid LookupOwner, EntityQuery<TransformComponent> XformQuery, Box2 GridBox) state,
|
||||
in FixtureProxy proxy)
|
||||
{
|
||||
var owner = proxy.Fixture.Body.Owner;
|
||||
return SpaceQueryCallback(ref state, in owner);
|
||||
var uid = proxy.Entity;
|
||||
return SpaceQueryCallback(ref state, in uid);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -77,14 +77,14 @@ public sealed partial class TriggerSystem
|
||||
if (args.OurFixture.ID != TriggerOnProximityComponent.FixtureID) return;
|
||||
|
||||
_activeProximities.Add(component);
|
||||
component.Colliding.Add(args.OtherFixture.Body);
|
||||
component.Colliding.Add(args.OtherBody);
|
||||
}
|
||||
|
||||
private static void OnProximityEndCollide(EntityUid uid, TriggerOnProximityComponent component, ref EndCollideEvent args)
|
||||
{
|
||||
if (args.OurFixture.ID != TriggerOnProximityComponent.FixtureID) return;
|
||||
|
||||
component.Colliding.Remove(args.OtherFixture.Body);
|
||||
component.Colliding.Remove(args.OtherBody);
|
||||
}
|
||||
|
||||
private void SetProximityAppearance(EntityUid uid, TriggerOnProximityComponent component)
|
||||
|
||||
@@ -19,7 +19,7 @@ public sealed partial class TriggerSystem
|
||||
{
|
||||
//Ensures the entity trigger will have an active component
|
||||
EnsureComp<ActiveTriggerOnTimedCollideComponent>(uid);
|
||||
var otherUID = args.OtherFixture.Body.Owner;
|
||||
var otherUID = args.OtherEntity;
|
||||
if (component.Colliding.ContainsKey(otherUID))
|
||||
return;
|
||||
component.Colliding.Add(otherUID, 0);
|
||||
@@ -27,7 +27,7 @@ public sealed partial class TriggerSystem
|
||||
|
||||
private void OnTimerEndCollide(EntityUid uid, TriggerOnTimedCollideComponent component, ref EndCollideEvent args)
|
||||
{
|
||||
var otherUID = args.OtherFixture.Body.Owner;
|
||||
var otherUID = args.OtherEntity;
|
||||
component.Colliding.Remove(otherUID);
|
||||
|
||||
if (component.Colliding.Count == 0 && HasComp<ActiveTriggerOnTimedCollideComponent>(uid))
|
||||
|
||||
Reference in New Issue
Block a user