mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Uses the following Cherry-Picks: https://github.com/space-wizards/space-station-14/pull/26994 https://github.com/space-wizards/space-station-14/pull/26518 https://github.com/space-wizards/space-station-14/pull/26279 https://github.com/space-wizards/space-station-14/pull/24946 https://github.com/space-wizards/space-station-14/pull/27188 Requires: https://github.com/Simple-Station/Einstein-Engines/pull/535 https://github.com/Simple-Station/Einstein-Engines/pull/534 --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Co-authored-by: Jake Huxell <JakeHuxell@pm.me> Co-authored-by: Tayrtahn <tayrtahn@gmail.com> Co-authored-by: 0x6273 <0x40@keemail.me> Co-authored-by: DEATHB4DEFEAT <zachcaffee@outlook.com>
24 lines
643 B
C#
24 lines
643 B
C#
using System.Numerics;
|
|
using Robust.Shared.Map;
|
|
|
|
namespace Content.Shared.Coordinates
|
|
{
|
|
public static class EntityCoordinatesExtensions
|
|
{
|
|
public static EntityCoordinates ToCoordinates(this EntityUid id)
|
|
{
|
|
return new EntityCoordinates(id, new Vector2(0, 0));
|
|
}
|
|
|
|
public static EntityCoordinates ToCoordinates(this EntityUid id, Vector2 offset)
|
|
{
|
|
return new EntityCoordinates(id, offset);
|
|
}
|
|
|
|
public static EntityCoordinates ToCoordinates(this EntityUid id, float x, float y)
|
|
{
|
|
return new EntityCoordinates(id, x, y);
|
|
}
|
|
}
|
|
}
|