19 lines
540 B
C#
Raw Normal View History

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