forked from aly/qstbak
148 lines
8.8 KiB
C#
148 lines
8.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using Questionable.Model.Questing;
|
|
|
|
namespace Questionable.Functions;
|
|
|
|
internal sealed record PriorityQuestInfo(ElementId QuestId, string? UnavailableReason = null)
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206A_202C_202C_206C_200D_202A_202A_206D_206B_202A_202D_200E_202D_200C_202C_206D_206D_202E_206C_200C_206D_202E_206F_200D_202D_206B_200D_206B_206D_200B_206C_202B_202C_200E_202B_202E_200E_200D_200D_202E(typeof(PriorityQuestInfo).TypeHandle);
|
|
}
|
|
}
|
|
|
|
public bool IsAvailable => UnavailableReason == null;
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
public override string ToString()
|
|
{
|
|
StringBuilder stringBuilder = _206C_200B_202A_200F_206B_202B_200B_206B_206C_202D_200F_202D_200D_206E_202C_200F_202E_202B_202B_200F_202A_206A_200E_206E_206E_200B_200C_206D_206F_200F_206D_200C_202B_202E_206A_206C_200E_206E_206D_200E_202E();
|
|
_200F_202D_206A_200D_202B_200F_206D_202A_206B_200B_206C_202D_202D_200D_206F_202C_206E_206B_202E_206D_206D_206C_206E_202B_200B_202C_200F_202D_206C_202A_202B_200D_206E_200D_200E_200C_206F_206F_200F_206A_202E(stringBuilder, 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>(1805932779));
|
|
_200F_202D_206A_200D_202B_200F_206D_202A_206B_200B_206C_202D_202D_200D_206F_202C_206E_206B_202E_206D_206D_206C_206E_202B_200B_202C_200F_202D_206C_202A_202B_200D_206E_200D_200E_200C_206F_206F_200F_206A_202E(stringBuilder, 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>(698284764));
|
|
int num = ((!PrintMembers(stringBuilder)) ? 537897320 : 537897323);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 537897322;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
num = 537897323;
|
|
break;
|
|
case 1:
|
|
_200F_202D_206A_206C_200B_206A_206A_206A_206E_206B_206E_202E_202B_202B_206C_202E_206B_202D_200F_202E_202E_202D_200F_206C_202B_206A_206E_202B_206D_202A_200B_200E_200B_206C_200D_202E_202C_200B_202A_206B_202E(stringBuilder, ' ');
|
|
num = 537897320;
|
|
break;
|
|
case 2:
|
|
_200F_202D_206A_206C_200B_206A_206A_206A_206E_206B_206E_202E_202B_202B_206C_202E_206B_202D_200F_202E_202E_202D_200F_206C_202B_206A_206E_202B_206D_202A_200B_200E_200B_206C_200D_202E_202C_200B_202A_206B_202E(stringBuilder, '}');
|
|
return _200C_200E_206D_206F_200F_206D_202C_206D_206F_200F_206C_200D_206F_202D_202B_206D_206D_206E_206D_206C_206C_202B_200D_206A_202B_206C_202C_206A_202E_200D_200C_206F_206C_202C_206B_202B_206B_206E_200C_202D_202E((object)stringBuilder);
|
|
}
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_200F_206A_200B_200B_200E_206C_206E_200E_200F_200F_202D_200E_206B_206B_206E_202A_202B_202E_206E_202B_206C_206F_202E_206D_200D_200B_206B_206F_202A_202B_200C_200D_206E_206E_202D_200E_200E_206F_202A_202C_202E();
|
|
_200F_202D_206A_200D_202B_200F_206D_202A_206B_200B_206C_202D_202D_200D_206F_202C_206E_206B_202E_206D_206D_206C_206E_202B_200B_202C_200F_202D_206C_202A_202B_200D_206E_200D_200E_200C_206F_206F_200F_206A_202E(builder, 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>(2135237278));
|
|
_202C_206B_200C_202C_200F_200B_200C_202A_200D_200D_200D_202C_200E_200B_202C_202E_206E_202D_206A_202C_206E_200C_202E_206D_202E_200D_206E_202C_200E_200B_200D_202A_202C_202E_206D_200C_202C_206A_206C_202B_202E(builder, (object)QuestId);
|
|
_200F_202D_206A_200D_202B_200F_206D_202A_206B_200B_206C_202D_202D_200D_206F_202C_206E_206B_202E_206D_206D_206C_206E_202B_200B_202C_200F_202D_206C_202A_202B_200D_206E_200D_200E_200C_206F_206F_200F_206A_202E(builder, global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(990011326));
|
|
_202C_206B_200C_202C_200F_200B_200C_202A_200D_200D_200D_202C_200E_200B_202C_202E_206E_202D_206A_202C_206E_200C_202E_206D_202E_200D_206E_202C_200E_200B_200D_202A_202C_202E_206D_200C_202C_206A_206C_202B_202E(builder, (object)UnavailableReason);
|
|
_200F_202D_206A_200D_202B_200F_206D_202A_206B_200B_206C_202D_202D_200D_206F_202C_206E_206B_202E_206D_206D_206C_206E_202B_200B_202C_200F_202D_206C_202A_202B_200D_206E_200D_200E_200C_206F_206F_200F_206A_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>(-682736150));
|
|
_200F_202D_206A_200D_202B_200F_206D_202A_206B_200B_206C_202D_202D_200D_206F_202C_206E_206B_202E_206D_206D_206C_206E_202B_200B_202C_200F_202D_206C_202A_202B_200D_206E_200D_200E_200C_206F_206F_200F_206A_202E(builder, IsAvailable.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(PriorityQuestInfo? other)
|
|
{
|
|
int num = (((object)this == other) ? (-830578699) : (-830578704));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -830578698;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 2:
|
|
num = -830578704;
|
|
break;
|
|
case 1:
|
|
return EqualityComparer<string>.Default.Equals(UnavailableReason, other.UnavailableReason);
|
|
case 0:
|
|
num = ((!_200D_200E_202A_200E_200D_206C_200D_200D_206B_202A_200E_206B_202A_206D_206F_202E_200F_202B_202D_206F_200E_200C_200B_202E_200D_202E_206F_202E_206E_202B_206E_202C_206F_202C_202A_200B_200D_202B_202B_200E_202E(EqualityContract, other.EqualityContract)) ? (-830578702) : (-830578701));
|
|
break;
|
|
case 5:
|
|
num = ((!EqualityComparer<ElementId>.Default.Equals(QuestId, other.QuestId)) ? (-830578702) : (-830578697));
|
|
break;
|
|
case 6:
|
|
num = (((object)other == null) ? (-830578702) : (-830578698));
|
|
break;
|
|
case 3:
|
|
return true;
|
|
case 4:
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<PriorityQuestInfo>.Equals(PriorityQuestInfo? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206A_202C_202C_206C_200D_202A_202A_206D_206B_202A_202D_200E_202D_200C_202C_206D_206D_202E_206C_200C_206D_202E_206F_200D_202D_206B_200D_206B_206D_200B_206C_202B_202C_200E_202B_202E_200E_200D_200D_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static StringBuilder _206C_200B_202A_200F_206B_202B_200B_206B_206C_202D_200F_202D_200D_206E_202C_200F_202E_202B_202B_200F_202A_206A_200E_206E_206E_200B_200C_206D_206F_200F_206D_200C_202B_202E_206A_206C_200E_206E_206D_200E_202E()
|
|
{
|
|
return new StringBuilder();
|
|
}
|
|
|
|
static StringBuilder _200F_202D_206A_200D_202B_200F_206D_202A_206B_200B_206C_202D_202D_200D_206F_202C_206E_206B_202E_206D_206D_206C_206E_202B_200B_202C_200F_202D_206C_202A_202B_200D_206E_200D_200E_200C_206F_206F_200F_206A_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static StringBuilder _200F_202D_206A_206C_200B_206A_206A_206A_206E_206B_206E_202E_202B_202B_206C_202E_206B_202D_200F_202E_202E_202D_200F_206C_202B_206A_206E_202B_206D_202A_200B_200E_200B_206C_200D_202E_202C_200B_202A_206B_202E(StringBuilder P_0, char P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static string _200C_200E_206D_206F_200F_206D_202C_206D_206F_200F_206C_200D_206F_202D_202B_206D_206D_206E_206D_206C_206C_202B_200D_206A_202B_206C_202C_206A_202E_200D_200C_206F_206C_202C_206B_202B_206B_206E_200C_202D_202E(object P_0)
|
|
{
|
|
return P_0.ToString();
|
|
}
|
|
|
|
static void _200F_206A_200B_200B_200E_206C_206E_200E_200F_200F_202D_200E_206B_206B_206E_202A_202B_202E_206E_202B_206C_206F_202E_206D_200D_200B_206B_206F_202A_202B_200C_200D_206E_206E_202D_200E_200E_206F_202A_202C_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _202C_206B_200C_202C_200F_200B_200C_202A_200D_200D_200D_202C_200E_200B_202C_202E_206E_202D_206A_202C_206E_200C_202E_206D_202E_200D_206E_202C_200E_200B_200D_202A_202C_202E_206D_200C_202C_206A_206C_202B_202E(StringBuilder P_0, object P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _200D_200E_202A_200E_200D_206C_200D_200D_206B_202A_200E_206B_202A_206D_206F_202E_200F_202B_202D_206F_200E_200C_200B_202E_200D_202E_206F_202E_206E_202B_206E_202C_206F_202C_202A_200B_200D_202B_202B_200E_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|