mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-06 17:58:05 +02:00
EntityUid-only overloads for some TransformSystem methods
AnchorEntity and Unanchor
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user