Misc content xform changes (#12166)
This commit is contained in:
@@ -4,13 +4,6 @@ namespace Content.Server.Coordinates.Helpers
|
||||
{
|
||||
public static class SnapgridHelper
|
||||
{
|
||||
public static void SnapToGrid(this EntityUid entity, IEntityManager? entMan = null, IMapManager? mapManager = null)
|
||||
{
|
||||
IoCManager.Resolve(ref entMan, ref mapManager);
|
||||
var transform = entMan.GetComponent<TransformComponent>(entity);
|
||||
transform.Coordinates = transform.Coordinates.SnapToGrid(entMan, mapManager);
|
||||
}
|
||||
|
||||
public static EntityCoordinates SnapToGrid(this EntityCoordinates coordinates, IEntityManager? entMan = null, IMapManager? mapManager = null)
|
||||
{
|
||||
IoCManager.Resolve(ref entMan, ref mapManager);
|
||||
|
||||
Reference in New Issue
Block a user