1
0
forked from liza/Questionable
Questionable/Questionable.Model/Questing/JumpDestination.cs
2024-08-02 18:30:21 +02:00

19 lines
540 B
C#

using System.Numerics;
using System.Text.Json.Serialization;
using Questionable.Model.Common.Converter;
using Questionable.Model.Questing.Converter;
namespace Questionable.Model.Questing;
public sealed class JumpDestination
{
[JsonConverter(typeof(VectorConverter))]
public Vector3 Position { get; set; }
public float? StopDistance { get; set; }
public float? DelaySeconds { get; set; }
public EJumpType Type { get; set; } = EJumpType.SingleJump;
public float CalculateStopDistance() => StopDistance ?? 1f;
}