From 95ec222823845426ce8d27512925562f04fb3f99 Mon Sep 17 00:00:00 2001 From: metalgearsloth Date: Fri, 10 Jan 2025 14:17:19 +1100 Subject: [PATCH] Also attributes --- Robust.Shared/Physics/Dynamics/Contacts/Contact.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Robust.Shared/Physics/Dynamics/Contacts/Contact.cs b/Robust.Shared/Physics/Dynamics/Contacts/Contact.cs index 2aceba63418..2e0fb3ed5f8 100644 --- a/Robust.Shared/Physics/Dynamics/Contacts/Contact.cs +++ b/Robust.Shared/Physics/Dynamics/Contacts/Contact.cs @@ -30,6 +30,7 @@ using System; using System.Collections.Generic; using System.Numerics; +using JetBrains.Annotations; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Maths; @@ -361,6 +362,7 @@ public override int GetHashCode() return HashCode.Combine(EntityA, EntityB); } + [Pure] public EntityUid OurEnt(EntityUid uid) { if (uid == EntityA) @@ -374,6 +376,7 @@ public EntityUid OurEnt(EntityUid uid) /// /// Gets the other ent for this contact. /// + [Pure] public EntityUid OtherEnt(EntityUid uid) { if (uid == EntityA) @@ -384,6 +387,7 @@ public EntityUid OtherEnt(EntityUid uid) throw new InvalidOperationException(); } + [Pure, PublicAPI] public (string Id, Fixture) OurFixture(EntityUid uid) { if (uid == EntityA) @@ -394,6 +398,7 @@ public EntityUid OtherEnt(EntityUid uid) throw new InvalidOperationException(); } + [Pure, PublicAPI] public (string Id, Fixture) OtherFixture(EntityUid uid) { if (uid == EntityA)