forked from aly/qstbak
muffin v7.5.11
This commit is contained in:
parent
addf2d530f
commit
3102923ce2
522 changed files with 41082 additions and 211592 deletions
|
|
@ -16,87 +16,34 @@ public sealed class SubRegionDefinition
|
|||
|
||||
public bool Contains(float x, float y, float z)
|
||||
{
|
||||
int num = ((!MinY.HasValue) ? 292211161 : 292211158);
|
||||
float x2 = default(float);
|
||||
float x3 = default(float);
|
||||
float z2 = default(float);
|
||||
float z3 = default(float);
|
||||
int count = default(int);
|
||||
int num7 = default(int);
|
||||
int index = default(int);
|
||||
bool flag = default(bool);
|
||||
while (true)
|
||||
if (MinY.HasValue && y < MinY.Value)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 292211164;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 9:
|
||||
num = ((!(x < (x2 - x3) * (z - z2) / (z3 - z2) + x3)) ? 292211166 : 292211160);
|
||||
break;
|
||||
case 10:
|
||||
num = ((!(y < MinY.Value)) ? 292211161 : 292211153);
|
||||
break;
|
||||
case 13:
|
||||
return false;
|
||||
case 8:
|
||||
count = Vertices.Count;
|
||||
num = ((count >= 3) ? 292211165 : 292211159);
|
||||
break;
|
||||
case 2:
|
||||
{
|
||||
int num9 = num7;
|
||||
num3 = 1;
|
||||
num4 = num9;
|
||||
num7 = (num4 | num3) + (num4 & num3);
|
||||
index = num9;
|
||||
num = 292211162;
|
||||
break;
|
||||
}
|
||||
case 11:
|
||||
return false;
|
||||
case 5:
|
||||
num = ((!MaxY.HasValue) ? 292211156 : 292211154);
|
||||
break;
|
||||
case 14:
|
||||
num = ((!(y > MaxY.Value)) ? 292211156 : 292211163);
|
||||
break;
|
||||
case 12:
|
||||
x3 = Vertices[num7].X;
|
||||
z2 = Vertices[num7].Z;
|
||||
x2 = Vertices[index].X;
|
||||
z3 = Vertices[index].Z;
|
||||
num = ((z2 > z == z3 > z) ? 292211166 : 292211157);
|
||||
break;
|
||||
case 3:
|
||||
return flag;
|
||||
case 1:
|
||||
{
|
||||
flag = false;
|
||||
num7 = 0;
|
||||
int num8 = count;
|
||||
num3 = 1;
|
||||
num4 = num8;
|
||||
index = ~(~num4 + num3);
|
||||
num = 292211162;
|
||||
break;
|
||||
}
|
||||
case 7:
|
||||
return false;
|
||||
case 0:
|
||||
num = 292211158;
|
||||
break;
|
||||
case 4:
|
||||
flag = !flag;
|
||||
num = 292211166;
|
||||
break;
|
||||
case 6:
|
||||
num = ((num7 < count) ? 292211152 : 292211167);
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (MaxY.HasValue && y > MaxY.Value)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
int count = Vertices.Count;
|
||||
if (count < 3)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool flag = false;
|
||||
int num = 0;
|
||||
int index = count - 1;
|
||||
while (num < count)
|
||||
{
|
||||
float x2 = Vertices[num].X;
|
||||
float z2 = Vertices[num].Z;
|
||||
float x3 = Vertices[index].X;
|
||||
float z3 = Vertices[index].Z;
|
||||
if (z2 > z != z3 > z && x < (x3 - x2) * (z - z2) / (z3 - z2) + x2)
|
||||
{
|
||||
flag = !flag;
|
||||
}
|
||||
index = num++;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,144 +1,7 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
public sealed record TriggerBox([property: JsonConverter(typeof(VectorConverter))] Vector3 Translation, [property: JsonConverter(typeof(VectorConverter))] Vector3 RotationRadians, [property: JsonConverter(typeof(VectorConverter))] Vector3 HalfExtents);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue