diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 454c995115..7e477bed38 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -41,6 +41,7 @@ END TEMPLATE--> * `MarkupNode` is now `IEquatable`. It already supported equality checks, now it implements the interface. * Added `Entity` overloads to the following `SharedMapSystem` methods: `GetTileRef`, `GetAnchoredEntities`, `TileIndicesFor`. +* Added `EntityUid`-only overloads to the following `SharedTransformSystem` methods: `AnchorEntity`, `Unanchor`. ### Bugfixes diff --git a/Robust.Shared/GameObjects/Systems/SharedTransformSystem.Component.cs b/Robust.Shared/GameObjects/Systems/SharedTransformSystem.Component.cs index 130d160e4c..aed80ff5cb 100644 --- a/Robust.Shared/GameObjects/Systems/SharedTransformSystem.Component.cs +++ b/Robust.Shared/GameObjects/Systems/SharedTransformSystem.Component.cs @@ -107,6 +107,11 @@ public abstract partial class SharedTransformSystem return AnchorEntity(uid, xform, grid.Owner, grid, tileIndices); } + public bool AnchorEntity(EntityUid uid) + { + return AnchorEntity(uid, XformQuery.GetComponent(uid)); + } + public bool AnchorEntity(EntityUid uid, TransformComponent xform) { return AnchorEntity((uid, xform)); @@ -127,6 +132,11 @@ public abstract partial class SharedTransformSystem return AnchorEntity(entity, grid.Value, tileIndices); } + public void Unanchor(EntityUid uid) + { + Unanchor(uid, XformQuery.GetComponent(uid)); + } + public void Unanchor(EntityUid uid, TransformComponent xform, bool setPhysics = true) { if (!xform._anchored)