Inline UID

This commit is contained in:
Vera Aguilera Puerto
2021-12-03 15:53:09 +01:00
parent 2654775bf0
commit 5cd42c9ad6
803 changed files with 3613 additions and 3577 deletions

View File

@@ -190,7 +190,7 @@ namespace Content.Shared.Actions
public ComponentMessage PerformInstantActionMessage()
#pragma warning restore 618
{
return new PerformInstantItemActionMessage(_action.ActionType, _item.Uid);
return new PerformInstantItemActionMessage(_action.ActionType, _item);
}
#pragma warning disable 618
@@ -199,23 +199,23 @@ namespace Content.Shared.Actions
{
if (toggleOn)
{
return new PerformToggleOnItemActionMessage(_action.ActionType, _item.Uid);
return new PerformToggleOnItemActionMessage(_action.ActionType, _item);
}
return new PerformToggleOffItemActionMessage(_action.ActionType, _item.Uid);
return new PerformToggleOffItemActionMessage(_action.ActionType, _item);
}
#pragma warning disable 618
public ComponentMessage PerformTargetPointActionMessage(PointerInputCmdHandler.PointerInputCmdArgs args)
#pragma warning restore 618
{
return new PerformTargetPointItemActionMessage(_action.ActionType, _item.Uid, args.Coordinates);
return new PerformTargetPointItemActionMessage(_action.ActionType, _item, args.Coordinates);
}
#pragma warning disable 618
public ComponentMessage PerformTargetEntityActionMessage(PointerInputCmdHandler.PointerInputCmdArgs args)
#pragma warning restore 618
{
return new PerformTargetEntityItemActionMessage(_action.ActionType, _item.Uid, args.EntityUid);
return new PerformTargetEntityItemActionMessage(_action.ActionType, _item, args.EntityUid);
}
public override string ToString()