forked from aly/qstbak
175 lines
8.4 KiB
C#
175 lines
8.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using Microsoft.Extensions.Logging;
|
|
using Questionable.Functions;
|
|
using Questionable.Model;
|
|
using Questionable.Model.Questing;
|
|
using SmartNav.Model;
|
|
|
|
namespace Questionable.Controller.Steps.Interactions;
|
|
|
|
internal static class AethernetShard
|
|
{
|
|
internal sealed class Factory : SimpleTaskFactory
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override ITask? CreateTask(Quest quest, QuestSequence sequence, QuestStep step)
|
|
{
|
|
int num = ((_200F_206C_200B_206A_206A_206A_206D_202C_200D_206A_202D_206C_200E_202E_200D_200D_200F_200F_200B_200C_200D_200E_200C_206B_202D_200D_206B_200F_206F_206A_206D_206A_202A_200B_200E_200C_202B_206B_206A_206B_202E(step) == EInteractionType.AttuneAethernetShard) ? (-1186743855) : (-1186743856));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1186743855;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 2:
|
|
goto IL_0049;
|
|
case 0:
|
|
_202E_200E_202A_202A_202D_206E_202A_206E_200B_202A_206A_206A_206C_206C_202A_206E_202A_200E_206F_206F_206F_200C_202A_202C_206E_206B_206D_206B_202A_206E_202B_200F_206D_202D_200C_200C_206E_206A_200D_206C_202E((object)_206B_202B_202C_200E_206F_202A_206F_206E_200F_206A_200F_206E_200B_200C_206B_200D_206D_202E_200E_206A_200E_200D_206B_200B_206D_206E_202D_206B_202E_206F_202D_200E_202C_200D_206C_200B_200B_200B_200D_200D_202E(step), global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(-520107683));
|
|
return new Attune(_206B_202B_202C_200E_206F_202A_206F_206E_200F_206A_200F_206E_200B_200C_206B_200D_206D_202E_200E_206A_200E_200D_206B_200B_206D_206E_202D_206B_202E_206F_202D_200E_202C_200D_206C_200B_200B_200B_200D_200D_202E(step).Value);
|
|
case 1:
|
|
return null;
|
|
}
|
|
continue;
|
|
IL_0049:
|
|
num = -1186743856;
|
|
}
|
|
}
|
|
|
|
static EInteractionType _200F_206C_200B_206A_206A_206A_206D_202C_200D_206A_202D_206C_200E_202E_200D_200D_200F_200F_200B_200C_200D_200E_200C_206B_202D_200D_206B_200F_206F_206A_206D_206A_202A_200B_200E_200C_202B_206B_206A_206B_202E(QuestStep P_0)
|
|
{
|
|
return P_0.InteractionType;
|
|
}
|
|
|
|
static EAetheryteLocation? _206B_202B_202C_200E_206F_202A_206F_206E_200F_206A_200F_206E_200B_200C_206B_200D_206D_202E_200E_206A_200E_200D_206B_200B_206D_206E_202D_206B_202E_206F_202D_200E_202C_200D_206C_200B_200B_200B_200D_200D_202E(QuestStep P_0)
|
|
{
|
|
return P_0.AethernetShard;
|
|
}
|
|
|
|
static void _202E_200E_202A_202A_202D_206E_202A_206E_200B_202A_206A_206A_206C_206C_202A_206E_202A_200E_206F_206F_206F_200C_202A_202C_206E_206B_206D_206B_202A_206E_202B_200F_206D_202D_200C_200C_206E_206A_200D_206C_202E(object P_0, string P_1)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(P_0, P_1);
|
|
}
|
|
}
|
|
|
|
internal sealed record Attune(EAetheryteLocation AetheryteLocation) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206D_206A_206D_200E_206E_202B_202A_202B_206E_206D_200F_202C_200F_202C_200E_206E_202E_206E_206D_202B_200D_202B_206D_206E_202D_202D_200C_200C_202E_206B_200F_206A_200F_206D_202C_206B_202C_206C_200C_202E(typeof(Attune).TypeHandle);
|
|
}
|
|
}
|
|
|
|
public bool ShouldRedoOnInterrupt()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
bool ITask.ShouldRedoOnInterrupt()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in ShouldRedoOnInterrupt
|
|
return this.ShouldRedoOnInterrupt();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(22, 1);
|
|
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>(2083697024));
|
|
defaultInterpolatedStringHandler.AppendFormatted(AetheryteLocation);
|
|
defaultInterpolatedStringHandler.AppendLiteral(global::_003CModule_003E._202E_206C_200F_206B_206A_202A_202C_206F_200C_206C_202B_206B_206D_206D_206D_202D_206E_202E_206C_206E_206D_202C_206F_200D_202D_202E_206A_206D_202A_206A_202B_200D_200C_206D_202B_200B_200D_200C_206E_206B_202E<string>(555647321));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_206A_202E_200E_206F_200C_202E_206E_206F_206B_200B_206F_206B_202C_200E_206A_202A_206E_200C_200F_200B_200B_202B_202D_200F_202B_206A_206B_202D_202E_206E_206A_202C_200F_200C_202A_206C_206D_206A_202A_200E_202E();
|
|
_202A_206F_202A_202B_206D_202A_202A_200D_200F_200B_202C_206F_202D_206E_206F_202E_206D_200B_202B_206C_200F_206B_200D_200D_202E_206D_200E_202A_206F_206E_202E_206B_200D_200C_202B_206A_206E_206C_206B_200C_202E(builder, global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(-1285909237));
|
|
_202A_206F_202A_202B_206D_202A_202A_200D_200F_200B_202C_206F_202D_206E_206F_202E_206D_200B_202B_206C_200F_206B_200D_200D_202E_206D_200E_202A_206F_206E_202E_206B_200D_200C_202B_206A_206E_206C_206B_200C_202E(builder, AetheryteLocation.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(Attune? other)
|
|
{
|
|
int num = (((object)this == other) ? 513184139 : 513184143);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 513184142;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
num = 513184143;
|
|
break;
|
|
case 3:
|
|
num = ((!_202D_206E_202C_200D_206A_202B_202E_206C_200E_202E_202A_206E_206B_206B_206B_200F_206F_202D_202A_202A_202B_202B_206F_202D_206D_206A_200C_202B_206D_200E_202C_206D_200C_202A_206F_206C_206C_200C_200F_206E_202E(EqualityContract, other.EqualityContract)) ? 513184140 : 513184138);
|
|
break;
|
|
case 5:
|
|
return true;
|
|
case 1:
|
|
num = (((object)other == null) ? 513184140 : 513184141);
|
|
break;
|
|
case 4:
|
|
return EqualityComparer<EAetheryteLocation>.Default.Equals(AetheryteLocation, other.AetheryteLocation);
|
|
case 2:
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<Attune>.Equals(Attune? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206D_206A_206D_200E_206E_202B_202A_202B_206E_206D_200F_202C_200F_202C_200E_206E_202E_206E_206D_202B_200D_202B_206D_206E_202D_202D_200C_200C_202E_206B_200F_206A_200F_206D_202C_206B_202C_206C_200C_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static void _206A_202E_200E_206F_200C_202E_206E_206F_206B_200B_206F_206B_202C_200E_206A_202A_206E_200C_200F_200B_200B_202B_202D_200F_202B_206A_206B_202D_202E_206E_206A_202C_200F_200C_202A_206C_206D_206A_202A_200E_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _202A_206F_202A_202B_206D_202A_202A_200D_200F_200B_202C_206F_202D_206E_206F_202E_206D_200B_202B_206C_200F_206B_200D_200D_202E_206D_200E_202A_206F_206E_202E_206B_200D_200C_202B_206A_206E_206C_206B_200C_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _202D_206E_202C_200D_206A_202B_202E_206C_200E_202E_202A_206E_206B_206B_206B_200F_206F_202D_202A_202A_202B_202B_206F_202D_206D_206A_200C_202B_206D_200E_202C_206D_200C_202A_206F_206C_206C_200C_200F_206E_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class DoAttune : Aetheryte.DoAttuneBase<Attune>
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public DoAttune(AetheryteFunctions aetheryteFunctions, GameFunctions gameFunctions, ILogger<DoAttune> logger)
|
|
: base(aetheryteFunctions, gameFunctions, (ILogger)logger, global::_003CModule_003E._202A_206B_206D_200C_206B_200E_200E_202A_200B_202E_206A_206F_206A_206B_200E_200D_200F_206D_206E_206A_206F_200C_206C_202C_202A_206E_202C_200B_206E_202A_206E_202B_206B_202E_202E_206A_206D_206D_202C_200F_202E<string>(-577134927))
|
|
{
|
|
}
|
|
|
|
protected override EAetheryteLocation GetLocation()
|
|
{
|
|
return base.Task.AetheryteLocation;
|
|
}
|
|
}
|
|
}
|