144 lines
8.8 KiB
C#
144 lines
8.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Numerics;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using System.Text.Json.Serialization;
|
|
using SmartNav.Model.Converter;
|
|
|
|
namespace SmartNav.Model.Navigation;
|
|
|
|
public sealed record TriggerBox([property: JsonConverter(typeof(VectorConverter))] Vector3 Translation, [property: JsonConverter(typeof(VectorConverter))] Vector3 RotationRadians, [property: JsonConverter(typeof(VectorConverter))] Vector3 HalfExtents)
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _202C_200C_206F_200E_206A_202B_202C_202D_206D_202E_200D_206F_202C_206E_202C_200F_202A_202A_206B_206F_202E_200C_200D_202E_206C_202E_202D_206B_200C_206E_200D_206B_200C_200B_206E_202E_200F_202B_206B_206A_202E(typeof(TriggerBox).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
public override string ToString()
|
|
{
|
|
StringBuilder stringBuilder = _200E_202D_206D_206F_206E_202D_202C_202E_206F_200C_206D_200C_200E_200F_200D_200B_202A_206A_206B_202B_206E_200E_206C_206C_202C_206E_206E_206C_200D_202D_206A_206F_200E_206A_206D_200B_206F_202B_200D_200E_202E();
|
|
_200C_206B_206B_202E_206C_206C_206D_202E_206A_200B_202C_200F_202C_200E_200E_206F_206C_206B_202C_202A_200F_206C_206D_206B_202B_206F_202C_202D_206E_200F_206A_202A_200F_200B_200C_200C_202B_202C_206F_200C_202E(stringBuilder, global::_003CModule_003E._200F_200F_202A_206D_200D_200C_206B_206A_200E_200B_206A_200D_206E_202C_200B_206D_200B_200B_202E_202B_202C_202A_206A_206C_206D_200F_206F_206E_206B_206C_206A_202D_206B_206C_200D_202B_206E_200E_202B_200F_202E<string>(-1856577442));
|
|
_200C_206B_206B_202E_206C_206C_206D_202E_206A_200B_202C_200F_202C_200E_200E_206F_206C_206B_202C_202A_200F_206C_206D_206B_202B_206F_202C_202D_206E_200F_206A_202A_200F_200B_200C_200C_202B_202C_206F_200C_202E(stringBuilder, global::_003CModule_003E._206D_200D_202D_200C_202B_206E_206A_206E_206E_202B_202D_200F_206E_202B_206D_200B_206E_202E_206E_206C_200C_200D_202E_206D_206D_200B_200D_202D_200F_206A_202B_200C_202A_202B_200E_202E_200B_202B_202B_206B_202E<string>(1971668142));
|
|
int num = ((!PrintMembers(stringBuilder)) ? (-1107916789) : (-1107916790));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1107916789;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
num = -1107916790;
|
|
break;
|
|
case 0:
|
|
_206A_200F_200C_200E_202E_206E_206C_206B_206A_206A_202A_202A_200E_206A_206E_200C_200F_202E_202D_202E_202E_202C_202D_200F_206B_206A_202A_202C_202C_206D_202E_200F_200F_206D_200F_206A_202E_206E_206A_206A_202E(stringBuilder, '}');
|
|
return _202E_202D_202A_200F_202D_200E_202B_206B_200C_202D_202D_200B_200C_202D_206B_200B_200D_202E_202C_206C_206D_200E_206F_202B_200C_202C_200D_200B_200B_206A_206C_202E_202A_202B_200E_200E_200C_202B_206F_200E_202E((object)stringBuilder);
|
|
case 1:
|
|
_206A_200F_200C_200E_202E_206E_206C_206B_206A_206A_202A_202A_200E_206A_206E_200C_200F_202E_202D_202E_202E_202C_202D_200F_206B_206A_202A_202C_202C_206D_202E_200F_200F_206D_200F_206A_202E_206E_206A_206A_202E(stringBuilder, ' ');
|
|
num = -1107916789;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_206D_202A_206A_200E_206E_200F_206E_200B_206E_206C_202D_206A_200B_200C_206E_202A_206E_202D_200B_202B_202D_200F_206C_202B_202A_206B_202C_202A_206A_200E_202D_206A_202B_202C_202E_202E_206E_206A_200F_200D_202E();
|
|
_200C_206B_206B_202E_206C_206C_206D_202E_206A_200B_202C_200F_202C_200E_200E_206F_206C_206B_202C_202A_200F_206C_206D_206B_202B_206F_202C_202D_206E_200F_206A_202A_200F_200B_200C_200C_202B_202C_206F_200C_202E(builder, global::_003CModule_003E._202D_200D_206E_202A_202C_202B_200E_202A_202D_202E_200E_200C_200D_206C_200B_206D_202D_202E_202B_202B_206C_202B_206F_202D_202B_200D_202E_200B_200F_206E_202C_202D_200C_206B_200C_206C_202A_202E_200E_200E_202E<string>(-1800837326));
|
|
_200C_206B_206B_202E_206C_206C_206D_202E_206A_200B_202C_200F_202C_200E_200E_206F_206C_206B_202C_202A_200F_206C_206D_206B_202B_206F_202C_202D_206E_200F_206A_202A_200F_200B_200C_200C_202B_202C_206F_200C_202E(builder, Translation.ToString());
|
|
_200C_206B_206B_202E_206C_206C_206D_202E_206A_200B_202C_200F_202C_200E_200E_206F_206C_206B_202C_202A_200F_206C_206D_206B_202B_206F_202C_202D_206E_200F_206A_202A_200F_200B_200C_200C_202B_202C_206F_200C_202E(builder, global::_003CModule_003E._202E_202B_202A_206F_202D_206F_206A_206B_202C_202B_202E_206D_202D_202E_200F_202B_200F_202A_200F_202C_200C_200B_206D_202E_200D_202D_206C_200F_206F_202D_200F_202E_200E_200E_200F_206C_202C_200B_202C_200C_202E<string>(-1782998798));
|
|
_200C_206B_206B_202E_206C_206C_206D_202E_206A_200B_202C_200F_202C_200E_200E_206F_206C_206B_202C_202A_200F_206C_206D_206B_202B_206F_202C_202D_206E_200F_206A_202A_200F_200B_200C_200C_202B_202C_206F_200C_202E(builder, RotationRadians.ToString());
|
|
_200C_206B_206B_202E_206C_206C_206D_202E_206A_200B_202C_200F_202C_200E_200E_206F_206C_206B_202C_202A_200F_206C_206D_206B_202B_206F_202C_202D_206E_200F_206A_202A_200F_200B_200C_200C_202B_202C_206F_200C_202E(builder, global::_003CModule_003E._202D_200D_206E_202A_202C_202B_200E_202A_202D_202E_200E_200C_200D_206C_200B_206D_202D_202E_202B_202B_206C_202B_206F_202D_202B_200D_202E_200B_200F_206E_202C_202D_200C_206B_200C_206C_202A_202E_200E_200E_202E<string>(-1061445733));
|
|
_200C_206B_206B_202E_206C_206C_206D_202E_206A_200B_202C_200F_202C_200E_200E_206F_206C_206B_202C_202A_200F_206C_206D_206B_202B_206F_202C_202D_206E_200F_206A_202A_200F_200B_200C_200C_202B_202C_206F_200C_202E(builder, HalfExtents.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(TriggerBox? other)
|
|
{
|
|
int num = (((object)this == other) ? (-1981901632) : (-1981901629));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1981901626;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 7:
|
|
num = -1981901629;
|
|
break;
|
|
case 0:
|
|
num = ((!_206C_206A_206D_202E_202C_202A_206C_206C_202E_200D_200D_206A_206E_202C_200D_202B_206F_206B_206E_200E_202E_200F_202E_206D_202D_206D_206F_202B_206F_206B_206B_206A_202E_200E_200D_202E_202A_206C_202B_202B_202E(EqualityContract, other.EqualityContract)) ? (-1981901630) : (-1981901627));
|
|
break;
|
|
case 5:
|
|
num = (((object)other == null) ? (-1981901630) : (-1981901626));
|
|
break;
|
|
case 6:
|
|
return true;
|
|
case 3:
|
|
num = ((!EqualityComparer<Vector3>.Default.Equals(Translation, other.Translation)) ? (-1981901630) : (-1981901628));
|
|
break;
|
|
case 4:
|
|
return false;
|
|
case 1:
|
|
return EqualityComparer<Vector3>.Default.Equals(HalfExtents, other.HalfExtents);
|
|
case 2:
|
|
num = ((!EqualityComparer<Vector3>.Default.Equals(RotationRadians, other.RotationRadians)) ? (-1981901630) : (-1981901625));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<TriggerBox>.Equals(TriggerBox? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _202C_200C_206F_200E_206A_202B_202C_202D_206D_202E_200D_206F_202C_206E_202C_200F_202A_202A_206B_206F_202E_200C_200D_202E_206C_202E_202D_206B_200C_206E_200D_206B_200C_200B_206E_202E_200F_202B_206B_206A_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static StringBuilder _200E_202D_206D_206F_206E_202D_202C_202E_206F_200C_206D_200C_200E_200F_200D_200B_202A_206A_206B_202B_206E_200E_206C_206C_202C_206E_206E_206C_200D_202D_206A_206F_200E_206A_206D_200B_206F_202B_200D_200E_202E()
|
|
{
|
|
return new StringBuilder();
|
|
}
|
|
|
|
static StringBuilder _200C_206B_206B_202E_206C_206C_206D_202E_206A_200B_202C_200F_202C_200E_200E_206F_206C_206B_202C_202A_200F_206C_206D_206B_202B_206F_202C_202D_206E_200F_206A_202A_200F_200B_200C_200C_202B_202C_206F_200C_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static StringBuilder _206A_200F_200C_200E_202E_206E_206C_206B_206A_206A_202A_202A_200E_206A_206E_200C_200F_202E_202D_202E_202E_202C_202D_200F_206B_206A_202A_202C_202C_206D_202E_200F_200F_206D_200F_206A_202E_206E_206A_206A_202E(StringBuilder P_0, char P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static string _202E_202D_202A_200F_202D_200E_202B_206B_200C_202D_202D_200B_200C_202D_206B_200B_200D_202E_202C_206C_206D_200E_206F_202B_200C_202C_200D_200B_200B_206A_206C_202E_202A_202B_200E_200E_200C_202B_206F_200E_202E(object P_0)
|
|
{
|
|
return P_0.ToString();
|
|
}
|
|
|
|
static void _206D_202A_206A_200E_206E_200F_206E_200B_206E_206C_202D_206A_200B_200C_206E_202A_206E_202D_200B_202B_202D_200F_206C_202B_202A_206B_202C_202A_206A_200E_202D_206A_202B_202C_202E_202E_206E_206A_200F_200D_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static bool _206C_206A_206D_202E_202C_202A_206C_206C_202E_200D_200D_206A_206E_202C_200D_202B_206F_206B_206E_200E_202E_200F_202E_206D_202D_206D_206F_202B_206F_206B_206B_206A_202E_200E_200D_202E_202A_206C_202B_202B_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|