Questionable/Questionable.Model/V1/JumpDestination.cs

18 lines
485 B
C#
Raw Normal View History

2024-06-01 12:30:20 +00:00
using System.Numerics;
using System.Text.Json.Serialization;
using Questionable.Model.V1.Converter;
namespace Questionable.Model.V1;
2024-06-14 09:37:33 +00:00
public sealed class JumpDestination
2024-06-01 12:30:20 +00:00
{
[JsonConverter(typeof(VectorConverter))]
public Vector3 Position { get; set; }
public float? StopDistance { get; set; }
public float? DelaySeconds { get; set; }
2024-07-24 18:47:08 +00:00
public EJumpType Type { get; set; } = EJumpType.SingleJump;
public float CalculateStopDistance() => StopDistance ?? 1f;
2024-06-01 12:30:20 +00:00
}