space doafters, like doafters but in space (#16670)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-06-03 19:33:41 +00:00
committed by GitHub
parent a2318532e0
commit 10932cc384
4 changed files with 30 additions and 12 deletions

View File

@@ -48,10 +48,10 @@ public sealed class DoAfter
public EntityCoordinates UserPosition;
/// <summary>
/// Position of the target relative to their parent when the do after was started.
/// Distance from the user to the target when the do after was started.
/// </summary>
[DataField("targetPosition")]
public EntityCoordinates TargetPosition;
[DataField("targetDistance")]
public float TargetDistance;
/// <summary>
/// If <see cref="DoAfterArgs.NeedHand"/> is true, this is the hand that was selected when the doafter started.
@@ -94,7 +94,7 @@ public sealed class DoAfter
CancelledTime = other.CancelledTime;
Completed = other.Completed;
UserPosition = other.UserPosition;
TargetPosition = other.TargetPosition;
TargetDistance = other.TargetDistance;
InitialHand = other.InitialHand;
InitialItem = other.InitialItem;
}