Skip to content

Commit

Permalink
Also attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
metalgearsloth committed Jan 10, 2025
1 parent 1266748 commit 95ec222
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Robust.Shared/Physics/Dynamics/Contacts/Contact.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -361,6 +362,7 @@ public override int GetHashCode()
return HashCode.Combine(EntityA, EntityB);
}

[Pure]
public EntityUid OurEnt(EntityUid uid)
{
if (uid == EntityA)
Expand All @@ -374,6 +376,7 @@ public EntityUid OurEnt(EntityUid uid)
/// <summary>
/// Gets the other ent for this contact.
/// </summary>
[Pure]
public EntityUid OtherEnt(EntityUid uid)
{
if (uid == EntityA)
Expand All @@ -384,6 +387,7 @@ public EntityUid OtherEnt(EntityUid uid)
throw new InvalidOperationException();
}

[Pure, PublicAPI]
public (string Id, Fixture) OurFixture(EntityUid uid)
{
if (uid == EntityA)
Expand All @@ -394,6 +398,7 @@ public EntityUid OtherEnt(EntityUid uid)
throw new InvalidOperationException();
}

[Pure, PublicAPI]
public (string Id, Fixture) OtherFixture(EntityUid uid)
{
if (uid == EntityA)
Expand Down

0 comments on commit 95ec222

Please sign in to comment.