145 lines
4.6 KiB
C#
145 lines
4.6 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Questionable.Controller.Steps.Common;
|
|
|
|
internal sealed class WaitNavmesh
|
|
{
|
|
internal sealed record Task : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206B_200E_202D_206D_200E_206C_202E_206C_202E_202C_202C_200C_200B_202D_202C_202C_202C_206B_202C_206A_206F_202C_202C_202D_200B_200E_206A_202B_200D_206B_202C_206F_206A_206F_202A_200F_200C_202A_202D_206D_202E(typeof(Task).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
return global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(93055531);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(Task? other)
|
|
{
|
|
int num = (((object)this == other) ? 772746660 : 772746657);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 772746656;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 4:
|
|
return true;
|
|
case 3:
|
|
return _202E_202C_206A_202B_206A_202B_200C_206D_200F_200E_206C_200E_200B_200C_200D_206F_200B_206A_202E_200E_206D_206C_202D_202C_200F_200B_200C_202D_206B_206F_206E_200D_206E_206D_206E_206A_206E_206F_202B_202E_202E(EqualityContract, other.EqualityContract);
|
|
case 1:
|
|
num = (((object)other == null) ? 772746656 : 772746659);
|
|
break;
|
|
case 0:
|
|
return false;
|
|
case 2:
|
|
num = 772746657;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<Task>.Equals(Task? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206B_200E_202D_206D_200E_206C_202E_206C_202E_202C_202C_200C_200B_202D_202C_202C_202C_206B_202C_206A_206F_202C_202C_202D_200B_200E_206A_202B_200D_206B_202C_206F_206A_206F_202A_200F_200C_202A_202D_206D_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static bool _202E_202C_206A_202B_206A_202B_200C_206D_200F_200E_206C_200E_200B_200C_200D_206F_200B_206A_202E_200E_206D_206C_202D_202C_200F_200B_200C_202D_206B_206F_206E_200D_206E_206D_206E_206A_206E_206F_202B_202E_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class Executor(MovementController movementController) : TaskExecutor<Task>(), IDebugStateProvider, ITaskExecutor
|
|
{
|
|
protected override bool Start()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
int num = (movementController.IsNavmeshReady ? 1367983807 : 1367983806);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1367983807;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 2:
|
|
goto IL_004d;
|
|
case 0:
|
|
return ETaskResult.TaskComplete;
|
|
case 1:
|
|
return ETaskResult.StillRunning;
|
|
}
|
|
continue;
|
|
IL_004d:
|
|
num = 1367983806;
|
|
}
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public string? GetDebugState()
|
|
{
|
|
int num = (movementController.IsNavmeshReady ? (-446165234) : (-446165233));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -446165234;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
goto IL_004b;
|
|
case 0:
|
|
return null;
|
|
case 1:
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(10, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._206C_202A_206D_206A_206E_202A_202B_206F_206D_200F_202D_200F_202D_206A_202C_202B_206D_206A_200E_200E_202D_202D_200D_200C_200D_200D_206D_206E_202A_200F_206E_206C_206D_206A_206D_202B_200F_200D_206E_200C_202E<string>(-1778800167));
|
|
defaultInterpolatedStringHandler.AppendFormatted(movementController.BuiltNavmeshPercent);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._200B_206B_206B_200E_200B_206A_206D_206B_206E_200F_206A_206F_206E_202B_200F_206C_202B_206D_206E_200F_200C_200E_206F_200D_200F_200B_202B_202B_202B_202B_206D_202C_206A_206D_200B_206E_200D_206A_206F_200F_202E<string>(1720204560));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
}
|
|
continue;
|
|
IL_004b:
|
|
num = -446165233;
|
|
}
|
|
}
|
|
|
|
string? IDebugStateProvider.GetDebugState()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in GetDebugState
|
|
return this.GetDebugState();
|
|
}
|
|
}
|
|
}
|