Questionable/Questionable.Model/Questing/JumpDestination.cs

19 lines
540 B
C#
Raw Normal View History

2024-06-01 12:30:20 +00:00
using System.Numerics;
using System.Text.Json.Serialization;
2024-08-02 16:30:21 +00:00
using Questionable.Model.Common.Converter;
using Questionable.Model.Questing.Converter;
2024-06-01 12:30:20 +00:00
2024-08-02 16:30:21 +00:00
namespace Questionable.Model.Questing;
2024-06-01 12:30:20 +00:00
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
}