Transform refactor. (#139)

space-wizards/space-station-14#725
This commit is contained in:
Pieter-Jan Briers
2019-01-18 11:40:30 +01:00
committed by GitHub
parent e8e1c9dd1f
commit 415b7e96fd
30 changed files with 71 additions and 71 deletions

View File

@@ -171,7 +171,7 @@ namespace Content.Server.GameObjects
return null;
}
public bool Drop(string slot, GridLocalCoordinates coords)
public bool Drop(string slot, GridCoordinates coords)
{
if (!CanDrop(slot))
{
@@ -188,13 +188,13 @@ namespace Content.Server.GameObjects
item.RemovedFromSlot();
// TODO: The item should be dropped to the container our owner is in, if any.
item.Owner.Transform.LocalPosition = coords;
item.Owner.Transform.GridPosition = coords;
Dirty();
return true;
}
public bool Drop(IEntity entity, GridLocalCoordinates coords)
public bool Drop(IEntity entity, GridCoordinates coords)
{
if (entity == null)
{
@@ -227,7 +227,7 @@ namespace Content.Server.GameObjects
item.RemovedFromSlot();
// TODO: The item should be dropped to the container our owner is in, if any.
item.Owner.Transform.LocalPosition = Owner.Transform.LocalPosition;
item.Owner.Transform.GridPosition = Owner.Transform.GridPosition;
Dirty();
return true;
@@ -451,7 +451,7 @@ namespace Content.Server.GameObjects
if (playerEntity == Owner && used != null)
{
InteractionSystem.Interaction(Owner, used, slot.ContainedEntity,
GridLocalCoordinates.Nullspace);
GridCoordinates.Nullspace);
}
break;