23 lines
778 B
C#
23 lines
778 B
C#
using System;
|
|
using System.Globalization;
|
|
using System.Numerics;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Questionable.Controller.NavigationOverrides;
|
|
|
|
public sealed record AlternateLocation(Vector3 Point, bool RecalculateNavmesh)
|
|
{
|
|
public override string ToString()
|
|
{
|
|
IFormatProvider invariantCulture = CultureInfo.InvariantCulture;
|
|
DefaultInterpolatedStringHandler handler = new DefaultInterpolatedStringHandler(6, 4, invariantCulture);
|
|
handler.AppendFormatted("Point");
|
|
handler.AppendLiteral(": ");
|
|
handler.AppendFormatted(Point, "G");
|
|
handler.AppendLiteral(", ");
|
|
handler.AppendFormatted("RecalculateNavmesh");
|
|
handler.AppendLiteral(": ");
|
|
handler.AppendFormatted(RecalculateNavmesh);
|
|
return string.Create(invariantCulture, ref handler);
|
|
}
|
|
}
|