Remove FixtureId (#19280)
This commit is contained in:
@@ -61,6 +61,7 @@ public sealed partial class TriggerSystem
|
||||
component.Shape,
|
||||
TriggerOnProximityComponent.FixtureID,
|
||||
hard: false,
|
||||
body: body,
|
||||
collisionLayer: component.Layer);
|
||||
}
|
||||
|
||||
@@ -72,7 +73,7 @@ public sealed partial class TriggerSystem
|
||||
|
||||
private void OnProximityStartCollide(EntityUid uid, TriggerOnProximityComponent component, ref StartCollideEvent args)
|
||||
{
|
||||
if (args.OurFixture.ID != TriggerOnProximityComponent.FixtureID)
|
||||
if (args.OurFixtureId != TriggerOnProximityComponent.FixtureID)
|
||||
return;
|
||||
|
||||
component.Colliding[args.OtherEntity] = args.OtherBody;
|
||||
@@ -80,7 +81,7 @@ public sealed partial class TriggerSystem
|
||||
|
||||
private static void OnProximityEndCollide(EntityUid uid, TriggerOnProximityComponent component, ref EndCollideEvent args)
|
||||
{
|
||||
if (args.OurFixture.ID != TriggerOnProximityComponent.FixtureID)
|
||||
if (args.OurFixtureId != TriggerOnProximityComponent.FixtureID)
|
||||
return;
|
||||
|
||||
component.Colliding.Remove(args.OtherEntity);
|
||||
|
||||
@@ -184,13 +184,13 @@ namespace Content.Server.Explosion.EntitySystems
|
||||
|
||||
private void OnTriggerCollide(EntityUid uid, TriggerOnCollideComponent component, ref StartCollideEvent args)
|
||||
{
|
||||
if (args.OurFixture.ID == component.FixtureID && (!component.IgnoreOtherNonHard || args.OtherFixture.Hard))
|
||||
Trigger(component.Owner);
|
||||
if (args.OurFixtureId == component.FixtureID && (!component.IgnoreOtherNonHard || args.OtherFixture.Hard))
|
||||
Trigger(uid);
|
||||
}
|
||||
|
||||
private void OnActivate(EntityUid uid, TriggerOnActivateComponent component, ActivateInWorldEvent args)
|
||||
{
|
||||
Trigger(component.Owner, args.User);
|
||||
Trigger(uid, args.User);
|
||||
args.Handled = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user