muffin v7.5.11
This commit is contained in:
parent
addf2d530f
commit
3102923ce2
522 changed files with 41082 additions and 211592 deletions
|
|
@ -1,109 +1,3 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace LLib.Movement.Unstuck;
|
||||
|
||||
public readonly record struct RecoveryDecision(RecoveryDecisionKind Kind, IRecoveryRung? Rung, RecoveryExhaustion? Exhaustion)
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = _200C_206E_200E_206B_206B_202E_200D_206B_200B_200F_206F_206D_206F_200C_206A_206C_202A_206E_206D_200B_200F_202B_200B_206A_206D_206E_202E_206F_200D_206F_206F_202E_206E_202A_206B_200D_202A_202D_206C_200F_202E();
|
||||
_200C_202E_202C_206A_200C_206A_202A_206D_206E_206D_206A_206F_206F_206C_202C_206B_206A_202E_206F_202B_200D_200B_206F_202B_206F_206B_206E_200E_200F_206A_200E_202A_202C_202D_200C_202B_206C_206B_206D_202D_202E(stringBuilder, global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(74641930));
|
||||
_200C_202E_202C_206A_200C_206A_202A_206D_206E_206D_206A_206F_206F_206C_202C_206B_206A_202E_206F_202B_200D_200B_206F_202B_206F_206B_206E_200E_200F_206A_200E_202A_202C_202D_200C_202B_206C_206B_206D_202D_202E(stringBuilder, global::_003CModule_003E._206A_206D_202C_206E_206D_206E_202A_200F_200D_206A_200F_206C_202C_202D_206D_206A_200D_200F_206A_206C_202C_206D_206E_200F_200F_200C_206B_200B_206B_206E_202B_206B_200E_200E_200B_206F_200F_202E_200C_200C_202E<string>(1581517409));
|
||||
int num = ((!PrintMembers(stringBuilder)) ? 836946002 : 836946003);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 836946002;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
num = 836946003;
|
||||
break;
|
||||
case 0:
|
||||
_200F_202E_206E_202E_202C_206A_206D_200E_200B_206C_206C_206B_206F_206F_206F_206D_200C_202C_200D_200D_200D_202D_200B_202A_206C_202B_200B_200C_200C_206D_200D_206A_202A_200D_200D_202E_206D_206F_202E_202C_202E(stringBuilder, '}');
|
||||
return _200B_206A_206D_200D_206C_200B_206A_200E_206E_206D_200F_202C_200D_206A_202B_202C_202D_200B_206D_200B_200B_202A_202D_206B_202D_206B_206A_202B_206D_202A_206D_202C_202A_200B_206C_200D_200F_200C_200D_200C_202E((object?)stringBuilder);
|
||||
case 1:
|
||||
_200F_202E_206E_202E_202C_206A_206D_200E_200B_206C_206C_206B_206F_206F_206F_206D_200C_202C_200D_200D_200D_202D_200B_202A_206C_202B_200B_200C_200C_206D_200D_206A_202A_200D_200D_202E_206D_206F_202E_202C_202E(stringBuilder, ' ');
|
||||
num = 836946002;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_200C_202E_202C_206A_200C_206A_202A_206D_206E_206D_206A_206F_206F_206C_202C_206B_206A_202E_206F_202B_200D_200B_206F_202B_206F_206B_206E_200E_200F_206A_200E_202A_202C_202D_200C_202B_206C_206B_206D_202D_202E(builder, global::_003CModule_003E._206A_206D_202C_206E_206D_206E_202A_200F_200D_206A_200F_206C_202C_202D_206D_206A_200D_200F_206A_206C_202C_206D_206E_200F_200F_200C_206B_200B_206B_206E_202B_206B_200E_200E_200B_206F_200F_202E_200C_200C_202E<string>(-409624799));
|
||||
_200C_202E_202C_206A_200C_206A_202A_206D_206E_206D_206A_206F_206F_206C_202C_206B_206A_202E_206F_202B_200D_200B_206F_202B_206F_206B_206E_200E_200F_206A_200E_202A_202C_202D_200C_202B_206C_206B_206D_202D_202E(builder, Kind.ToString());
|
||||
_200C_202E_202C_206A_200C_206A_202A_206D_206E_206D_206A_206F_206F_206C_202C_206B_206A_202E_206F_202B_200D_200B_206F_202B_206F_206B_206E_200E_200F_206A_200E_202A_202C_202D_200C_202B_206C_206B_206D_202D_202E(builder, global::_003CModule_003E._200E_206F_206C_206C_200E_202A_206D_206B_200B_202D_202B_200F_200F_206B_206C_206F_202D_206F_206A_202D_206A_200B_200B_202B_202D_202C_200F_200D_202E_200E_200D_202A_202B_206F_202E_200E_200B_206B_200E_202E_202E<string>(1157142729));
|
||||
_202D_206A_206D_200C_200E_202A_202E_202D_202B_200F_200E_202E_200B_206C_206E_202E_200B_202B_206F_200B_200F_206A_206C_206C_200F_206B_206A_206C_202C_206B_206B_206C_206F_206C_202C_200C_202E_200E_200F_202A_202E(builder, (object?)Rung);
|
||||
_200C_202E_202C_206A_200C_206A_202A_206D_206E_206D_206A_206F_206F_206C_202C_206B_206A_202E_206F_202B_200D_200B_206F_202B_206F_206B_206E_200E_200F_206A_200E_202A_202C_202D_200C_202B_206C_206B_206D_202D_202E(builder, global::_003CModule_003E._200E_206F_206C_206C_200E_202A_206D_206B_200B_202D_202B_200F_200F_206B_206C_206F_202D_206F_206A_202D_206A_200B_200B_202B_202D_202C_200F_200D_202E_200E_200D_202A_202B_206F_202E_200E_200B_206B_200E_202E_202E<string>(-113611179));
|
||||
_202D_206A_206D_200C_200E_202A_202E_202D_202B_200F_200E_202E_200B_206C_206E_202E_200B_202B_206F_200B_200F_206A_206C_206C_200F_206B_206A_206C_202C_206B_206B_206C_206F_206C_202C_200C_202E_200E_200F_202A_202E(builder, (object?)Exhaustion);
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(RecoveryDecision other)
|
||||
{
|
||||
int num = ((!EqualityComparer<RecoveryDecisionKind>.Default.Equals(Kind, other.Kind)) ? 379657536 : 379657539);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 379657538;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 3:
|
||||
num = 379657539;
|
||||
break;
|
||||
case 0:
|
||||
return EqualityComparer<RecoveryExhaustion>.Default.Equals(Exhaustion, other.Exhaustion);
|
||||
case 2:
|
||||
return false;
|
||||
case 1:
|
||||
num = ((!EqualityComparer<IRecoveryRung>.Default.Equals(Rung, other.Rung)) ? 379657536 : 379657538);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<RecoveryDecision>.Equals(RecoveryDecision other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static StringBuilder? _200C_206E_200E_206B_206B_202E_200D_206B_200B_200F_206F_206D_206F_200C_206A_206C_202A_206E_206D_200B_200F_202B_200B_206A_206D_206E_202E_206F_200D_206F_206F_202E_206E_202A_206B_200D_202A_202D_206C_200F_202E()
|
||||
{
|
||||
return new StringBuilder();
|
||||
}
|
||||
|
||||
static StringBuilder? _200C_202E_202C_206A_200C_206A_202A_206D_206E_206D_206A_206F_206F_206C_202C_206B_206A_202E_206F_202B_200D_200B_206F_202B_206F_206B_206E_200E_200F_206A_200E_202A_202C_202D_200C_202B_206C_206B_206D_202D_202E(StringBuilder? P_0, string? P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder? _200F_202E_206E_202E_202C_206A_206D_200E_200B_206C_206C_206B_206F_206F_206F_206D_200C_202C_200D_200D_200D_202D_200B_202A_206C_202B_200B_200C_200C_206D_200D_206A_202A_200D_200D_202E_206D_206F_202E_202C_202E(StringBuilder? P_0, char P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static string? _200B_206A_206D_200D_206C_200B_206A_200E_206E_206D_200F_202C_200D_206A_202B_202C_202D_200B_206D_200B_200B_202A_202D_206B_202D_206B_206A_202B_206D_202A_206D_202C_202A_200B_206C_200D_200F_200C_200D_200C_202E(object? P_0)
|
||||
{
|
||||
return P_0.ToString();
|
||||
}
|
||||
|
||||
static StringBuilder? _202D_206A_206D_200C_200E_202A_202E_202D_202B_200F_200E_202E_200B_206C_206E_202E_200B_202B_206F_200B_200F_206A_206C_206C_200F_206B_206A_206C_202C_206B_206B_206C_206F_206C_202C_200C_202E_200E_200F_202A_202E(StringBuilder? P_0, object? P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
}
|
||||
public readonly record struct RecoveryDecision(RecoveryDecisionKind Kind, IRecoveryRung? Rung, RecoveryExhaustion? Exhaustion);
|
||||
|
|
|
|||
|
|
@ -1,153 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace LLib.Movement.Unstuck;
|
||||
|
||||
public sealed record RecoveryExhaustion(int Attempts, IReadOnlyList<string> RungsFired, long FirstStallMs, long LastStallMs)
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _200F_206F_206F_202A_202B_206F_200B_202A_200E_202C_206A_200E_200E_200F_200C_200E_206B_206A_206B_200F_206C_200E_206E_206E_200B_206F_202C_202C_202B_202B_200E_202A_206E_202C_202A_202D_206F_202A_200E_200D_202E(typeof(RecoveryExhaustion).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = _202E_206B_206F_206E_200B_206D_206E_200E_200E_200B_202B_206A_206B_206E_206A_206B_202C_206C_202C_206C_202C_206D_206C_206B_202B_200B_200C_206F_202A_200D_206C_202B_206C_206B_200C_200B_206D_200E_202E_206D_202E();
|
||||
_206C_206D_200C_202C_206F_206A_202E_202D_202B_200D_200F_200F_200F_200F_202E_202E_200F_200F_202E_200E_206A_202D_200B_200E_200B_202D_202E_200F_200E_202A_206E_200E_206A_202D_206A_206D_206B_202A_200E_206E_202E(stringBuilder, global::_003CModule_003E._206A_202C_200C_206F_202A_200C_200F_206F_202B_202B_200D_206F_206D_200E_206A_206B_202A_200F_200B_206C_202B_202A_202B_206C_200F_206C_202C_202C_200C_206C_206F_200C_200B_202D_200E_202A_202A_206B_206B_200F_202E<string>(-390353260));
|
||||
_206C_206D_200C_202C_206F_206A_202E_202D_202B_200D_200F_200F_200F_200F_202E_202E_200F_200F_202E_200E_206A_202D_200B_200E_200B_202D_202E_200F_200E_202A_206E_200E_206A_202D_206A_206D_206B_202A_200E_206E_202E(stringBuilder, global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(1148273145));
|
||||
int num = ((!PrintMembers(stringBuilder)) ? (-834076820) : (-834076819));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -834076820;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
num = -834076819;
|
||||
break;
|
||||
case 0:
|
||||
_206D_202C_200C_206A_200B_206C_202B_202B_202B_200E_202C_206C_206A_200D_200E_200D_206E_200B_200E_206D_206C_200B_200E_202B_206C_200D_200D_206C_206C_200E_202B_200C_200E_200F_206A_206E_206C_202E_202C_206A_202E(stringBuilder, '}');
|
||||
return _200B_202D_202D_200B_206A_202A_202A_206B_206C_206C_200D_206E_206C_206E_206C_206F_206C_202E_200D_200E_202D_202C_206D_200B_200B_206C_202E_206D_200C_206D_206B_202A_206C_200F_202A_206D_200D_206B_200D_206E_202E((object)stringBuilder);
|
||||
case 1:
|
||||
_206D_202C_200C_206A_200B_206C_202B_202B_202B_200E_202C_206C_206A_200D_200E_200D_206E_200B_200E_206D_206C_200B_200E_202B_206C_200D_200D_206C_206C_200E_202B_200C_200E_200F_206A_206E_206C_202E_202C_206A_202E(stringBuilder, ' ');
|
||||
num = -834076820;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_206C_200B_200F_206F_206E_206F_202D_206D_206C_202D_206E_202A_200E_206D_202C_206D_202C_200C_206E_202C_200F_206F_206B_200E_200F_206B_206A_200B_202A_206A_206B_206A_206F_206C_200B_202D_206D_200D_202E_202E();
|
||||
_206C_206D_200C_202C_206F_206A_202E_202D_202B_200D_200F_200F_200F_200F_202E_202E_200F_200F_202E_200E_206A_202D_200B_200E_200B_202D_202E_200F_200E_202A_206E_200E_206A_202D_206A_206D_206B_202A_200E_206E_202E(builder, global::_003CModule_003E._206A_206D_202C_206E_206D_206E_202A_200F_200D_206A_200F_206C_202C_202D_206D_206A_200D_200F_206A_206C_202C_206D_206E_200F_200F_200C_206B_200B_206B_206E_202B_206B_200E_200E_200B_206F_200F_202E_200C_200C_202E<string>(-53828862));
|
||||
_206C_206D_200C_202C_206F_206A_202E_202D_202B_200D_200F_200F_200F_200F_202E_202E_200F_200F_202E_200E_206A_202D_200B_200E_200B_202D_202E_200F_200E_202A_206E_200E_206A_202D_206A_206D_206B_202A_200E_206E_202E(builder, Attempts.ToString());
|
||||
_206C_206D_200C_202C_206F_206A_202E_202D_202B_200D_200F_200F_200F_200F_202E_202E_200F_200F_202E_200E_206A_202D_200B_200E_200B_202D_202E_200F_200E_202A_206E_200E_206A_202D_206A_206D_206B_202A_200E_206E_202E(builder, global::_003CModule_003E._200E_206F_206C_206C_200E_202A_206D_206B_200B_202D_202B_200F_200F_206B_206C_206F_202D_206F_206A_202D_206A_200B_200B_202B_202D_202C_200F_200D_202E_200E_200D_202A_202B_206F_202E_200E_200B_206B_200E_202E_202E<string>(-596316751));
|
||||
_200D_202A_200F_200E_206A_202C_202A_200F_206C_200F_200B_206C_202E_200E_200B_206D_206F_200B_206B_202C_200C_202D_200C_202B_206E_200C_206D_200F_202B_202D_206E_206B_200E_206A_200B_206E_200C_206F_206D_202E_202E(builder, (object)RungsFired);
|
||||
_206C_206D_200C_202C_206F_206A_202E_202D_202B_200D_200F_200F_200F_200F_202E_202E_200F_200F_202E_200E_206A_202D_200B_200E_200B_202D_202E_200F_200E_202A_206E_200E_206A_202D_206A_206D_206B_202A_200E_206E_202E(builder, global::_003CModule_003E._206E_202B_206C_202A_202A_200E_202B_202B_206D_200B_200C_206B_200B_206D_202E_202D_206C_202B_200B_206A_202D_206C_202A_200F_202D_200C_200B_200B_200B_200D_202C_206E_206D_202E_200C_206B_206A_206D_202D_202C_202E<string>(118713089));
|
||||
_206C_206D_200C_202C_206F_206A_202E_202D_202B_200D_200F_200F_200F_200F_202E_202E_200F_200F_202E_200E_206A_202D_200B_200E_200B_202D_202E_200F_200E_202A_206E_200E_206A_202D_206A_206D_206B_202A_200E_206E_202E(builder, FirstStallMs.ToString());
|
||||
_206C_206D_200C_202C_206F_206A_202E_202D_202B_200D_200F_200F_200F_200F_202E_202E_200F_200F_202E_200E_206A_202D_200B_200E_200B_202D_202E_200F_200E_202A_206E_200E_206A_202D_206A_206D_206B_202A_200E_206E_202E(builder, global::_003CModule_003E._206A_206D_202C_206E_206D_206E_202A_200F_200D_206A_200F_206C_202C_202D_206D_206A_200D_200F_206A_206C_202C_206D_206E_200F_200F_200C_206B_200B_206B_206E_202B_206B_200E_200E_200B_206F_200F_202E_200C_200C_202E<string>(616880075));
|
||||
_206C_206D_200C_202C_206F_206A_202E_202D_202B_200D_200F_200F_200F_200F_202E_202E_200F_200F_202E_200E_206A_202D_200B_200E_200B_202D_202E_200F_200E_202A_206E_200E_206A_202D_206A_206D_206B_202A_200E_206E_202E(builder, LastStallMs.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(RecoveryExhaustion? other)
|
||||
{
|
||||
int num = (((object)this == other) ? (-542937588) : (-542937600));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -542937596;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 3:
|
||||
return EqualityComparer<long>.Default.Equals(LastStallMs, other.LastStallMs);
|
||||
case 1:
|
||||
return false;
|
||||
case 2:
|
||||
num = ((!_202B_200F_202A_206D_206D_200B_206D_200D_202E_200F_200D_206E_200F_202C_206C_206E_206E_200B_206F_200B_206F_202B_200E_202E_206C_202C_206A_200E_200E_206C_202C_200F_206E_206E_206F_200C_200C_206E_206B_200E_202E(EqualityContract, other.EqualityContract)) ? (-542937595) : (-542937596));
|
||||
break;
|
||||
case 0:
|
||||
num = ((!EqualityComparer<int>.Default.Equals(Attempts, other.Attempts)) ? (-542937595) : (-542937597));
|
||||
break;
|
||||
case 8:
|
||||
return true;
|
||||
case 6:
|
||||
num = ((!EqualityComparer<long>.Default.Equals(FirstStallMs, other.FirstStallMs)) ? (-542937595) : (-542937593));
|
||||
break;
|
||||
case 7:
|
||||
num = ((!EqualityComparer<IReadOnlyList<string>>.Default.Equals(RungsFired, other.RungsFired)) ? (-542937595) : (-542937598));
|
||||
break;
|
||||
case 4:
|
||||
num = (((object)other == null) ? (-542937595) : (-542937594));
|
||||
break;
|
||||
case 5:
|
||||
num = -542937600;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<RecoveryExhaustion>.Equals(RecoveryExhaustion? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _200F_206F_206F_202A_202B_206F_200B_202A_200E_202C_206A_200E_200E_200F_200C_200E_206B_206A_206B_200F_206C_200E_206E_206E_200B_206F_202C_202C_202B_202B_200E_202A_206E_202C_202A_202D_206F_202A_200E_200D_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static StringBuilder _202E_206B_206F_206E_200B_206D_206E_200E_200E_200B_202B_206A_206B_206E_206A_206B_202C_206C_202C_206C_202C_206D_206C_206B_202B_200B_200C_206F_202A_200D_206C_202B_206C_206B_200C_200B_206D_200E_202E_206D_202E()
|
||||
{
|
||||
return new StringBuilder();
|
||||
}
|
||||
|
||||
static StringBuilder _206C_206D_200C_202C_206F_206A_202E_202D_202B_200D_200F_200F_200F_200F_202E_202E_200F_200F_202E_200E_206A_202D_200B_200E_200B_202D_202E_200F_200E_202A_206E_200E_206A_202D_206A_206D_206B_202A_200E_206E_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _206D_202C_200C_206A_200B_206C_202B_202B_202B_200E_202C_206C_206A_200D_200E_200D_206E_200B_200E_206D_206C_200B_200E_202B_206C_200D_200D_206C_206C_200E_202B_200C_200E_200F_206A_206E_206C_202E_202C_206A_202E(StringBuilder P_0, char P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static string _200B_202D_202D_200B_206A_202A_202A_206B_206C_206C_200D_206E_206C_206E_206C_206F_206C_202E_200D_200E_202D_202C_206D_200B_200B_206C_202E_206D_200C_206D_206B_202A_206C_200F_202A_206D_200D_206B_200D_206E_202E(object P_0)
|
||||
{
|
||||
return P_0.ToString();
|
||||
}
|
||||
|
||||
static void _206C_200B_200F_206F_206E_206F_202D_206D_206C_202D_206E_202A_200E_206D_202C_206D_202C_200C_206E_202C_200F_206F_206B_200E_200F_206B_206A_200B_202A_206A_206B_206A_206F_206C_200B_202D_206D_200D_202E_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static StringBuilder _200D_202A_200F_200E_206A_202C_202A_200F_206C_200F_200B_206C_202E_200E_200B_206D_206F_200B_206B_202C_200C_202D_200C_202B_206E_200C_206D_200F_202B_202D_206E_206B_200E_206A_200B_206E_200C_206F_206D_202E_202E(StringBuilder P_0, object P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _202B_200F_202A_206D_206D_200B_206D_200D_202E_200F_200D_206E_200F_202C_206C_206E_206E_200B_206F_200B_206F_202B_200E_202E_206C_202C_206A_200E_200E_206C_202C_200F_206E_206E_206F_200C_200C_206E_206B_200E_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
}
|
||||
}
|
||||
public sealed record RecoveryExhaustion(int Attempts, IReadOnlyList<string> RungsFired, long FirstStallMs, long LastStallMs);
|
||||
|
|
|
|||
|
|
@ -25,47 +25,12 @@ public sealed class RecoveryLadder
|
|||
|
||||
public bool IsExhausted { get; private set; }
|
||||
|
||||
private int Cap
|
||||
private int Cap => _003Coptions_003EP.Mode switch
|
||||
{
|
||||
get
|
||||
{
|
||||
RecoveryMode mode = _003Coptions_003EP.Mode;
|
||||
int num = ((mode == RecoveryMode.Aggressive) ? (-304547260) : (-304547257));
|
||||
int result = default(int);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -304547258;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 4:
|
||||
result = _003Coptions_003EP.PassiveCap;
|
||||
num = -304547258;
|
||||
break;
|
||||
case 1:
|
||||
num = ((mode == RecoveryMode.Passive) ? (-304547262) : (-304547264));
|
||||
break;
|
||||
case 6:
|
||||
num = -304547261;
|
||||
break;
|
||||
case 2:
|
||||
result = _003Coptions_003EP.AggressiveCap;
|
||||
num = -304547258;
|
||||
break;
|
||||
case 5:
|
||||
result = _003Coptions_003EP.ConservativeCap;
|
||||
num = -304547258;
|
||||
break;
|
||||
case 3:
|
||||
num = -304547257;
|
||||
break;
|
||||
case 0:
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
RecoveryMode.Aggressive => _003Coptions_003EP.AggressiveCap,
|
||||
RecoveryMode.Passive => _003Coptions_003EP.PassiveCap,
|
||||
_ => _003Coptions_003EP.ConservativeCap,
|
||||
};
|
||||
|
||||
public RecoveryLadder(RecoveryLadderOptions options, IReadOnlyList<IRecoveryRung> rungs)
|
||||
{
|
||||
|
|
@ -79,91 +44,39 @@ public sealed class RecoveryLadder
|
|||
|
||||
public RecoveryDecision OnStall(long nowMs)
|
||||
{
|
||||
int num = ((!IsExhausted) ? 1754338781 : 1754338772);
|
||||
IRecoveryRung recoveryRung = default(IRecoveryRung);
|
||||
int num7 = default(int);
|
||||
while (true)
|
||||
if (IsExhausted)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1754338771;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
return new RecoveryDecision(RecoveryDecisionKind.None, null, null);
|
||||
}
|
||||
if (Attempts >= Cap)
|
||||
{
|
||||
IsExhausted = true;
|
||||
return new RecoveryDecision(RecoveryDecisionKind.Exhausted, null, new RecoveryExhaustion(Attempts, _rungsFired.ToArray(), _firstStallMs, _lastStallMs));
|
||||
}
|
||||
if (_hasRunAny && nowMs - _lastRunAnyMs < _003Coptions_003EP.GlobalCooldownMs)
|
||||
{
|
||||
return new RecoveryDecision(RecoveryDecisionKind.None, null, null);
|
||||
}
|
||||
if (_003Coptions_003EP.Mode == RecoveryMode.Passive)
|
||||
{
|
||||
Consume(nowMs);
|
||||
return new RecoveryDecision(RecoveryDecisionKind.Observe, null, null);
|
||||
}
|
||||
for (int i = 0; i < _rungs.Length; i++)
|
||||
{
|
||||
IRecoveryRung recoveryRung = _rungs[i];
|
||||
if ((!_hasRun[i] || nowMs - _lastRunMs[i] >= recoveryRung.CooldownMs) && recoveryRung.CanRun(Attempts + 1, nowMs))
|
||||
{
|
||||
case 9:
|
||||
{
|
||||
long num8 = _lastRunAnyMs;
|
||||
long num9 = nowMs;
|
||||
num = ((~(~num9 + num8) >= _003Coptions_003EP.GlobalCooldownMs) ? 1754338774 : 1754338768);
|
||||
break;
|
||||
}
|
||||
case 0:
|
||||
num = ((!_hasRunAny) ? 1754338774 : 1754338778);
|
||||
break;
|
||||
case 14:
|
||||
num = ((Attempts < Cap) ? 1754338771 : 1754338783);
|
||||
break;
|
||||
case 16:
|
||||
num = ((!recoveryRung.CanRun(Attempts + 1, nowMs)) ? 1754338773 : 1754338782);
|
||||
break;
|
||||
case 10:
|
||||
recoveryRung = _rungs[num7];
|
||||
num = ((!_hasRun[num7]) ? 1754338755 : 1754338776);
|
||||
break;
|
||||
case 4:
|
||||
num = 1754338772;
|
||||
break;
|
||||
case 13:
|
||||
Consume(nowMs);
|
||||
_rungsFired.Add(recoveryRung.Name);
|
||||
_hasRun[num7] = true;
|
||||
_lastRunMs[num7] = nowMs;
|
||||
_hasRun[i] = true;
|
||||
_lastRunMs[i] = nowMs;
|
||||
_hasRunAny = true;
|
||||
_lastRunAnyMs = nowMs;
|
||||
return new RecoveryDecision(RecoveryDecisionKind.Run, recoveryRung, null);
|
||||
case 6:
|
||||
{
|
||||
int num10 = num7;
|
||||
num3 = 1;
|
||||
num4 = num10;
|
||||
int num11 = num4 ^ num3;
|
||||
int num12 = num4 & num3;
|
||||
num7 = num11 + (num12 + num12);
|
||||
num = 1754338769;
|
||||
break;
|
||||
}
|
||||
case 12:
|
||||
IsExhausted = true;
|
||||
return new RecoveryDecision(RecoveryDecisionKind.Exhausted, null, new RecoveryExhaustion(Attempts, _rungsFired.ToArray(), _firstStallMs, _lastStallMs));
|
||||
case 1:
|
||||
Consume(nowMs);
|
||||
return new RecoveryDecision(RecoveryDecisionKind.Observe, null, null);
|
||||
case 5:
|
||||
num = ((_003Coptions_003EP.Mode != RecoveryMode.Passive) ? 1754338779 : 1754338770);
|
||||
break;
|
||||
case 11:
|
||||
{
|
||||
long num8 = _lastRunMs[num7];
|
||||
long num9 = nowMs;
|
||||
num = ((~(~num9 + num8) < recoveryRung.CooldownMs) ? 1754338773 : 1754338755);
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
return new RecoveryDecision(RecoveryDecisionKind.None, null, null);
|
||||
case 2:
|
||||
num = ((num7 < _rungs.Length) ? 1754338777 : 1754338780);
|
||||
break;
|
||||
case 15:
|
||||
return new RecoveryDecision(RecoveryDecisionKind.None, null, null);
|
||||
case 7:
|
||||
return new RecoveryDecision(RecoveryDecisionKind.None, null, null);
|
||||
case 8:
|
||||
num7 = 0;
|
||||
num = 1754338769;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return new RecoveryDecision(RecoveryDecisionKind.None, null, null);
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
|
|
@ -172,70 +85,19 @@ public sealed class RecoveryLadder
|
|||
IsExhausted = false;
|
||||
_rungsFired.Clear();
|
||||
_hasRunAny = false;
|
||||
int num = 0;
|
||||
int num2 = -478483629;
|
||||
while (true)
|
||||
for (int i = 0; i < _hasRun.Length; i++)
|
||||
{
|
||||
int num3 = num2;
|
||||
int num4 = -478483631;
|
||||
int num5 = num3;
|
||||
int num6 = num5 + num4;
|
||||
int num7 = num5 & num4;
|
||||
switch (num6 - (num7 + num7))
|
||||
{
|
||||
case 0:
|
||||
return;
|
||||
case 2:
|
||||
num2 = ((num < _hasRun.Length) ? (-478483632) : (-478483631));
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
_hasRun[num] = false;
|
||||
int num8 = num;
|
||||
num4 = 1;
|
||||
num5 = num8;
|
||||
int num9 = num5 ^ num4;
|
||||
int num10 = num5 & num4;
|
||||
num = num9 + (num10 + num10);
|
||||
num2 = -478483629;
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
num2 = -478483629;
|
||||
break;
|
||||
}
|
||||
_hasRun[i] = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void Consume(long nowMs)
|
||||
{
|
||||
int num = ((Attempts != 0) ? 1659706856 : 1659706857);
|
||||
while (true)
|
||||
if (Attempts == 0)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1659706856;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
num = 1659706857;
|
||||
break;
|
||||
case 1:
|
||||
_firstStallMs = nowMs;
|
||||
num = 1659706856;
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
int attempts = Attempts;
|
||||
num3 = 1;
|
||||
num4 = attempts;
|
||||
Attempts = (num4 | num3) + (num4 & num3);
|
||||
_lastStallMs = nowMs;
|
||||
return;
|
||||
}
|
||||
}
|
||||
_firstStallMs = nowMs;
|
||||
}
|
||||
Attempts++;
|
||||
_lastStallMs = nowMs;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,22 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace LLib.Movement.Unstuck;
|
||||
|
||||
public sealed record RecoveryLadderOptions
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _200E_200F_202D_206F_200E_202B_206A_206E_206C_202A_200D_202B_206E_202C_202E_200D_202E_202D_200C_202D_202E_200B_206A_206B_206F_200E_202B_200C_206F_206E_200F_200E_200F_202C_200B_202A_202D_202C_200C_206A_202E(typeof(RecoveryLadderOptions).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
public RecoveryMode Mode { get; init; } = RecoveryMode.Conservative;
|
||||
|
||||
public int AggressiveCap { get; init; } = 10;
|
||||
|
|
@ -26,138 +11,4 @@ public sealed record RecoveryLadderOptions
|
|||
public int PassiveCap { get; init; } = 2;
|
||||
|
||||
public long GlobalCooldownMs { get; init; } = 3000L;
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = _206E_206D_202C_202E_200B_202D_200E_202D_206F_206A_206E_206A_202B_202A_206C_206B_206D_200F_206D_200F_200B_206D_200C_200F_202B_202A_206D_200C_200B_206D_200D_202C_202E_206A_202D_206A_202D_202E_206B_202D_202E();
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(stringBuilder, global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(-1014979507));
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(stringBuilder, global::_003CModule_003E._206E_202B_206C_202A_202A_200E_202B_202B_206D_200B_200C_206B_200B_206D_202E_202D_206C_202B_200B_206A_202D_206C_202A_200F_202D_200C_200B_200B_200B_200D_202C_206E_206D_202E_200C_206B_206A_206D_202D_202C_202E<string>(1808631505));
|
||||
int num = ((!PrintMembers(stringBuilder)) ? 128748061 : 128748062);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 128748063;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
num = 128748062;
|
||||
break;
|
||||
case 2:
|
||||
_200D_202B_206E_206C_206E_206F_200F_200D_200F_200E_200B_206C_202E_206D_202D_206C_206A_200C_202D_200D_200E_206F_206E_200F_202A_202B_202D_202A_202B_202D_202E_200E_206C_200E_202D_206E_200B_206B_202E_202E(stringBuilder, '}');
|
||||
return _200B_202B_200E_202E_200F_202D_206E_202B_200B_202B_200D_200C_200C_202D_200F_202B_200E_202E_206E_202B_206B_200B_200E_202E_202A_200E_200D_202B_200F_202A_200E_206D_206E_202D_202B_202C_202E_200D_202D_206B_202E((object)stringBuilder);
|
||||
case 1:
|
||||
_200D_202B_206E_206C_206E_206F_200F_200D_200F_200E_200B_206C_202E_206D_202D_206C_206A_200C_202D_200D_200E_206F_206E_200F_202A_202B_202D_202A_202B_202D_202E_200E_206C_200E_202D_206E_200B_206B_202E_202E(stringBuilder, ' ');
|
||||
num = 128748061;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_206C_206D_206F_206A_202D_206A_206F_206C_206D_202E_200E_200D_202D_206B_200B_200D_206E_200F_202B_206A_200E_202A_206D_206F_206B_206B_202A_202E_206B_206E_206A_206F_200F_200F_200D_206B_200E_206C_200D_206F_202E();
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(builder, global::_003CModule_003E._200E_206F_206C_206C_200E_202A_206D_206B_200B_202D_202B_200F_200F_206B_206C_206F_202D_206F_206A_202D_206A_200B_200B_202B_202D_202C_200F_200D_202E_200E_200D_202A_202B_206F_202E_200E_200B_206B_200E_202E_202E<string>(-537195815));
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(builder, Mode.ToString());
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(builder, global::_003CModule_003E._206E_202B_206C_202A_202A_200E_202B_202B_206D_200B_200C_206B_200B_206D_202E_202D_206C_202B_200B_206A_202D_206C_202A_200F_202D_200C_200B_200B_200B_200D_202C_206E_206D_202E_200C_206B_206A_206D_202D_202C_202E<string>(-1738569869));
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(builder, AggressiveCap.ToString());
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(builder, global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(1436744253));
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(builder, ConservativeCap.ToString());
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(builder, global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(56536959));
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(builder, PassiveCap.ToString());
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(builder, global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(1236985358));
|
||||
_202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(builder, GlobalCooldownMs.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(RecoveryLadderOptions? other)
|
||||
{
|
||||
int num = (((object)this == other) ? (-1889404605) : (-1889404604));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1889404603;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
num = ((!EqualityComparer<int>.Default.Equals(PassiveCap, other.PassiveCap)) ? (-1889404595) : (-1889404601));
|
||||
break;
|
||||
case 9:
|
||||
num = ((!_206D_202D_206B_200C_200C_200F_200E_202D_202D_206F_202A_200F_206D_200E_202B_200E_202A_206C_206B_206E_202C_200C_200B_206C_202A_202D_202A_202D_202D_206F_200F_206C_202B_200B_200F_202B_206A_202D_206D_206B_202E(EqualityContract, other.EqualityContract)) ? (-1889404595) : (-1889404607));
|
||||
break;
|
||||
case 3:
|
||||
num = ((!EqualityComparer<int>.Default.Equals(ConservativeCap, other.ConservativeCap)) ? (-1889404595) : (-1889404603));
|
||||
break;
|
||||
case 7:
|
||||
num = ((!EqualityComparer<int>.Default.Equals(AggressiveCap, other.AggressiveCap)) ? (-1889404595) : (-1889404602));
|
||||
break;
|
||||
case 8:
|
||||
return false;
|
||||
case 1:
|
||||
num = (((object)other == null) ? (-1889404595) : (-1889404596));
|
||||
break;
|
||||
case 6:
|
||||
return true;
|
||||
case 2:
|
||||
return EqualityComparer<long>.Default.Equals(GlobalCooldownMs, other.GlobalCooldownMs);
|
||||
case 5:
|
||||
num = -1889404604;
|
||||
break;
|
||||
case 4:
|
||||
num = ((!EqualityComparer<RecoveryMode>.Default.Equals(Mode, other.Mode)) ? (-1889404595) : (-1889404606));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<RecoveryLadderOptions>.Equals(RecoveryLadderOptions? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _200E_200F_202D_206F_200E_202B_206A_206E_206C_202A_200D_202B_206E_202C_202E_200D_202E_202D_200C_202D_202E_200B_206A_206B_206F_200E_202B_200C_206F_206E_200F_200E_200F_202C_200B_202A_202D_202C_200C_206A_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static StringBuilder _206E_206D_202C_202E_200B_202D_200E_202D_206F_206A_206E_206A_202B_202A_206C_206B_206D_200F_206D_200F_200B_206D_200C_200F_202B_202A_206D_200C_200B_206D_200D_202C_202E_206A_202D_206A_202D_202E_206B_202D_202E()
|
||||
{
|
||||
return new StringBuilder();
|
||||
}
|
||||
|
||||
static StringBuilder _202C_206D_202E_200E_202D_206D_206F_200E_200E_200E_206F_200B_206E_202A_206C_200C_206E_200E_202C_200C_206F_202B_206B_206A_200C_200C_200F_202B_206B_206D_206B_206B_202B_200F_206F_202E_200E_202E_200F_202C_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _200D_202B_206E_206C_206E_206F_200F_200D_200F_200E_200B_206C_202E_206D_202D_206C_206A_200C_202D_200D_200E_206F_206E_200F_202A_202B_202D_202A_202B_202D_202E_200E_206C_200E_202D_206E_200B_206B_202E_202E(StringBuilder P_0, char P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static string _200B_202B_200E_202E_200F_202D_206E_202B_200B_202B_200D_200C_200C_202D_200F_202B_200E_202E_206E_202B_206B_200B_200E_202E_202A_200E_200D_202B_200F_202A_200E_206D_206E_202D_202B_202C_202E_200D_202D_206B_202E(object P_0)
|
||||
{
|
||||
return P_0.ToString();
|
||||
}
|
||||
|
||||
static void _206C_206D_206F_206A_202D_206A_206F_206C_206D_202E_200E_200D_202D_206B_200B_200D_206E_200F_202B_206A_200E_202A_206D_206F_206B_206B_202A_202E_206B_206E_206A_206F_200F_200F_200D_206B_200E_206C_200D_206F_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static bool _206D_202D_206B_200C_200C_200F_200E_202D_202D_206F_202A_200F_206D_200E_202B_200E_202A_206C_206B_206E_202C_200C_200B_206C_202A_202D_202A_202D_202D_206F_200F_206C_202B_200B_200F_202B_206A_202D_206D_206B_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,58 +25,22 @@ public sealed class StallDetector(StallDetectorOptions options)
|
|||
|
||||
public StallVerdict? Observe(in StallSample sample)
|
||||
{
|
||||
int num = (sample.Driving ? 860999294 : 860999280);
|
||||
bool flag = default(bool);
|
||||
while (true)
|
||||
if (!sample.Driving)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 860999289;
|
||||
int num4 = num2;
|
||||
int num5;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 8:
|
||||
num5 = (sample.DistanceToTarget.HasValue ? 1 : 0);
|
||||
goto IL_0163;
|
||||
case 4:
|
||||
num = ((sample.TimestampMs - _lastDrivenMs > options.ContinuityGapMs) ? 860999295 : 860999282);
|
||||
break;
|
||||
case 1:
|
||||
return ObserveProgress(in sample);
|
||||
case 11:
|
||||
num = ((sample.Mode != _anchorMode) ? 860999295 : 860999289);
|
||||
break;
|
||||
case 10:
|
||||
return ObserveDisplacement(in sample);
|
||||
case 7:
|
||||
num = ((sample.Mode == DriveMode.Ground) ? 860999292 : 860999281);
|
||||
break;
|
||||
case 2:
|
||||
num = 860999280;
|
||||
break;
|
||||
case 6:
|
||||
Anchor(in sample, flag);
|
||||
return null;
|
||||
case 9:
|
||||
return null;
|
||||
case 0:
|
||||
num = ((flag == _anchorUsesProgress) ? 860999290 : 860999295);
|
||||
break;
|
||||
case 5:
|
||||
num5 = 0;
|
||||
goto IL_0163;
|
||||
case 3:
|
||||
{
|
||||
_lastDrivenMs = sample.TimestampMs;
|
||||
num = (flag ? 860999288 : 860999283);
|
||||
break;
|
||||
}
|
||||
IL_0163:
|
||||
flag = (byte)num5 != 0;
|
||||
num = ((!_hasAnchor) ? 860999295 : 860999293);
|
||||
break;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
bool flag = sample.Mode != DriveMode.Ground && sample.DistanceToTarget.HasValue;
|
||||
if (!_hasAnchor || sample.TimestampMs - _lastDrivenMs > options.ContinuityGapMs || sample.Mode != _anchorMode || flag != _anchorUsesProgress)
|
||||
{
|
||||
Anchor(in sample, flag);
|
||||
return null;
|
||||
}
|
||||
_lastDrivenMs = sample.TimestampMs;
|
||||
if (!flag)
|
||||
{
|
||||
return ObserveDisplacement(in sample);
|
||||
}
|
||||
return ObserveProgress(in sample);
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
|
|
@ -88,118 +52,53 @@ public sealed class StallDetector(StallDetectorOptions options)
|
|||
private StallVerdict? ObserveProgress(in StallSample sample)
|
||||
{
|
||||
float value = sample.DistanceToTarget.Value;
|
||||
int num = ((!(value < _bestDistance)) ? 755996687 : 755996681);
|
||||
long num7 = default(long);
|
||||
float num8 = default(float);
|
||||
while (true)
|
||||
if (value < _bestDistance)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 755996685;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
num = 755996681;
|
||||
break;
|
||||
case 3:
|
||||
return null;
|
||||
case 6:
|
||||
return Trip(in sample, num7, num8);
|
||||
case 2:
|
||||
num8 = _referenceBestDistance - _bestDistance;
|
||||
num = ((!(num8 >= options.ProgressImprovementThreshold)) ? 755996684 : 755996680);
|
||||
break;
|
||||
case 5:
|
||||
_referenceBestDistance = _bestDistance;
|
||||
_anchorMs = sample.TimestampMs;
|
||||
_anchorPosition = sample.Position;
|
||||
return null;
|
||||
case 1:
|
||||
num7 = sample.TimestampMs - _anchorMs;
|
||||
num = ((num7 < options.ProgressWindowMs) ? 755996686 : 755996683);
|
||||
break;
|
||||
case 4:
|
||||
_bestDistance = value;
|
||||
num = 755996687;
|
||||
break;
|
||||
}
|
||||
_bestDistance = value;
|
||||
}
|
||||
float num = _referenceBestDistance - _bestDistance;
|
||||
if (num >= options.ProgressImprovementThreshold)
|
||||
{
|
||||
_referenceBestDistance = _bestDistance;
|
||||
_anchorMs = sample.TimestampMs;
|
||||
_anchorPosition = sample.Position;
|
||||
return null;
|
||||
}
|
||||
long num2 = sample.TimestampMs - _anchorMs;
|
||||
if (num2 >= options.ProgressWindowMs)
|
||||
{
|
||||
return Trip(in sample, num2, num);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private StallVerdict? ObserveDisplacement(in StallSample sample)
|
||||
{
|
||||
int num = ((sample.Mode == DriveMode.Ground) ? 508532326 : 508532323);
|
||||
long num9 = default(long);
|
||||
float num8 = default(float);
|
||||
while (true)
|
||||
float num = ((sample.Mode == DriveMode.Ground) ? DistanceXZ(_anchorPosition, sample.Position) : Vector3.Distance(_anchorPosition, sample.Position));
|
||||
if (num >= options.GroundDistanceThreshold)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 508532327;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
float num7;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
num9 = sample.TimestampMs - _anchorMs;
|
||||
num = ((num9 < options.GroundWindowMs) ? 508532324 : 508532322);
|
||||
break;
|
||||
case 5:
|
||||
return Trip(in sample, num9, num8);
|
||||
case 1:
|
||||
num7 = DistanceXZ(_anchorPosition, sample.Position);
|
||||
goto IL_00ae;
|
||||
case 3:
|
||||
return null;
|
||||
case 0:
|
||||
num = 508532323;
|
||||
break;
|
||||
case 4:
|
||||
num7 = Vector3.Distance(_anchorPosition, sample.Position);
|
||||
goto IL_00ae;
|
||||
case 6:
|
||||
{
|
||||
_anchorMs = sample.TimestampMs;
|
||||
_anchorPosition = sample.Position;
|
||||
return null;
|
||||
}
|
||||
IL_00ae:
|
||||
num8 = num7;
|
||||
num = ((!(num8 >= options.GroundDistanceThreshold)) ? 508532325 : 508532321);
|
||||
break;
|
||||
}
|
||||
_anchorMs = sample.TimestampMs;
|
||||
_anchorPosition = sample.Position;
|
||||
return null;
|
||||
}
|
||||
long num2 = sample.TimestampMs - _anchorMs;
|
||||
if (num2 >= options.GroundWindowMs)
|
||||
{
|
||||
return Trip(in sample, num2, num);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private StallVerdict? Trip(in StallSample sample, long elapsedMs, float measured)
|
||||
{
|
||||
bool num = sample.TimestampMs < _cooldownUntilMs;
|
||||
Anchor(in sample, _anchorUsesProgress);
|
||||
int num2 = ((!num) ? (-1156731677) : (-1156731680));
|
||||
while (true)
|
||||
if (num)
|
||||
{
|
||||
int num3 = num2;
|
||||
int num4 = -1156731679;
|
||||
int num5 = num3;
|
||||
int num6 = num5 + num4;
|
||||
int num7 = num5 & num4;
|
||||
switch (num6 - (num7 + num7))
|
||||
{
|
||||
case 2:
|
||||
_cooldownUntilMs = sample.TimestampMs + options.CooldownMs;
|
||||
return new StallVerdict(elapsedMs, measured, sample.Mode);
|
||||
case 1:
|
||||
return null;
|
||||
case 0:
|
||||
goto IL_0092;
|
||||
}
|
||||
continue;
|
||||
IL_0092:
|
||||
num2 = -1156731680;
|
||||
return null;
|
||||
}
|
||||
_cooldownUntilMs = sample.TimestampMs + options.CooldownMs;
|
||||
return new StallVerdict(elapsedMs, measured, sample.Mode);
|
||||
}
|
||||
|
||||
private void Anchor(in StallSample sample, bool usesProgress)
|
||||
|
|
@ -217,11 +116,6 @@ public sealed class StallDetector(StallDetectorOptions options)
|
|||
{
|
||||
float num = a.X - b.X;
|
||||
float num2 = a.Z - b.Z;
|
||||
return _206A_202D_200C_206C_206C_206B_202D_202E_206B_200B_200B_206F_206F_202B_200D_200F_206A_202C_200C_202A_202D_202C_200B_206F_206F_200F_206F_206B_206E_200D_202C_200C_200D_206F_202A_202D_202D_200B_200D_202C_202E(num * num + num2 * num2);
|
||||
}
|
||||
|
||||
static float _206A_202D_200C_206C_206C_206B_202D_202E_206B_200B_200B_206F_206F_202B_200D_200F_206A_202C_200C_202A_202D_202C_200B_206F_206F_200F_206F_206B_206E_200D_202C_200C_200D_206F_202A_202D_202D_200B_200D_202C_202E(float P_0)
|
||||
{
|
||||
return MathF.Sqrt(P_0);
|
||||
return MathF.Sqrt(num * num + num2 * num2);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,22 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace LLib.Movement.Unstuck;
|
||||
|
||||
public sealed record StallDetectorOptions
|
||||
{
|
||||
[CompilerGenerated]
|
||||
private Type EqualityContract
|
||||
{
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return _200F_202A_206D_206E_202B_200C_200C_200C_200B_200E_200C_206F_202C_206B_200C_200D_206D_202A_202E_200F_200D_206A_206E_206C_206F_206F_200C_202C_202E_200C_202B_200C_206C_202E_200E_206C_206C_206E_200F_202E_202E(typeof(StallDetectorOptions).TypeHandle);
|
||||
}
|
||||
}
|
||||
|
||||
public float GroundDistanceThreshold { get; init; } = 0.3f;
|
||||
|
||||
public long GroundWindowMs { get; init; } = 500L;
|
||||
|
|
@ -28,141 +13,4 @@ public sealed record StallDetectorOptions
|
|||
public long ContinuityGapMs { get; init; } = 250L;
|
||||
|
||||
public long CooldownMs { get; init; } = 500L;
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = _202D_202B_206E_200E_206A_202D_206E_206C_200B_206E_202C_200B_206D_206B_206C_200E_200E_206C_200B_200C_202C_202C_206F_206F_202C_206B_202D_200B_202C_206F_206B_202A_200B_200B_200D_206E_200B_202D_206C_206A_202E();
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(stringBuilder, global::_003CModule_003E._200E_206F_206C_206C_200E_202A_206D_206B_200B_202D_202B_200F_200F_206B_206C_206F_202D_206F_206A_202D_206A_200B_200B_202B_202D_202C_200F_200D_202E_200E_200D_202A_202B_206F_202E_200E_200B_206B_200E_202E_202E<string>(701563104));
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(stringBuilder, global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(1148273145));
|
||||
int num = ((!PrintMembers(stringBuilder)) ? (-1370681067) : (-1370681068));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1370681067;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
num = -1370681068;
|
||||
break;
|
||||
case 0:
|
||||
_202D_202E_200E_202E_200D_206E_200B_206F_202E_202B_206E_202A_202A_200B_202A_202B_200C_202C_202D_200C_202D_202B_206B_200B_206D_206F_200D_200B_202E_202A_202C_202A_206B_206C_200B_200D_202B_206D_202B_206F_202E(stringBuilder, '}');
|
||||
return _206D_202D_200B_200D_206B_206D_200F_200B_200F_200D_202C_202D_206B_200F_206E_202C_202A_202C_200F_202B_206F_206E_206B_200B_206C_200B_202B_206E_206F_206F_206B_202B_202C_202C_202D_202E_200F_206A_202D_202C_202E((object)stringBuilder);
|
||||
case 1:
|
||||
_202D_202E_200E_202E_200D_206E_200B_206F_202E_202B_206E_202A_202A_200B_202A_202B_200C_202C_202D_200C_202D_202B_206B_200B_206D_206F_200D_200B_202E_202A_202C_202A_206B_206C_200B_200D_202B_206D_202B_206F_202E(stringBuilder, ' ');
|
||||
num = -1370681067;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_206E_206F_200D_206F_200E_202B_200B_202B_206A_202A_206C_200C_200D_206A_200D_202D_200C_202A_206E_202C_206B_200E_206A_202E_206A_206F_200E_200D_200D_202A_200B_206A_206B_206F_202B_200B_200D_200F_202E_206B_202E();
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, global::_003CModule_003E._206A_202C_200C_206F_202A_200C_200F_206F_202B_202B_200D_206F_206D_200E_206A_206B_202A_200F_200B_206C_202B_202A_202B_206C_200F_206C_202C_202C_200C_206C_206F_200C_200B_202D_200E_202A_202A_206B_206B_200F_202E<string>(486831587));
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, GroundDistanceThreshold.ToString());
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(456054749));
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, GroundWindowMs.ToString());
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, global::_003CModule_003E._206E_202B_206C_202A_202A_200E_202B_202B_206D_200B_200C_206B_200B_206D_202E_202D_206C_202B_200B_206A_202D_206C_202A_200F_202D_200C_200B_200B_200B_200D_202C_206E_206D_202E_200C_206B_206A_206D_202D_202C_202E<string>(1152636967));
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, ProgressImprovementThreshold.ToString());
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, global::_003CModule_003E._200E_206F_206C_206C_200E_202A_206D_206B_200B_202D_202B_200F_200F_206B_206C_206F_202D_206F_206A_202D_206A_200B_200B_202B_202D_202C_200F_200D_202E_200E_200D_202A_202B_206F_202E_200E_200B_206B_200E_202E_202E<string>(942915890));
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, ProgressWindowMs.ToString());
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, global::_003CModule_003E._206A_202C_200C_206F_202A_200C_200F_206F_202B_202B_200D_206F_206D_200E_206A_206B_202A_200F_200B_206C_202B_202A_202B_206C_200F_206C_202C_202C_200C_206C_206F_200C_200B_202D_200E_202A_202A_206B_206B_200F_202E<string>(-1835438226));
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, ContinuityGapMs.ToString());
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, global::_003CModule_003E._206E_202B_206C_202A_202A_200E_202B_202B_206D_200B_200C_206B_200B_206D_202E_202D_206C_202B_200B_206A_202D_206C_202A_200F_202D_200C_200B_200B_200B_200D_202C_206E_206D_202E_200C_206B_206A_206D_202D_202C_202E<string>(-1517208652));
|
||||
_200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(builder, CooldownMs.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(StallDetectorOptions? other)
|
||||
{
|
||||
int num = (((object)this == other) ? 1683992717 : 1683992704);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1683992711;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 1:
|
||||
return false;
|
||||
case 3:
|
||||
num = ((!EqualityComparer<long>.Default.Equals(ProgressWindowMs, other.ProgressWindowMs)) ? 1683992710 : 1683992707);
|
||||
break;
|
||||
case 6:
|
||||
num = 1683992704;
|
||||
break;
|
||||
case 0:
|
||||
num = ((!EqualityComparer<float>.Default.Equals(GroundDistanceThreshold, other.GroundDistanceThreshold)) ? 1683992710 : 1683992706);
|
||||
break;
|
||||
case 2:
|
||||
num = ((!EqualityComparer<float>.Default.Equals(ProgressImprovementThreshold, other.ProgressImprovementThreshold)) ? 1683992710 : 1683992708);
|
||||
break;
|
||||
case 4:
|
||||
num = ((!EqualityComparer<long>.Default.Equals(ContinuityGapMs, other.ContinuityGapMs)) ? 1683992710 : 1683992719);
|
||||
break;
|
||||
case 10:
|
||||
return true;
|
||||
case 9:
|
||||
num = ((!_200D_206F_206A_200F_206A_200F_206A_200C_200B_206F_200C_202B_202E_200C_206F_206E_206C_200E_200C_206D_202D_202B_206B_202A_202A_206D_202C_206E_200D_202E_206B_202D_206D_206D_206F_202D_206C_206C_206D_206F_202E(EqualityContract, other.EqualityContract)) ? 1683992710 : 1683992711);
|
||||
break;
|
||||
case 7:
|
||||
num = (((object)other == null) ? 1683992710 : 1683992718);
|
||||
break;
|
||||
case 5:
|
||||
num = ((!EqualityComparer<long>.Default.Equals(GroundWindowMs, other.GroundWindowMs)) ? 1683992710 : 1683992709);
|
||||
break;
|
||||
case 8:
|
||||
return EqualityComparer<long>.Default.Equals(CooldownMs, other.CooldownMs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<StallDetectorOptions>.Equals(StallDetectorOptions? other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static Type _200F_202A_206D_206E_202B_200C_200C_200C_200B_200E_200C_206F_202C_206B_200C_200D_206D_202A_202E_200F_200D_206A_206E_206C_206F_206F_200C_202C_202E_200C_202B_200C_206C_202E_200E_206C_206C_206E_200F_202E_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static StringBuilder _202D_202B_206E_200E_206A_202D_206E_206C_200B_206E_202C_200B_206D_206B_206C_200E_200E_206C_200B_200C_202C_202C_206F_206F_202C_206B_202D_200B_202C_206F_206B_202A_200B_200B_200D_206E_200B_202D_206C_206A_202E()
|
||||
{
|
||||
return new StringBuilder();
|
||||
}
|
||||
|
||||
static StringBuilder _200F_202D_206D_202B_206F_206D_202A_206B_206C_200F_200D_206E_206F_202C_200E_202E_206C_206A_206E_202C_206A_200D_200F_202A_200C_200B_202E_202C_200D_206E_202D_200F_202A_202D_206F_206E_206D_200D_202B_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _202D_202E_200E_202E_200D_206E_200B_206F_202E_202B_206E_202A_202A_200B_202A_202B_200C_202C_202D_200C_202D_202B_206B_200B_206D_206F_200D_200B_202E_202A_202C_202A_206B_206C_200B_200D_202B_206D_202B_206F_202E(StringBuilder P_0, char P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static string _206D_202D_200B_200D_206B_206D_200F_200B_200F_200D_202C_202D_206B_200F_206E_202C_202A_202C_200F_202B_206F_206E_206B_200B_206C_200B_202B_206E_206F_206F_206B_202B_202C_202C_202D_202E_200F_206A_202D_202C_202E(object P_0)
|
||||
{
|
||||
return P_0.ToString();
|
||||
}
|
||||
|
||||
static void _206E_206F_200D_206F_200E_202B_200B_202B_206A_202A_206C_200C_200D_206A_200D_202D_200C_202A_206E_202C_206B_200E_206A_202E_206A_206F_200E_200D_200D_202A_200B_206A_206B_206F_202B_200B_200D_200F_202E_206B_202E()
|
||||
{
|
||||
RuntimeHelpers.EnsureSufficientExecutionStack();
|
||||
}
|
||||
|
||||
static bool _200D_206F_206A_200F_206A_200F_206A_200C_200B_206F_200C_202B_202E_200C_206F_206E_206C_200E_200C_206D_202D_202B_206B_202A_202A_206D_202C_206E_200D_202E_206B_202D_206D_206D_206F_202D_206C_206C_206D_206F_202E(Type P_0, Type P_1)
|
||||
{
|
||||
return P_0 == P_1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,115 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace LLib.Movement.Unstuck;
|
||||
|
||||
public readonly record struct StallSample(long TimestampMs, Vector3 Position, DriveMode Mode, bool Driving, float? DistanceToTarget)
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = _206C_206D_202E_200F_202B_206A_206E_200E_200F_206F_202C_206D_206E_200E_200D_200D_200D_202B_200E_206C_200F_206F_206A_202D_206E_206B_202C_202D_206D_200D_202D_202A_206F_206C_206A_206E_206A_202B_206C_206C_202E();
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(stringBuilder, global::_003CModule_003E._206A_206D_202C_206E_206D_206E_202A_200F_200D_206A_200F_206C_202C_202D_206D_206A_200D_200F_206A_206C_202C_206D_206E_200F_200F_200C_206B_200B_206B_206E_202B_206B_200E_200E_200B_206F_200F_202E_200C_200C_202E<string>(-843870221));
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(stringBuilder, global::_003CModule_003E._206A_206D_202C_206E_206D_206E_202A_200F_200D_206A_200F_206C_202C_202D_206D_206A_200D_200F_206A_206C_202C_206D_206E_200F_200F_200C_206B_200B_206B_206E_202B_206B_200E_200E_200B_206F_200F_202E_200C_200C_202E<string>(1581517409));
|
||||
int num = ((!PrintMembers(stringBuilder)) ? (-435415033) : (-435415036));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -435415035;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
_206E_200B_206D_200C_206C_202A_202C_202B_206F_200D_200D_200D_206C_206A_206B_200B_200C_202B_202A_206D_206B_200B_202A_202C_206E_202B_202B_202A_200C_202E_206B_206D_206A_206A_202E_202E_206E_200C_200C_206F_202E(stringBuilder, '}');
|
||||
return _206B_206E_206D_206A_206D_202D_202D_200C_202B_202E_206F_202D_206F_206B_202C_202D_206A_202B_200C_202D_206C_206C_202B_206A_202C_202A_200F_206D_202B_206C_200D_202B_202B_206C_206C_206D_206B_200D_200C_206A_202E((object)stringBuilder);
|
||||
case 1:
|
||||
_206E_200B_206D_200C_206C_202A_202C_202B_206F_200D_200D_200D_206C_206A_206B_200B_200C_202B_202A_206D_206B_200B_202A_202C_206E_202B_202B_202A_200C_202E_206B_206D_206A_206A_202E_202E_206E_200C_200C_206F_202E(stringBuilder, ' ');
|
||||
num = -435415033;
|
||||
break;
|
||||
case 0:
|
||||
num = -435415036;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(builder, global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(1273497407));
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(builder, TimestampMs.ToString());
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(builder, global::_003CModule_003E._200E_206F_206C_206C_200E_202A_206D_206B_200B_202D_202B_200F_200F_206B_206C_206F_202D_206F_206A_202D_206A_200B_200B_202B_202D_202C_200F_200D_202E_200E_200D_202A_202B_206F_202E_200E_200B_206B_200E_202E_202E<string>(-73966411));
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(builder, Position.ToString());
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(builder, global::_003CModule_003E._206A_202C_200C_206F_202A_200C_200F_206F_202B_202B_200D_206F_206D_200E_206A_206B_202A_200F_200B_206C_202B_202A_202B_206C_200F_206C_202C_202C_200C_206C_206F_200C_200B_202D_200E_202A_202A_206B_206B_200F_202E<string>(-1530027189));
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(builder, Mode.ToString());
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(builder, global::_003CModule_003E._206A_206D_202C_206E_206D_206E_202A_200F_200D_206A_200F_206C_202C_202D_206D_206A_200D_200F_206A_206C_202C_206D_206E_200F_200F_200C_206B_200B_206B_206E_202B_206B_200E_200E_200B_206F_200F_202E_200C_200C_202E<string>(-1807392495));
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(builder, Driving.ToString());
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(builder, global::_003CModule_003E._206A_206D_202C_206E_206D_206E_202A_200F_200D_206A_200F_206C_202C_202D_206D_206A_200D_200F_206A_206C_202C_206D_206E_200F_200F_200C_206B_200B_206B_206E_202B_206B_200E_200E_200B_206F_200F_202E_200C_200C_202E<string>(371582453));
|
||||
_202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(builder, DistanceToTarget.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(StallSample other)
|
||||
{
|
||||
int num = ((!EqualityComparer<long>.Default.Equals(TimestampMs, other.TimestampMs)) ? 364630668 : 364630670);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 364630671;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 5:
|
||||
num = 364630670;
|
||||
break;
|
||||
case 0:
|
||||
return EqualityComparer<float?>.Default.Equals(DistanceToTarget, other.DistanceToTarget);
|
||||
case 3:
|
||||
return false;
|
||||
case 1:
|
||||
num = ((!EqualityComparer<Vector3>.Default.Equals(Position, other.Position)) ? 364630668 : 364630669);
|
||||
break;
|
||||
case 2:
|
||||
num = ((!EqualityComparer<DriveMode>.Default.Equals(Mode, other.Mode)) ? 364630668 : 364630667);
|
||||
break;
|
||||
case 4:
|
||||
num = ((!EqualityComparer<bool>.Default.Equals(Driving, other.Driving)) ? 364630668 : 364630671);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<StallSample>.Equals(StallSample other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static StringBuilder _206C_206D_202E_200F_202B_206A_206E_200E_200F_206F_202C_206D_206E_200E_200D_200D_200D_202B_200E_206C_200F_206F_206A_202D_206E_206B_202C_202D_206D_200D_202D_202A_206F_206C_206A_206E_206A_202B_206C_206C_202E()
|
||||
{
|
||||
return new StringBuilder();
|
||||
}
|
||||
|
||||
static StringBuilder _202A_202C_206C_206C_200D_206F_206B_206F_202E_200D_202E_200C_200C_202A_200D_202C_206E_206C_206C_200C_200B_206D_202B_200C_206E_200C_200C_200B_206A_202E_202D_206A_206D_206B_206C_202E_200D_206C_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _206E_200B_206D_200C_206C_202A_202C_202B_206F_200D_200D_200D_206C_206A_206B_200B_200C_202B_202A_206D_206B_200B_202A_202C_206E_202B_202B_202A_200C_202E_206B_206D_206A_206A_202E_202E_206E_200C_200C_206F_202E(StringBuilder P_0, char P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static string _206B_206E_206D_206A_206D_202D_202D_200C_202B_202E_206F_202D_206F_206B_202C_202D_206A_202B_200C_202D_206C_206C_202B_206A_202C_202A_200F_206D_202B_206C_200D_202B_202B_206C_206C_206D_206B_200D_200C_206A_202E(object P_0)
|
||||
{
|
||||
return P_0.ToString();
|
||||
}
|
||||
}
|
||||
public readonly record struct StallSample(long TimestampMs, Vector3 Position, DriveMode Mode, bool Driving, float? DistanceToTarget);
|
||||
|
|
|
|||
|
|
@ -1,106 +1,3 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace LLib.Movement.Unstuck;
|
||||
|
||||
public readonly record struct StallVerdict(long WindowMs, float MovedDistance, DriveMode Mode)
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = _200C_206C_206B_202E_202E_206B_200E_202D_200D_202A_200F_206D_206C_206F_206B_200E_206C_206E_206E_202C_200B_206D_202C_202A_202B_202C_206E_200D_206C_200D_200C_200C_202A_206A_206F_202C_200D_206D_206D_202E();
|
||||
_206F_206B_200E_202C_200D_206B_200E_206E_206A_200D_200B_206B_202E_206F_202B_202E_202A_206A_206C_200C_202E_202B_202E_206D_200D_206E_202B_200B_206E_200D_200D_200F_206F_200B_206C_200D_206A_200C_206D_206A_202E(stringBuilder, global::_003CModule_003E._206A_202C_200C_206F_202A_200C_200F_206F_202B_202B_200D_206F_206D_200E_206A_206B_202A_200F_200B_206C_202B_202A_202B_206C_200F_206C_202C_202C_200C_206C_206F_200C_200B_202D_200E_202A_202A_206B_206B_200F_202E<string>(-1822422138));
|
||||
_206F_206B_200E_202C_200D_206B_200E_206E_206A_200D_200B_206B_202E_206F_202B_202E_202A_206A_206C_200C_202E_202B_202E_206D_200D_206E_202B_200B_206E_200D_200D_200F_206F_200B_206C_200D_206A_200C_206D_206A_202E(stringBuilder, global::_003CModule_003E._206A_206D_202C_206E_206D_206E_202A_200F_200D_206A_200F_206C_202C_202D_206D_206A_200D_200F_206A_206C_202C_206D_206E_200F_200F_200C_206B_200B_206B_206E_202B_206B_200E_200E_200B_206F_200F_202E_200C_200C_202E<string>(1581517409));
|
||||
int num = ((!PrintMembers(stringBuilder)) ? (-1803587058) : (-1803587059));
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1803587060;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
_200E_202E_200F_202A_200D_206A_206C_206E_200D_200C_202C_206F_200C_200F_202A_206E_200D_202A_202A_206F_202A_206B_202A_206F_206C_202C_200C_202E_200B_202B_200F_202E_202A_206D_202D_200D_202B_200D_200F_206A_202E(stringBuilder, '}');
|
||||
return _202E_202D_202D_202B_200B_200C_206B_206C_200F_200E_206E_206C_200F_200D_206C_206A_202B_206A_202A_206D_202E_206C_202E_202B_200C_206C_206A_206E_206F_206E_206B_200C_206B_200E_206F_202B_206E_202D_202C_200D_202E((object)stringBuilder);
|
||||
case 1:
|
||||
_200E_202E_200F_202A_200D_206A_206C_206E_200D_200C_202C_206F_200C_200F_202A_206E_200D_202A_202A_206F_202A_206B_202A_206F_206C_202C_200C_202E_200B_202B_200F_202E_202A_206D_202D_200D_202B_200D_200F_206A_202E(stringBuilder, ' ');
|
||||
num = -1803587058;
|
||||
break;
|
||||
case 0:
|
||||
num = -1803587059;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
[CompilerGenerated]
|
||||
private bool PrintMembers(StringBuilder builder)
|
||||
{
|
||||
_206F_206B_200E_202C_200D_206B_200E_206E_206A_200D_200B_206B_202E_206F_202B_202E_202A_206A_206C_200C_202E_202B_202E_206D_200D_206E_202B_200B_206E_200D_200D_200F_206F_200B_206C_200D_206A_200C_206D_206A_202E(builder, global::_003CModule_003E._200E_206F_206C_206C_200E_202A_206D_206B_200B_202D_202B_200F_200F_206B_206C_206F_202D_206F_206A_202D_206A_200B_200B_202B_202D_202C_200F_200D_202E_200E_200D_202A_202B_206F_202E_200E_200B_206B_200E_202E_202E<string>(1679493069));
|
||||
_206F_206B_200E_202C_200D_206B_200E_206E_206A_200D_200B_206B_202E_206F_202B_202E_202A_206A_206C_200C_202E_202B_202E_206D_200D_206E_202B_200B_206E_200D_200D_200F_206F_200B_206C_200D_206A_200C_206D_206A_202E(builder, WindowMs.ToString());
|
||||
_206F_206B_200E_202C_200D_206B_200E_206E_206A_200D_200B_206B_202E_206F_202B_202E_202A_206A_206C_200C_202E_202B_202E_206D_200D_206E_202B_200B_206E_200D_200D_200F_206F_200B_206C_200D_206A_200C_206D_206A_202E(builder, global::_003CModule_003E._206E_202B_206C_202A_202A_200E_202B_202B_206D_200B_200C_206B_200B_206D_202E_202D_206C_202B_200B_206A_202D_206C_202A_200F_202D_200C_200B_200B_200B_200D_202C_206E_206D_202E_200C_206B_206A_206D_202D_202C_202E<string>(-980000238));
|
||||
_206F_206B_200E_202C_200D_206B_200E_206E_206A_200D_200B_206B_202E_206F_202B_202E_202A_206A_206C_200C_202E_202B_202E_206D_200D_206E_202B_200B_206E_200D_200D_200F_206F_200B_206C_200D_206A_200C_206D_206A_202E(builder, MovedDistance.ToString());
|
||||
_206F_206B_200E_202C_200D_206B_200E_206E_206A_200D_200B_206B_202E_206F_202B_202E_202A_206A_206C_200C_202E_202B_202E_206D_200D_206E_202B_200B_206E_200D_200D_200F_206F_200B_206C_200D_206A_200C_206D_206A_202E(builder, global::_003CModule_003E._200E_206F_206C_206C_200E_202A_206D_206B_200B_202D_202B_200F_200F_206B_206C_206F_202D_206F_206A_202D_206A_200B_200B_202B_202D_202C_200F_200D_202E_200E_200D_202A_202B_206F_202E_200E_200B_206B_200E_202E_202E<string>(-830019758));
|
||||
_206F_206B_200E_202C_200D_206B_200E_206E_206A_200D_200B_206B_202E_206F_202B_202E_202A_206A_206C_200C_202E_202B_202E_206D_200D_206E_202B_200B_206E_200D_200D_200F_206F_200B_206C_200D_206A_200C_206D_206A_202E(builder, Mode.ToString());
|
||||
return true;
|
||||
}
|
||||
|
||||
[CompilerGenerated]
|
||||
public bool Equals(StallVerdict other)
|
||||
{
|
||||
int num = ((!EqualityComparer<long>.Default.Equals(WindowMs, other.WindowMs)) ? 449006355 : 449006353);
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 449006355;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 3:
|
||||
num = 449006353;
|
||||
break;
|
||||
case 1:
|
||||
return EqualityComparer<DriveMode>.Default.Equals(Mode, other.Mode);
|
||||
case 0:
|
||||
return false;
|
||||
case 2:
|
||||
num = ((!EqualityComparer<float>.Default.Equals(MovedDistance, other.MovedDistance)) ? 449006355 : 449006354);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool IEquatable<StallVerdict>.Equals(StallVerdict other)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
||||
return this.Equals(other);
|
||||
}
|
||||
|
||||
static StringBuilder _200C_206C_206B_202E_202E_206B_200E_202D_200D_202A_200F_206D_206C_206F_206B_200E_206C_206E_206E_202C_200B_206D_202C_202A_202B_202C_206E_200D_206C_200D_200C_200C_202A_206A_206F_202C_200D_206D_206D_202E()
|
||||
{
|
||||
return new StringBuilder();
|
||||
}
|
||||
|
||||
static StringBuilder _206F_206B_200E_202C_200D_206B_200E_206E_206A_200D_200B_206B_202E_206F_202B_202E_202A_206A_206C_200C_202E_202B_202E_206D_200D_206E_202B_200B_206E_200D_200D_200F_206F_200B_206C_200D_206A_200C_206D_206A_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _200E_202E_200F_202A_200D_206A_206C_206E_200D_200C_202C_206F_200C_200F_202A_206E_200D_202A_202A_206F_202A_206B_202A_206F_206C_202C_200C_202E_200B_202B_200F_202E_202A_206D_202D_200D_202B_200D_200F_206A_202E(StringBuilder P_0, char P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static string _202E_202D_202D_202B_200B_200C_206B_206C_200F_200E_206E_206C_200F_200D_206C_206A_202B_206A_202A_206D_202E_206C_202E_202B_200C_206C_206A_206E_206F_206E_206B_200C_206B_200E_206F_202B_206E_202D_202C_200D_202E(object P_0)
|
||||
{
|
||||
return P_0.ToString();
|
||||
}
|
||||
}
|
||||
public readonly record struct StallVerdict(long WindowMs, float MovedDistance, DriveMode Mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue