forked from aly/qstbak
1339 lines
57 KiB
C#
1339 lines
57 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using Dalamud.Game.ClientState.Objects.SubKinds;
|
|
using Dalamud.Game.ClientState.Objects.Types;
|
|
using Dalamud.Game.Text;
|
|
using Dalamud.Game.Text.SeStringHandling;
|
|
using Dalamud.Plugin.Services;
|
|
using FFXIVClientStructs.FFXIV.Client.Game;
|
|
using LLib.GameData;
|
|
using Lumina.Excel;
|
|
using Lumina.Excel.Sheets;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Logging;
|
|
using Questionable.Controller.Steps.Common;
|
|
using Questionable.Controller.Steps.Interactions;
|
|
using Questionable.Data;
|
|
using Questionable.Model;
|
|
using Questionable.Model.Gathering;
|
|
using Questionable.Model.Questing;
|
|
|
|
namespace Questionable.Controller.Steps.Shared;
|
|
|
|
internal static class Gather
|
|
{
|
|
internal sealed class Factory : ITaskFactory
|
|
{
|
|
[CompilerGenerated]
|
|
private sealed class _003CCreateAllTasks_003Ed__0 : IEnumerable<ITask>, IEnumerable, IEnumerator<ITask>, IEnumerator, IDisposable
|
|
{
|
|
private int _003C_003E1__state;
|
|
|
|
private ITask _003C_003E2__current;
|
|
|
|
private int _003C_003El__initialThreadId;
|
|
|
|
private QuestStep step;
|
|
|
|
public QuestStep _003C_003E3__step;
|
|
|
|
private Questionable.Model.Quest quest;
|
|
|
|
public Questionable.Model.Quest _003C_003E3__quest;
|
|
|
|
private QuestSequence sequence;
|
|
|
|
public QuestSequence _003C_003E3__sequence;
|
|
|
|
private List<GatheredItem>.Enumerator _003C_003E7__wrap1;
|
|
|
|
ITask IEnumerator<ITask>.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
object IEnumerator.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
public _003CCreateAllTasks_003Ed__0(int _003C_003E1__state)
|
|
{
|
|
this._003C_003E1__state = _003C_003E1__state;
|
|
_003C_003El__initialThreadId = _200F_206D_206F_202E_202B_202E_200D_206A_206B_206F_206D_200D_206F_206A_206A_200C_202B_206E_206A_202D_206C_206E_206A_206D_202E_200F_206A_206B_200F_200E_202B_206B_206C_202A_200B_206E_202B_202E_200C_206D_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IDisposable.Dispose()
|
|
{
|
|
int num = _003C_003E1__state;
|
|
int num2 = ((num == -3) ? 501970118 : 501970117);
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
int num4 = 501970116;
|
|
int num5 = num3;
|
|
int num6 = num5 + num4;
|
|
int num7 = num5 & num4;
|
|
switch (num6 - (num7 + num7))
|
|
{
|
|
default:
|
|
continue;
|
|
case 0:
|
|
num2 = 501970117;
|
|
continue;
|
|
case 1:
|
|
if (num == 1)
|
|
{
|
|
num2 = 501970118;
|
|
continue;
|
|
}
|
|
break;
|
|
case 2:
|
|
try
|
|
{
|
|
}
|
|
finally
|
|
{
|
|
_003C_003Em__Finally1();
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
_003C_003E7__wrap1 = default(List<GatheredItem>.Enumerator);
|
|
_003C_003E1__state = -2;
|
|
}
|
|
|
|
private bool MoveNext()
|
|
{
|
|
try
|
|
{
|
|
int num = _003C_003E1__state;
|
|
int num2 = ((num == 0) ? (-716554226) : (-716554239));
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
int num4 = -716554232;
|
|
int num5 = num3;
|
|
int num6 = num5 + num4;
|
|
int num7 = num5 & num4;
|
|
switch (num6 - (num7 + num7))
|
|
{
|
|
case 8:
|
|
num2 = (_003C_003E7__wrap1.MoveNext() ? (-716554228) : (-716554231));
|
|
break;
|
|
case 5:
|
|
_003C_003E1__state = -3;
|
|
num2 = -716554240;
|
|
break;
|
|
case 2:
|
|
return false;
|
|
case 7:
|
|
return false;
|
|
case 0:
|
|
num2 = -716554239;
|
|
break;
|
|
case 3:
|
|
_003C_003E7__wrap1 = _206B_200E_206C_206C_206D_206F_202D_202B_200F_206B_200E_200B_202A_202A_206E_206A_200E_206F_206F_200C_206A_200D_200D_206A_206B_202A_200F_206F_206F_206D_202B_200C_200B_202B_200B_202D_202B_200C_202E_200E_202E(step).GetEnumerator();
|
|
_003C_003E1__state = -3;
|
|
num2 = -716554240;
|
|
break;
|
|
case 9:
|
|
num2 = ((num == 1) ? (-716554227) : (-716554230));
|
|
break;
|
|
case 4:
|
|
{
|
|
GatheredItem current = _003C_003E7__wrap1.Current;
|
|
_003C_003E2__current = new DelayedGatheringTask(current, quest, _206A_202B_202E_200F_202E_206E_206F_200D_200F_200F_202C_206B_206B_200F_206E_202B_206E_200C_202C_206E_206E_206D_206B_200B_206B_202B_202A_206C_206A_200F_202B_206B_200D_206A_206B_200E_206C_202E_206E_202E(sequence));
|
|
_003C_003E1__state = 1;
|
|
return true;
|
|
}
|
|
case 6:
|
|
_003C_003E1__state = -1;
|
|
num2 = ((_200C_202A_202B_206A_202B_206A_206A_200F_206C_202C_206D_206E_202D_206F_206E_202A_206F_202A_206F_206E_206E_202A_202B_202B_206F_200D_200E_206E_206D_200D_200B_206B_200C_206B_206B_206E_206B_202D_206D_206C_202E(step) == EInteractionType.Gather) ? (-716554229) : (-716554225));
|
|
break;
|
|
case 1:
|
|
_003C_003Em__Finally1();
|
|
_003C_003E7__wrap1 = default(List<GatheredItem>.Enumerator);
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
//try-fault
|
|
((IDisposable)this).Dispose();
|
|
throw;
|
|
}
|
|
}
|
|
|
|
bool IEnumerator.MoveNext()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
|
|
return this.MoveNext();
|
|
}
|
|
|
|
private void _003C_003Em__Finally1()
|
|
{
|
|
_003C_003E1__state = -1;
|
|
((IDisposable)_003C_003E7__wrap1/*cast due to .constrained prefix*/).Dispose();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IEnumerator.Reset()
|
|
{
|
|
throw _202C_206F_200C_200C_206F_200D_202A_206B_200D_202A_206B_202A_200D_202C_202A_202A_202B_202B_200D_206E_202E_202A_206D_206F_200B_202B_200E_206E_200B_206E_200B_202D_200D_202B_206F_200B_206E_206F_206C_200C_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator<ITask> IEnumerable<ITask>.GetEnumerator()
|
|
{
|
|
int num = ((_003C_003E1__state != -2) ? (-1452607812) : (-1452607816));
|
|
_003CCreateAllTasks_003Ed__0 _003CCreateAllTasks_003Ed__ = default(_003CCreateAllTasks_003Ed__0);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1452607812;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
_003CCreateAllTasks_003Ed__ = new _003CCreateAllTasks_003Ed__0(0);
|
|
num = -1452607810;
|
|
break;
|
|
case 4:
|
|
num = ((_003C_003El__initialThreadId != _200F_206D_206F_202E_202B_202E_200D_206A_206B_206F_206D_200D_206F_206A_206A_200C_202B_206E_206A_202D_206C_206E_206A_206D_202E_200F_206A_206B_200F_200E_202B_206B_206C_202A_200B_206E_202B_202E_200C_206D_202E()) ? (-1452607812) : (-1452607811));
|
|
break;
|
|
case 3:
|
|
num = -1452607816;
|
|
break;
|
|
case 2:
|
|
_003CCreateAllTasks_003Ed__.quest = _003C_003E3__quest;
|
|
_003CCreateAllTasks_003Ed__.sequence = _003C_003E3__sequence;
|
|
_003CCreateAllTasks_003Ed__.step = _003C_003E3__step;
|
|
return _003CCreateAllTasks_003Ed__;
|
|
case 1:
|
|
_003C_003E1__state = 0;
|
|
_003CCreateAllTasks_003Ed__ = this;
|
|
num = -1452607810;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return ((IEnumerable<ITask>)this).GetEnumerator();
|
|
}
|
|
|
|
static int _200F_206D_206F_202E_202B_202E_200D_206A_206B_206F_206D_200D_206F_206A_206A_200C_202B_206E_206A_202D_206C_206E_206A_206D_202E_200F_206A_206B_200F_200E_202B_206B_206C_202A_200B_206E_202B_202E_200C_206D_202E()
|
|
{
|
|
return Environment.CurrentManagedThreadId;
|
|
}
|
|
|
|
static EInteractionType _200C_202A_202B_206A_202B_206A_206A_200F_206C_202C_206D_206E_202D_206F_206E_202A_206F_202A_206F_206E_206E_202A_202B_202B_206F_200D_200E_206E_206D_200D_200B_206B_200C_206B_206B_206E_206B_202D_206D_206C_202E(QuestStep P_0)
|
|
{
|
|
return P_0.InteractionType;
|
|
}
|
|
|
|
static List<GatheredItem> _206B_200E_206C_206C_206D_206F_202D_202B_200F_206B_200E_200B_202A_202A_206E_206A_200E_206F_206F_200C_206A_200D_200D_206A_206B_202A_200F_206F_206F_206D_202B_200C_200B_202B_200B_202D_202B_200C_202E_200E_202E(QuestStep P_0)
|
|
{
|
|
return P_0.ItemsToGather;
|
|
}
|
|
|
|
static byte _206A_202B_202E_200F_202E_206E_206F_200D_200F_200F_202C_206B_206B_200F_206E_202B_206E_200C_202C_206E_206E_206D_206B_200B_206B_202B_202A_206C_206A_200F_202B_206B_200D_206A_206B_200E_206C_202E_206E_202E(QuestSequence P_0)
|
|
{
|
|
return P_0.Sequence;
|
|
}
|
|
|
|
static NotSupportedException _202C_206F_200C_200C_206F_200D_202A_206B_200D_202A_206B_202A_200D_202C_202A_202A_202B_202B_200D_206E_202E_202A_206D_206F_200B_202B_200E_206E_200B_206E_200B_202D_200D_202B_206F_200B_206E_206F_206C_200C_202E()
|
|
{
|
|
return new NotSupportedException();
|
|
}
|
|
}
|
|
|
|
[IteratorStateMachine(typeof(_003CCreateAllTasks_003Ed__0))]
|
|
public IEnumerable<ITask> CreateAllTasks(Questionable.Model.Quest quest, QuestSequence sequence, QuestStep step)
|
|
{
|
|
//yield-return decompiler failed: Unexpected instruction in Iterator.Dispose()
|
|
return new _003CCreateAllTasks_003Ed__0(-2)
|
|
{
|
|
_003C_003E3__quest = quest,
|
|
_003C_003E3__sequence = sequence,
|
|
_003C_003E3__step = step
|
|
};
|
|
}
|
|
|
|
IEnumerable<ITask> ITaskFactory.CreateAllTasks(Questionable.Model.Quest quest, QuestSequence sequence, QuestStep step)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in CreateAllTasks
|
|
return this.CreateAllTasks(quest, sequence, step);
|
|
}
|
|
}
|
|
|
|
internal sealed record DelayedGatheringTask(GatheredItem GatheredItem, Questionable.Model.Quest Quest, byte Sequence) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _206E_206E_206C_200B_200C_200C_200E_206B_206D_206A_200E_202D_202A_200B_202D_206F_206A_206D_202A_202B_202A_200B_200E_206E_200F_202C_200F_202A_200B_202C_206D_206A_202A_200B_202D_206A_200E_200F_206A_206D_202E(typeof(DelayedGatheringTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(23, 1);
|
|
defaultInterpolatedStringHandler.AppendLiteral(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>(1524160923));
|
|
defaultInterpolatedStringHandler.AppendFormatted(_206E_200F_206D_202D_206D_202D_200E_202D_202E_200F_202B_202B_206B_202A_206E_202B_202A_200C_206D_202E_200B_200D_206B_202D_206C_200E_202A_206A_200D_200F_202C_206E_206D_200C_202A_206F_206C_202A_206B_200E_202E(GatheredItem));
|
|
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>(424561659));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_202C_206E_206B_200C_206C_200E_206A_206E_202A_206A_200B_202B_202D_202C_200C_200E_202D_202A_200C_206D_200E_206C_206B_200F_202D_200E_202C_206B_202E_200C_202D_202D_206D_206D_206D_202A_202A_200E_200C_200F_202E();
|
|
_200C_206B_202C_200D_202B_202B_206B_202B_202D_206B_200C_206B_206D_200B_206E_202E_200B_200C_200B_200D_200D_200B_200B_202A_202C_202A_206B_200F_200C_206D_200D_206A_206B_200B_202B_200F_202A_202B_202D_206D_202E(builder, 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>(872886747));
|
|
_206B_200E_202B_200C_206C_206A_200B_200D_202A_206B_202B_206C_206E_202D_206A_206F_202C_206A_200C_206A_202A_202C_206A_206C_202A_206A_200E_202B_206B_202D_200B_202E_200D_206C_202B_202A_202D_200B_200B_206F_202E(builder, (object)GatheredItem);
|
|
_200C_206B_202C_200D_202B_202B_206B_202B_202D_206B_200C_206B_206D_200B_206E_202E_200B_200C_200B_200D_200D_200B_200B_202A_202C_202A_206B_200F_200C_206D_200D_206A_206B_200B_202B_200F_202A_202B_202D_206D_202E(builder, 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>(-119074861));
|
|
_206B_200E_202B_200C_206C_206A_200B_200D_202A_206B_202B_206C_206E_202D_206A_206F_202C_206A_200C_206A_202A_202C_206A_206C_202A_206A_200E_202B_206B_202D_200B_202E_200D_206C_202B_202A_202D_200B_200B_206F_202E(builder, (object)Quest);
|
|
_200C_206B_202C_200D_202B_202B_206B_202B_202D_206B_200C_206B_206D_200B_206E_202E_200B_200C_200B_200D_200D_200B_200B_202A_202C_202A_206B_200F_200C_206D_200D_206A_206B_200B_202B_200F_202A_202B_202D_206D_202E(builder, 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>(-1883281888));
|
|
_200C_206B_202C_200D_202B_202B_206B_202B_202D_206B_200C_206B_206D_200B_206E_202E_200B_200C_200B_200D_200D_200B_200B_202A_202C_202A_206B_200F_200C_206D_200D_206A_206B_200B_202B_200F_202A_202B_202D_206D_202E(builder, Sequence.ToString());
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(DelayedGatheringTask? other)
|
|
{
|
|
int num = (((object)this == other) ? (-2134449600) : (-2134449596));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -2134449598;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 5:
|
|
num = ((!EqualityComparer<Questionable.Model.Questing.GatheredItem>.Default.Equals(GatheredItem, other.GatheredItem)) ? (-2134449595) : (-2134449598));
|
|
break;
|
|
case 4:
|
|
return EqualityComparer<byte>.Default.Equals(Sequence, other.Sequence);
|
|
case 6:
|
|
num = (((object)other == null) ? (-2134449595) : (-2134449597));
|
|
break;
|
|
case 7:
|
|
return false;
|
|
case 3:
|
|
num = -2134449596;
|
|
break;
|
|
case 1:
|
|
num = ((!_206C_206E_200D_200E_206F_206F_202E_200B_200C_206E_206F_206B_200F_202C_202D_200B_202D_202B_200B_206A_206D_206D_200D_206E_200F_200C_206A_202A_200D_202E_206A_206E_200B_206C_206D_206A_202D_206C_206F_206E_202E(EqualityContract, other.EqualityContract)) ? (-2134449595) : (-2134449593));
|
|
break;
|
|
case 2:
|
|
return true;
|
|
case 0:
|
|
num = ((!EqualityComparer<Questionable.Model.Quest>.Default.Equals(Quest, other.Quest)) ? (-2134449595) : (-2134449594));
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<DelayedGatheringTask>.Equals(DelayedGatheringTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _206E_206E_206C_200B_200C_200C_200E_206B_206D_206A_200E_202D_202A_200B_202D_206F_206A_206D_202A_202B_202A_200B_200E_206E_200F_202C_200F_202A_200B_202C_206D_206A_202A_200B_202D_206A_200E_200F_206A_206D_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static uint _206E_200F_206D_202D_206D_202D_200E_202D_202E_200F_202B_202B_206B_202A_206E_202B_202A_200C_206D_202E_200B_200D_206B_202D_206C_200E_202A_206A_200D_200F_202C_206E_206D_200C_202A_206F_206C_202A_206B_200E_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.ItemId;
|
|
}
|
|
|
|
static void _202C_206E_206B_200C_206C_200E_206A_206E_202A_206A_200B_202B_202D_202C_200C_200E_202D_202A_200C_206D_200E_206C_206B_200F_202D_200E_202C_206B_202E_200C_202D_202D_206D_206D_206D_202A_202A_200E_200C_200F_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _200C_206B_202C_200D_202B_202B_206B_202B_202D_206B_200C_206B_206D_200B_206E_202E_200B_200C_200B_200D_200D_200B_200B_202A_202C_202A_206B_200F_200C_206D_200D_206A_206B_200B_202B_200F_202A_202B_202D_206D_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static StringBuilder _206B_200E_202B_200C_206C_206A_200B_200D_202A_206B_202B_206C_206E_202D_206A_206F_202C_206A_200C_206A_202A_202C_206A_206C_202A_206A_200E_202B_206B_202D_200B_202E_200D_206C_202B_202A_202D_200B_200B_206F_202E(StringBuilder P_0, object P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _206C_206E_200D_200E_206F_206F_202E_200B_200C_206E_206F_206B_200F_202C_202D_200B_202D_202B_200B_206A_206D_206D_200D_206E_200F_200C_206A_202A_200D_202E_206A_206E_200B_206C_206D_206A_202D_206C_206F_206E_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class DelayedGatheringExecutor(GatheringPointRegistry gatheringPointRegistry, TerritoryData territoryData, IClientState clientState, IObjectTable objectTable, IServiceProvider serviceProvider, ILogger<DelayedGatheringExecutor> logger) : TaskExecutor<DelayedGatheringTask>(), IExtraTaskCreator, ITaskExecutor
|
|
{
|
|
[CompilerGenerated]
|
|
private sealed class _003C_003Ec__DisplayClass9_0
|
|
{
|
|
public DelayedGatheringExecutor _003C_003E4__this;
|
|
|
|
public ushort territoryId;
|
|
|
|
internal bool _003CCreateExtraTasks_003Eb__0()
|
|
{
|
|
return _200F_202D_200F_206F_206C_200D_200C_200B_206E_202A_202B_206E_200E_202E_200D_200F_206C_200D_206E_200B_200C_200D_202A_202E_200C_206E_202D_206C_206C_206A_206D_200C_202D_206B_206D_206A_200C_202E_206A_200C_202E(_003C_003E4__this.clientState) == territoryId;
|
|
}
|
|
|
|
static uint _200F_202D_200F_206F_206C_200D_200C_200B_206E_202A_202B_206E_200E_202E_200D_200F_206C_200D_206E_200B_200C_200D_202A_202E_200C_206E_202D_206C_206C_206A_206D_200C_202D_206B_206D_206A_200C_202E_206A_200C_202E(IClientState P_0)
|
|
{
|
|
return P_0.TerritoryType;
|
|
}
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
private sealed class _003CCreateExtraTasks_003Ed__9 : IEnumerable<ITask>, IEnumerable, IEnumerator<ITask>, IEnumerator, IDisposable
|
|
{
|
|
private int _003C_003E1__state;
|
|
|
|
private ITask _003C_003E2__current;
|
|
|
|
private int _003C_003El__initialThreadId;
|
|
|
|
public DelayedGatheringExecutor _003C_003E4__this;
|
|
|
|
private _003C_003Ec__DisplayClass9_0 _003C_003E8__1;
|
|
|
|
private GatheringPointId _003CgatheringPointId_003E5__2;
|
|
|
|
private GatheringRoot _003CgatheringRoot_003E5__3;
|
|
|
|
private IDisposable _003C__003E5__4;
|
|
|
|
private QuestSequence _003CgatheringSequence_003E5__5;
|
|
|
|
private List<QuestStep>.Enumerator _003C_003E7__wrap5;
|
|
|
|
private IEnumerator<ITask> _003C_003E7__wrap6;
|
|
|
|
ITask IEnumerator<ITask>.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
object IEnumerator.Current
|
|
{
|
|
[DebuggerHidden]
|
|
get
|
|
{
|
|
return _003C_003E2__current;
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
public _003CCreateExtraTasks_003Ed__9(int _003C_003E1__state)
|
|
{
|
|
this._003C_003E1__state = _003C_003E1__state;
|
|
_003C_003El__initialThreadId = _200D_200C_202C_200F_200B_202E_206D_202D_200B_202D_206C_206D_200D_200D_206C_200C_206E_202C_206C_200D_200E_202B_200E_206D_200D_200F_206D_202D_202A_202A_206E_202E_202A_202A_200C_206F_206E_200E_206B_206C_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IDisposable.Dispose()
|
|
{
|
|
int num = _003C_003E1__state;
|
|
int num2 = -5;
|
|
int num3 = num;
|
|
int num4 = (((uint)(~(~num3 + num2)) <= 2u) ? 1123138263 : 1123138260);
|
|
while (true)
|
|
{
|
|
int num5 = num4;
|
|
num2 = 1123138261;
|
|
num3 = num5;
|
|
int num6 = num3 + num2;
|
|
int num7 = num3 & num2;
|
|
switch (num6 - (num7 + num7))
|
|
{
|
|
default:
|
|
continue;
|
|
case 0:
|
|
num4 = 1123138260;
|
|
continue;
|
|
case 1:
|
|
num2 = 3;
|
|
num3 = num;
|
|
if ((uint)(~(~num3 + num2)) <= 1u)
|
|
{
|
|
num4 = 1123138263;
|
|
continue;
|
|
}
|
|
break;
|
|
case 2:
|
|
try
|
|
{
|
|
num2 = -5;
|
|
num3 = num;
|
|
num4 = (((uint)(~(~num3 + num2)) <= 1u) ? (-1825309648) : (-1825309647));
|
|
while (true)
|
|
{
|
|
int num8 = num4;
|
|
num2 = -1825309648;
|
|
num3 = num8;
|
|
switch ((num3 | num2) - (num3 & num2))
|
|
{
|
|
case 3:
|
|
goto end_IL_00a0;
|
|
case 1:
|
|
num2 = 3;
|
|
num3 = num;
|
|
num4 = (((uint)(~(~num3 + num2)) <= 1u) ? (-1825309648) : (-1825309645));
|
|
break;
|
|
case 2:
|
|
num4 = -1825309647;
|
|
break;
|
|
case 0:
|
|
try
|
|
{
|
|
num4 = ((num == -5) ? 1981551720 : 1981551722);
|
|
while (true)
|
|
{
|
|
int num9 = num4;
|
|
num2 = 1981551723;
|
|
num3 = num9;
|
|
int num10 = num3 + num2;
|
|
int num11 = num3 & num2;
|
|
switch (num10 - (num11 + num11))
|
|
{
|
|
case 0:
|
|
num4 = 1981551722;
|
|
break;
|
|
case 1:
|
|
num2 = 3;
|
|
num3 = num;
|
|
num4 = (((uint)(~(~num3 + num2)) <= 1u) ? 1981551720 : 1981551721);
|
|
break;
|
|
case 2:
|
|
goto end_IL_0128;
|
|
case 3:
|
|
try
|
|
{
|
|
}
|
|
finally
|
|
{
|
|
_003C_003Em__Finally3();
|
|
}
|
|
goto end_IL_0128;
|
|
}
|
|
continue;
|
|
end_IL_0128:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
_003C_003Em__Finally2();
|
|
}
|
|
goto end_IL_00a0;
|
|
}
|
|
continue;
|
|
end_IL_00a0:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
_003C_003Em__Finally1();
|
|
}
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
_003C_003E8__1 = null;
|
|
_003CgatheringPointId_003E5__2 = null;
|
|
_003CgatheringRoot_003E5__3 = null;
|
|
_003C__003E5__4 = null;
|
|
_003CgatheringSequence_003E5__5 = null;
|
|
_003C_003E7__wrap5 = default(List<QuestStep>.Enumerator);
|
|
_003C_003E7__wrap6 = null;
|
|
_003C_003E1__state = -2;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private bool MoveNext()
|
|
{
|
|
try
|
|
{
|
|
int num = _003C_003E1__state;
|
|
DelayedGatheringExecutor delayedGatheringExecutor = _003C_003E4__this;
|
|
int num2;
|
|
ITask current = default(ITask);
|
|
uint? num8 = default(uint?);
|
|
EClassJob valueOrDefault = default(EClassJob);
|
|
IPlayerCharacter playerCharacter;
|
|
switch (num)
|
|
{
|
|
default:
|
|
num2 = 89540057;
|
|
goto IL_0044;
|
|
case 4:
|
|
_003C_003E1__state = -5;
|
|
num2 = 89540053;
|
|
goto IL_0044;
|
|
case 5:
|
|
goto IL_027e;
|
|
case 7:
|
|
goto IL_02d2;
|
|
case 3:
|
|
goto IL_032f;
|
|
case 1:
|
|
goto IL_03e1;
|
|
case 0:
|
|
goto IL_0442;
|
|
case 6:
|
|
goto IL_05b7;
|
|
case 2:
|
|
goto IL_061c;
|
|
case 8:
|
|
break;
|
|
IL_0044:
|
|
while (true)
|
|
{
|
|
int num3 = num2;
|
|
int num4 = 89540036;
|
|
int num5 = num3;
|
|
int num6 = num5 + num4;
|
|
int num7 = num5 & num4;
|
|
EClassJob? obj;
|
|
EClassJob? eClassJob;
|
|
switch (num6 - (num7 + num7))
|
|
{
|
|
case 7:
|
|
_003C_003E2__current = new Questionable.Controller.Steps.Interactions.Action.TriggerStatusIfMissing(EStatus.Triangulate, EAction.Triangulate);
|
|
_003C_003E1__state = 2;
|
|
return true;
|
|
case 2:
|
|
_003C_003E2__current = current;
|
|
_003C_003E1__state = 4;
|
|
return true;
|
|
case 27:
|
|
_003C_003Em__Finally2();
|
|
_003C_003E7__wrap5 = default(List<QuestStep>.Enumerator);
|
|
_003CgatheringSequence_003E5__5 = null;
|
|
_003C_003Em__Finally1();
|
|
_003C__003E5__4 = null;
|
|
_003C_003E8__1.territoryId = _200C_202D_202B_202C_202D_202B_200B_202D_206B_206E_202C_206D_202B_206E_202D_206A_200E_206E_206D_206F_200F_202E_200D_200B_202A_206D_206F_200F_200C_200C_206F_206A_202E_206B_202D_200D_206F_202D_200B_202E_202E(_206A_202E_206E_206A_200B_202A_206C_206C_200B_200F_200B_206A_200E_206F_202C_200E_202C_202C_200B_206A_202A_202E_206A_206A_206E_200D_202A_200E_202A_206A_206B_200B_206E_200F_202A_206D_206F_206A_200C_206C_202E(_003CgatheringRoot_003E5__3).Last());
|
|
_003C_003E2__current = new WaitCondition.Task(() => _003C_003Ec__DisplayClass9_0._200F_202D_200F_206F_206C_200D_200C_200B_206E_202A_202B_206E_200E_202E_200D_200F_206C_200D_206E_200B_200C_200D_202A_202E_200C_206E_202D_206C_206C_206A_206D_200C_202D_206B_206D_206A_200C_202E_206A_200C_202E(_003C_003E8__1._003C_003E4__this.clientState) == _003C_003E8__1.territoryId, _200E_206E_206E_200F_202B_200F_200D_202E_200D_202A_206B_202A_206F_202D_202E_202D_200B_200B_206B_206E_206E_206D_206C_206A_200C_206B_206B_202B_206E_206B_200E_202E_206E_206A_202A_206D_202D_200B_206A_202A_202E(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>(-344536108), delayedGatheringExecutor.territoryData.GetNameAndId(_003C_003E8__1.territoryId), 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>(1735737295)));
|
|
_003C_003E1__state = 5;
|
|
return true;
|
|
case 0:
|
|
_003C_003E2__current = new SkipMarker();
|
|
_003C_003E1__state = 3;
|
|
return true;
|
|
case 19:
|
|
num2 = 89540057;
|
|
break;
|
|
case 6:
|
|
{
|
|
QuestStep current2 = _003C_003E7__wrap5.Current;
|
|
_003C_003E7__wrap6 = delayedGatheringExecutor.serviceProvider.GetRequiredService<TaskCreator>().CreateTasks(delayedGatheringExecutor.Task.Quest, delayedGatheringExecutor.Task.Sequence, _003CgatheringSequence_003E5__5, current2).GetEnumerator();
|
|
_003C_003E1__state = -5;
|
|
num2 = 89540053;
|
|
break;
|
|
}
|
|
case 12:
|
|
goto end_IL_0044;
|
|
case 28:
|
|
goto IL_027e;
|
|
case 17:
|
|
goto IL_02aa;
|
|
case 3:
|
|
goto IL_02d2;
|
|
case 21:
|
|
goto IL_02fe;
|
|
case 14:
|
|
goto IL_032f;
|
|
case 11:
|
|
{
|
|
_003C__003E5__4 = delayedGatheringExecutor.logger.BeginScope(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>(2071352719));
|
|
_003C_003E1__state = -3;
|
|
QuestSequence questSequence = _206C_200E_200D_200C_206C_202B_202B_200F_202A_206F_200B_200B_202D_200C_206A_200D_206D_206F_200F_202B_206F_206D_202B_206D_200C_206B_206F_200F_206A_206B_206C_202C_202C_200E_200B_206E_200E_206C_200C_206B_202E();
|
|
_202E_200E_200D_202E_206D_202E_202B_202E_202E_206F_200D_200B_200E_206B_206B_200B_202D_200C_206B_206A_206F_206F_206D_202C_202D_206F_206C_202D_200C_200C_202A_206B_206E_200E_206A_206A_200C_202A_206F_202E(questSequence, (byte)0);
|
|
_206C_206E_202E_202A_200D_202D_202D_200D_200B_206A_206A_206C_202C_202D_206C_206A_202A_202A_206A_200D_202B_202C_206F_200C_200C_200D_202A_200B_206B_200F_206D_200C_206E_200B_206E_202E_206B_200B_202B_200D_202E(questSequence, _206A_202E_206E_206A_200B_202A_206C_206C_200B_200F_200B_206A_200E_206F_202C_200E_202C_202C_200B_206A_202A_202E_206A_206A_206E_200D_202A_200E_202A_206A_206B_200B_206E_200F_202A_206D_206F_206A_200C_206C_202E(_003CgatheringRoot_003E5__3));
|
|
_003CgatheringSequence_003E5__5 = questSequence;
|
|
_003C_003E7__wrap5 = _202C_202E_206B_202A_206D_206E_202B_200D_206E_202D_206C_206C_200D_200C_200E_200B_200B_206E_206C_202C_206C_206A_200B_202C_206F_206F_206F_200E_206D_206F_206C_206B_202D_202C_206C_206D_200E_206F_206D_200D_202E(_003CgatheringSequence_003E5__5).GetEnumerator();
|
|
_003C_003E1__state = -4;
|
|
num2 = 89540050;
|
|
break;
|
|
}
|
|
case 16:
|
|
return false;
|
|
case 5:
|
|
obj = null;
|
|
goto IL_04cb;
|
|
case 23:
|
|
goto IL_03e1;
|
|
case 26:
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler2 = new DefaultInterpolatedStringHandler(34, 1);
|
|
defaultInterpolatedStringHandler2.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>(671015877));
|
|
defaultInterpolatedStringHandler2.AppendFormatted(_003CgatheringPointId_003E5__2);
|
|
throw new TaskException(defaultInterpolatedStringHandler2.ToStringAndClear());
|
|
}
|
|
case 8:
|
|
_003C_003Em__Finally3();
|
|
_003C_003E7__wrap6 = null;
|
|
num2 = 89540050;
|
|
break;
|
|
case 4:
|
|
goto IL_0442;
|
|
case 9:
|
|
obj = (EClassJob)num8.GetValueOrDefault();
|
|
goto IL_04cb;
|
|
case 30:
|
|
goto IL_0514;
|
|
case 15:
|
|
_003C_003E2__current = new Questionable.Controller.Steps.Interactions.Action.TriggerStatusIfMissing(EStatus.Prospect, EAction.Prospect);
|
|
_003C_003E1__state = 1;
|
|
return true;
|
|
case 10:
|
|
goto IL_0577;
|
|
case 20:
|
|
goto IL_0597;
|
|
case 18:
|
|
goto IL_05b7;
|
|
case 22:
|
|
goto IL_05f4;
|
|
case 1:
|
|
goto IL_061c;
|
|
case 24:
|
|
goto IL_062f;
|
|
case 13:
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(34, 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>(-1028708086));
|
|
defaultInterpolatedStringHandler.AppendFormatted(_200B_206D_202A_202B_206A_202E_202D_200F_200F_202D_202D_200D_202C_206F_206B_206F_202E_206B_206C_206E_206F_200E_206D_206F_200F_206E_200F_202B_206F_206B_206E_200B_200F_206B_206D_206E_206A_200D_200F_206F_202E(delayedGatheringExecutor.Task.GatheredItem));
|
|
throw new TaskException(defaultInterpolatedStringHandler.ToStringAndClear());
|
|
}
|
|
case 29:
|
|
return false;
|
|
case 25:
|
|
goto end_IL_000f;
|
|
IL_04cb:
|
|
eClassJob = obj;
|
|
valueOrDefault = eClassJob.GetValueOrDefault();
|
|
num2 = (delayedGatheringExecutor.gatheringPointRegistry.TryGetGatheringPointId(_200B_206D_202A_202B_206A_202E_202D_200F_200F_202D_202D_200D_202C_206F_206B_206F_202E_206B_206C_206E_206F_200E_206D_206F_200F_206E_200F_202B_206F_206B_206E_200B_200F_206B_206D_206E_206A_200D_200F_206F_202E(delayedGatheringExecutor.Task.GatheredItem), valueOrDefault, out _003CgatheringPointId_003E5__2) ? 89540058 : 89540041);
|
|
break;
|
|
}
|
|
continue;
|
|
IL_062f:
|
|
num2 = ((!delayedGatheringExecutor.HasRequiredItems(delayedGatheringExecutor.Task.GatheredItem)) ? 89540048 : 89540052);
|
|
continue;
|
|
IL_02aa:
|
|
num2 = (_202B_202A_206A_206E_202B_206C_200D_200D_200F_206F_200E_202A_206D_202A_200B_206F_200C_202A_200F_200C_206E_206F_206C_202C_200B_202C_200C_200F_206E_202C_200D_200D_200D_202B_202A_202D_202D_202B_202B_206A_202E((IEnumerator)_003C_003E7__wrap6) ? 89540049 : 89540044);
|
|
continue;
|
|
IL_0514:
|
|
num2 = (delayedGatheringExecutor.gatheringPointRegistry.TryGetGatheringPoint(_003CgatheringPointId_003E5__2, out _003CgatheringRoot_003E5__3) ? 89540060 : 89540062);
|
|
continue;
|
|
IL_05f4:
|
|
num2 = (_003C_003E7__wrap5.MoveNext() ? 89540034 : 89540063);
|
|
continue;
|
|
IL_0577:
|
|
num2 = ((valueOrDefault != EClassJob.Botanist) ? 89540047 : 89540035);
|
|
continue;
|
|
IL_02fe:
|
|
current = _003C_003E7__wrap6.Current;
|
|
num2 = ((!(current is WaitAtEnd.NextStep)) ? 89540038 : 89540036);
|
|
continue;
|
|
IL_0597:
|
|
num2 = ((valueOrDefault != EClassJob.Miner) ? 89540046 : 89540043);
|
|
continue;
|
|
end_IL_0044:
|
|
break;
|
|
}
|
|
goto case 4;
|
|
IL_061c:
|
|
_003C_003E1__state = -1;
|
|
num2 = 89540047;
|
|
goto IL_0044;
|
|
IL_05b7:
|
|
_003C_003E1__state = -1;
|
|
_003C_003E2__current = new GatheringTask(_003CgatheringPointId_003E5__2, delayedGatheringExecutor.Task.GatheredItem);
|
|
_003C_003E1__state = 7;
|
|
return true;
|
|
IL_0442:
|
|
_003C_003E1__state = -1;
|
|
_003C_003E8__1 = new _003C_003Ec__DisplayClass9_0();
|
|
_003C_003E8__1._003C_003E4__this = _003C_003E4__this;
|
|
playerCharacter = _206A_202E_200F_206A_206D_202C_206E_202C_206A_206F_206A_200F_202B_206D_202C_200F_206C_202A_200C_206D_206A_206F_200B_202B_202C_200D_206B_202A_200F_202A_200C_200B_206A_206F_202B_202E_200C_200F_206D_202E_202E(delayedGatheringExecutor.objectTable);
|
|
num8 = ((playerCharacter != null) ? new uint?(_202A_206A_200F_200B_206A_206C_200D_202C_206F_206C_200B_200C_202D_206B_206B_200B_202A_206A_206F_206A_202B_200B_206D_206E_206D_202A_206A_200F_200D_202E_202A_200C_200D_200D_200F_200B_200B_200C_200E_206F_202E((ICharacter)playerCharacter).RowId) : ((uint?)null));
|
|
num2 = (num8.HasValue ? 89540045 : 89540033);
|
|
goto IL_0044;
|
|
IL_032f:
|
|
_003C_003E1__state = -5;
|
|
num2 = 89540053;
|
|
goto IL_0044;
|
|
IL_02d2:
|
|
_003C_003E1__state = -1;
|
|
_003C_003E2__current = new WaitAtEnd.WaitDelay();
|
|
_003C_003E1__state = 8;
|
|
return true;
|
|
IL_03e1:
|
|
_003C_003E1__state = -1;
|
|
num2 = 89540047;
|
|
goto IL_0044;
|
|
IL_027e:
|
|
_003C_003E1__state = -1;
|
|
_003C_003E2__current = new WaitNavmesh.Task();
|
|
_003C_003E1__state = 6;
|
|
return true;
|
|
end_IL_000f:
|
|
break;
|
|
}
|
|
_003C_003E1__state = -1;
|
|
return false;
|
|
}
|
|
catch
|
|
{
|
|
//try-fault
|
|
((IDisposable)this).Dispose();
|
|
throw;
|
|
}
|
|
}
|
|
|
|
bool IEnumerator.MoveNext()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in MoveNext
|
|
return this.MoveNext();
|
|
}
|
|
|
|
private void _003C_003Em__Finally1()
|
|
{
|
|
_003C_003E1__state = -1;
|
|
int num = ((_003C__003E5__4 == null) ? (-1005292741) : (-1005292744));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1005292742;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 1:
|
|
return;
|
|
case 2:
|
|
_202E_206D_200E_202A_200F_200E_202C_202E_202E_202E_206A_202E_200B_206C_200B_206D_200B_202D_206B_202D_206B_206E_206C_206F_206A_206C_206D_200C_206A_200F_200D_206B_200E_206B_206F_206E_206E_202E_206F_200E_202E(_003C__003E5__4);
|
|
num = -1005292741;
|
|
break;
|
|
case 0:
|
|
num = -1005292744;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
private void _003C_003Em__Finally2()
|
|
{
|
|
_003C_003E1__state = -3;
|
|
((IDisposable)_003C_003E7__wrap5/*cast due to .constrained prefix*/).Dispose();
|
|
}
|
|
|
|
private void _003C_003Em__Finally3()
|
|
{
|
|
_003C_003E1__state = -4;
|
|
int num = ((_003C_003E7__wrap6 == null) ? (-1601712229) : (-1601712230));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -1601712229;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 2:
|
|
num = -1601712230;
|
|
break;
|
|
case 1:
|
|
_202E_206D_200E_202A_200F_200E_202C_202E_202E_202E_206A_202E_200B_206C_200B_206D_200B_202D_206B_202D_206B_206E_206C_206F_206A_206C_206D_200C_206A_200F_200D_206B_200E_206B_206F_206E_206E_202E_206F_200E_202E((IDisposable)_003C_003E7__wrap6);
|
|
num = -1601712229;
|
|
break;
|
|
case 0:
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
void IEnumerator.Reset()
|
|
{
|
|
throw _206B_200C_202A_202C_206F_202E_202D_206F_202D_202D_200F_206B_200E_202C_206E_200D_200F_200B_200D_200B_202D_202D_200F_202C_200D_206D_200F_200F_206D_200C_206A_206B_202D_202C_202D_202D_202A_206A_200F_202D_202E();
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator<ITask> IEnumerable<ITask>.GetEnumerator()
|
|
{
|
|
int num = ((_003C_003E1__state != -2) ? 323197088 : 323197093);
|
|
_003CCreateExtraTasks_003Ed__9 result = default(_003CCreateExtraTasks_003Ed__9);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 323197089;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
num = 323197093;
|
|
break;
|
|
case 2:
|
|
return result;
|
|
case 4:
|
|
num = ((_003C_003El__initialThreadId != _200D_200C_202C_200F_200B_202E_206D_202D_200B_202D_206C_206D_200D_200D_206C_200C_206E_202C_206C_200D_200E_202B_200E_206D_200D_200F_206D_202D_202A_202A_206E_202E_202A_202A_200C_206F_206E_200E_206B_206C_202E()) ? 323197088 : 323197090);
|
|
break;
|
|
case 3:
|
|
_003C_003E1__state = 0;
|
|
result = this;
|
|
num = 323197091;
|
|
break;
|
|
case 1:
|
|
result = new _003CCreateExtraTasks_003Ed__9(0)
|
|
{
|
|
_003C_003E4__this = _003C_003E4__this
|
|
};
|
|
num = 323197091;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
[DebuggerHidden]
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return ((IEnumerable<ITask>)this).GetEnumerator();
|
|
}
|
|
|
|
static int _200D_200C_202C_200F_200B_202E_206D_202D_200B_202D_206C_206D_200D_200D_206C_200C_206E_202C_206C_200D_200E_202B_200E_206D_200D_200F_206D_202D_202A_202A_206E_202E_202A_202A_200C_206F_206E_200E_206B_206C_202E()
|
|
{
|
|
return Environment.CurrentManagedThreadId;
|
|
}
|
|
|
|
static IPlayerCharacter _206A_202E_200F_206A_206D_202C_206E_202C_206A_206F_206A_200F_202B_206D_202C_200F_206C_202A_200C_206D_206A_206F_200B_202B_202C_200D_206B_202A_200F_202A_200C_200B_206A_206F_202B_202E_200C_200F_206D_202E_202E(IObjectTable P_0)
|
|
{
|
|
return P_0.LocalPlayer;
|
|
}
|
|
|
|
static RowRef<ClassJob> _202A_206A_200F_200B_206A_206C_200D_202C_206F_206C_200B_200C_202D_206B_206B_200B_202A_206A_206F_206A_202B_200B_206D_206E_206D_202A_206A_200F_200D_202E_202A_200C_200D_200D_200F_200B_200B_200C_200E_206F_202E(ICharacter P_0)
|
|
{
|
|
return P_0.ClassJob;
|
|
}
|
|
|
|
static uint _200B_206D_202A_202B_206A_202E_202D_200F_200F_202D_202D_200D_202C_206F_206B_206F_202E_206B_206C_206E_206F_200E_206D_206F_200F_206E_200F_202B_206F_206B_206E_200B_200F_206B_206D_206E_206A_200D_200F_206F_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.ItemId;
|
|
}
|
|
|
|
static QuestSequence _206C_200E_200D_200C_206C_202B_202B_200F_202A_206F_200B_200B_202D_200C_206A_200D_206D_206F_200F_202B_206F_206D_202B_206D_200C_206B_206F_200F_206A_206B_206C_202C_202C_200E_200B_206E_200E_206C_200C_206B_202E()
|
|
{
|
|
return new QuestSequence();
|
|
}
|
|
|
|
static void _202E_200E_200D_202E_206D_202E_202B_202E_202E_206F_200D_200B_200E_206B_206B_200B_202D_200C_206B_206A_206F_206F_206D_202C_202D_206F_206C_202D_200C_200C_202A_206B_206E_200E_206A_206A_200C_202A_206F_202E(QuestSequence P_0, byte P_1)
|
|
{
|
|
P_0.Sequence = P_1;
|
|
}
|
|
|
|
static List<QuestStep> _206A_202E_206E_206A_200B_202A_206C_206C_200B_200F_200B_206A_200E_206F_202C_200E_202C_202C_200B_206A_202A_202E_206A_206A_206E_200D_202A_200E_202A_206A_206B_200B_206E_200F_202A_206D_206F_206A_200C_206C_202E(GatheringRoot P_0)
|
|
{
|
|
return P_0.Steps;
|
|
}
|
|
|
|
static void _206C_206E_202E_202A_200D_202D_202D_200D_200B_206A_206A_206C_202C_202D_206C_206A_202A_202A_206A_200D_202B_202C_206F_200C_200C_200D_202A_200B_206B_200F_206D_200C_206E_200B_206E_202E_206B_200B_202B_200D_202E(QuestSequence P_0, List<QuestStep> P_1)
|
|
{
|
|
P_0.Steps = P_1;
|
|
}
|
|
|
|
static List<QuestStep> _202C_202E_206B_202A_206D_206E_202B_200D_206E_202D_206C_206C_200D_200C_200E_200B_200B_206E_206C_202C_206C_206A_200B_202C_206F_206F_206F_200E_206D_206F_206C_206B_202D_202C_206C_206D_200E_206F_206D_200D_202E(QuestSequence P_0)
|
|
{
|
|
return P_0.Steps;
|
|
}
|
|
|
|
static bool _202B_202A_206A_206E_202B_206C_200D_200D_200F_206F_200E_202A_206D_202A_200B_206F_200C_202A_200F_200C_206E_206F_206C_202C_200B_202C_200C_200F_206E_202C_200D_200D_200D_202B_202A_202D_202D_202B_202B_206A_202E(IEnumerator P_0)
|
|
{
|
|
return P_0.MoveNext();
|
|
}
|
|
|
|
static ushort _200C_202D_202B_202C_202D_202B_200B_202D_206B_206E_202C_206D_202B_206E_202D_206A_200E_206E_206D_206F_200F_202E_200D_200B_202A_206D_206F_200F_200C_200C_206F_206A_202E_206B_202D_200D_206F_202D_200B_202E_202E(QuestStep P_0)
|
|
{
|
|
return P_0.TerritoryId;
|
|
}
|
|
|
|
static string _200E_206E_206E_200F_202B_200F_200D_202E_200D_202A_206B_202A_206F_202D_202E_202D_200B_200B_206B_206E_206E_206D_206C_206A_200C_206B_206B_202B_206E_206B_200E_202E_206E_206A_202A_206D_202D_200B_206A_202A_202E(string P_0, string P_1, string P_2)
|
|
{
|
|
return P_0 + P_1 + P_2;
|
|
}
|
|
|
|
static void _202E_206D_200E_202A_200F_200E_202C_202E_202E_202E_206A_202E_200B_206C_200B_206D_200B_202D_206B_202D_206B_206E_206C_206F_206A_206C_206D_200C_206A_200F_200D_206B_200E_206B_206F_206E_206E_202E_206F_200E_202E(IDisposable P_0)
|
|
{
|
|
P_0.Dispose();
|
|
}
|
|
|
|
static NotSupportedException _206B_200C_202A_202C_206F_202E_202D_206F_202D_202D_200F_206B_200E_202C_206E_200D_200F_200B_200D_200B_202D_202D_200F_202C_200D_206D_200F_200F_206D_200C_206A_206B_202D_202C_202D_202D_202A_206A_200F_202D_202E()
|
|
{
|
|
return new NotSupportedException();
|
|
}
|
|
}
|
|
|
|
protected override bool Start()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
return ETaskResult.CreateNewTasks;
|
|
}
|
|
|
|
[IteratorStateMachine(typeof(_003CCreateExtraTasks_003Ed__9))]
|
|
public IEnumerable<ITask> CreateExtraTasks()
|
|
{
|
|
//yield-return decompiler failed: Unexpected instruction in Iterator.Dispose()
|
|
return new _003CCreateExtraTasks_003Ed__9(-2)
|
|
{
|
|
_003C_003E4__this = this
|
|
};
|
|
}
|
|
|
|
IEnumerable<ITask> IExtraTaskCreator.CreateExtraTasks()
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in CreateExtraTasks
|
|
return this.CreateExtraTasks();
|
|
}
|
|
|
|
private unsafe bool HasRequiredItems(GatheredItem itemToGather)
|
|
{
|
|
InventoryManager* ptr = InventoryManager.Instance();
|
|
int num = ((ptr == null) ? 99162619 : 99162616);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 99162618;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 1:
|
|
return false;
|
|
case 2:
|
|
return ptr->GetInventoryItemCount(_200F_200C_202C_202B_200F_206F_202C_200B_202E_206E_200C_206A_200F_202E_200B_200E_202C_200F_200F_206D_202D_200E_206C_206E_200C_206C_202A_206A_202C_202D_200D_202D_206C_206A_200F_206D_202A_206C_202C_200C_202E(itemToGather), isHq: false, checkEquipped: true, checkArmory: true, (short)_202D_206C_202A_206D_200E_202D_200D_200E_202B_200D_202B_200C_200C_200E_200C_206D_200C_200B_200D_202D_202E_200C_202A_202D_202D_206F_206C_206E_200F_202A_200D_200E_206A_206E_200D_200D_200D_206E_206C_202D_202E(itemToGather)) >= _206E_202E_202A_206C_202A_206B_206F_202B_206F_202C_200D_202D_200B_202D_206F_202D_200F_200F_202B_202C_206A_206C_200E_206E_206E_202D_206A_202B_206D_206C_200E_202E_202A_206E_206A_206D_200B_206A_200D_202E_202E(itemToGather);
|
|
case 0:
|
|
goto IL_006f;
|
|
}
|
|
continue;
|
|
IL_006f:
|
|
num = 99162616;
|
|
}
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static uint _200F_200C_202C_202B_200F_206F_202C_200B_202E_206E_200C_206A_200F_202E_200B_200E_202C_200F_200F_206D_202D_200E_206C_206E_200C_206C_202A_206A_202C_202D_200D_202D_206C_206A_200F_206D_202A_206C_202C_200C_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.ItemId;
|
|
}
|
|
|
|
static ushort _202D_206C_202A_206D_200E_202D_200D_200E_202B_200D_202B_200C_200C_200E_200C_206D_200C_200B_200D_202D_202E_200C_202A_202D_202D_206F_206C_206E_200F_202A_200D_200E_206A_206E_200D_200D_200D_206E_206C_202D_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.Collectability;
|
|
}
|
|
|
|
static int _206E_202E_202A_206C_202A_206B_206F_202B_206F_202C_200D_202D_200B_202D_206F_202D_200F_200F_202B_202C_206A_206C_200E_206E_206E_202D_206A_202B_206D_206C_200E_202E_202A_206E_206A_206D_200B_206A_200D_202E_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.ItemCount;
|
|
}
|
|
}
|
|
|
|
internal sealed record GatheringTask(GatheringPointId gatheringPointId, GatheredItem gatheredItem) : ITask
|
|
{
|
|
[CompilerGenerated]
|
|
private Type EqualityContract
|
|
{
|
|
[CompilerGenerated]
|
|
get
|
|
{
|
|
return _202B_206D_206F_206D_206B_202B_206A_202E_206A_200F_200D_200E_200C_200F_202C_200B_202A_206F_202C_202B_202E_206F_200C_206D_206E_202A_202D_202B_202C_200F_200B_206E_202C_200D_202B_200D_206C_202C_200F_206D_202E(typeof(GatheringTask).TypeHandle);
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
int num = ((_200E_202D_202E_200B_200B_202A_200E_200F_206E_202A_200B_206D_200F_206F_206B_202B_202C_200C_200B_206F_206B_206E_206C_202E_206F_200B_202D_200E_206A_200D_202A_200B_200C_202C_206A_200B_206B_206D_200D_206A_202E(gatheredItem) != 0) ? 728893262 : 728893261);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 728893263;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_004e;
|
|
case 1:
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler2 = new DefaultInterpolatedStringHandler(12, 4);
|
|
defaultInterpolatedStringHandler2.AppendLiteral(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>(-327203269));
|
|
defaultInterpolatedStringHandler2.AppendFormatted(_202D_200E_202E_200B_202D_206B_200C_206B_202D_200F_200D_206C_200E_206C_206E_202E_206F_202C_200B_206C_202D_200F_202E_200D_206B_206E_200D_202A_200B_206B_202B_206A_206E_202B_200F_206E_206E_202A_200D_206F_202E(gatheredItem));
|
|
defaultInterpolatedStringHandler2.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>(-208532066));
|
|
defaultInterpolatedStringHandler2.AppendFormatted(_206A_202C_206F_202A_200F_200C_200E_202B_200F_206B_206F_200E_200E_200F_206B_200B_202D_206C_202D_200E_202C_200E_206B_202A_200D_202C_200D_206A_206C_202E_200E_202C_206F_202E_206B_206E_206A_206F_202A_200C_202E(gatheredItem));
|
|
defaultInterpolatedStringHandler2.AppendLiteral(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>(751790982));
|
|
defaultInterpolatedStringHandler2.AppendFormatted(_206A_206E_200E_202C_200D_206C_200E_200C_202E_202B_202C_206D_206F_206E_202B_200B_206F_202D_206D_200D_206F_206D_200D_200D_202E_202B_206E_202C_206F_202D_202A_200D_206C_202C_202A_200F_206C_200C_206F_200F_202E(SeIconChar.Collectible));
|
|
defaultInterpolatedStringHandler2.AppendLiteral(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>(-324914973));
|
|
defaultInterpolatedStringHandler2.AppendFormatted(_200E_202D_202E_200B_200B_202A_200E_200F_206E_202A_200B_206D_200F_206F_206B_202B_202C_200C_200B_206F_206B_206E_206C_202E_206F_200B_202D_200E_206A_200D_202A_200B_200C_202C_206A_200B_206B_206D_200D_206A_202E(gatheredItem));
|
|
defaultInterpolatedStringHandler2.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>(424561659));
|
|
return defaultInterpolatedStringHandler2.ToStringAndClear();
|
|
}
|
|
case 2:
|
|
{
|
|
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(10, 2);
|
|
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>(426601948));
|
|
defaultInterpolatedStringHandler.AppendFormatted(_202D_200E_202E_200B_202D_206B_200C_206B_202D_200F_200D_206C_200E_206C_206E_202E_206F_202C_200B_206C_202D_200F_202E_200D_206B_206E_200D_202A_200B_206B_202B_206A_206E_202B_200F_206E_206E_202A_200D_206F_202E(gatheredItem));
|
|
defaultInterpolatedStringHandler.AppendLiteral(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>(1106455763));
|
|
defaultInterpolatedStringHandler.AppendFormatted(_206A_202C_206F_202A_200F_200C_200E_202B_200F_206B_206F_200E_200E_200F_206B_200B_202D_206C_202D_200E_202C_200E_206B_202A_200D_202C_200D_206A_206C_202E_200E_202C_206F_202E_206B_206E_206A_206F_202A_200C_202E(gatheredItem));
|
|
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>(444206578));
|
|
return defaultInterpolatedStringHandler.ToStringAndClear();
|
|
}
|
|
}
|
|
continue;
|
|
IL_004e:
|
|
num = 728893261;
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[CompilerGenerated]
|
|
private bool PrintMembers(StringBuilder builder)
|
|
{
|
|
_202C_202C_206A_206E_200C_200E_200D_200F_200F_206C_200F_206F_200B_202A_200E_206F_202E_206D_206D_202D_206F_206A_202C_202C_200E_202E_206F_202E_206A_200D_200E_200D_200F_200F_200D_202B_202C_200D_202E_202C_202E();
|
|
_200D_202E_200C_206E_206D_202C_202E_206F_200B_200F_206F_202D_206B_202B_206D_200F_206F_202B_202D_200B_200C_202A_206B_206D_200C_200C_206D_206F_200B_200E_206F_206A_206D_206A_200C_206E_200D_202C_202A_202C_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>(840646262));
|
|
_200E_202D_200B_206F_202B_202E_202C_200B_206A_202C_202A_200F_202C_206D_206D_206F_200E_202D_206F_202B_202C_206A_206B_202C_206B_200B_206E_206E_200F_200F_206D_200C_206F_200C_202B_200E_206F_200F_200F_206D_202E(builder, (object)gatheringPointId);
|
|
_200D_202E_200C_206E_206D_202C_202E_206F_200B_200F_206F_202D_206B_202B_206D_200F_206F_202B_202D_200B_200C_202A_206B_206D_200C_200C_206D_206F_200B_200E_206F_206A_206D_206A_200C_206E_200D_202C_202A_202C_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>(-1356593095));
|
|
_200E_202D_200B_206F_202B_202E_202C_200B_206A_202C_202A_200F_202C_206D_206D_206F_200E_202D_206F_202B_202C_206A_206B_202C_206B_200B_206E_206E_200F_200F_206D_200C_206F_200C_202B_200E_206F_200F_200F_206D_202E(builder, (object)gatheredItem);
|
|
return true;
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public bool Equals(GatheringTask? other)
|
|
{
|
|
int num = (((object)this == other) ? 1583305302 : 1583305297);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1583305303;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 3:
|
|
num = 1583305297;
|
|
break;
|
|
case 1:
|
|
return true;
|
|
case 6:
|
|
num = (((object)other == null) ? 1583305298 : 1583305299);
|
|
break;
|
|
case 4:
|
|
num = ((!_200F_200B_200B_202D_202B_202A_200E_206E_206E_202B_206E_202E_200E_206C_200B_202B_202C_206D_202D_206B_202A_206C_206B_200B_202B_206F_206F_206E_200E_202D_200C_202E_206D_206E_200B_202A_200F_206B_200C_206D_202E(EqualityContract, other.EqualityContract)) ? 1583305298 : 1583305301);
|
|
break;
|
|
case 2:
|
|
num = ((!EqualityComparer<GatheringPointId>.Default.Equals(gatheringPointId, other.gatheringPointId)) ? 1583305298 : 1583305303);
|
|
break;
|
|
case 0:
|
|
return EqualityComparer<GatheredItem>.Default.Equals(gatheredItem, other.gatheredItem);
|
|
case 5:
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
bool IEquatable<GatheringTask>.Equals(GatheringTask? other)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Equals
|
|
return this.Equals(other);
|
|
}
|
|
|
|
static Type _202B_206D_206F_206D_206B_202B_206A_202E_206A_200F_200D_200E_200C_200F_202C_200B_202A_206F_202C_202B_202E_206F_200C_206D_206E_202A_202D_202B_202C_200F_200B_206E_202C_200D_202B_200D_206C_202C_200F_206D_202E(RuntimeTypeHandle P_0)
|
|
{
|
|
return Type.GetTypeFromHandle(P_0);
|
|
}
|
|
|
|
static ushort _200E_202D_202E_200B_200B_202A_200E_200F_206E_202A_200B_206D_200F_206F_206B_202B_202C_200C_200B_206F_206B_206E_206C_202E_206F_200B_202D_200E_206A_200D_202A_200B_200C_202C_206A_200B_206B_206D_200D_206A_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.Collectability;
|
|
}
|
|
|
|
static int _202D_200E_202E_200B_202D_206B_200C_206B_202D_200F_200D_206C_200E_206C_206E_202E_206F_202C_200B_206C_202D_200F_202E_200D_206B_206E_200D_202A_200B_206B_202B_206A_206E_202B_200F_206E_206E_202A_200D_206F_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.ItemCount;
|
|
}
|
|
|
|
static uint _206A_202C_206F_202A_200F_200C_200E_202B_200F_206B_206F_200E_200E_200F_206B_200B_202D_206C_202D_200E_202C_200E_206B_202A_200D_202C_200D_206A_206C_202E_200E_202C_206F_202E_206B_206E_206A_206F_202A_200C_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.ItemId;
|
|
}
|
|
|
|
static string _206A_206E_200E_202C_200D_206C_200E_200C_202E_202B_202C_206D_206F_206E_202B_200B_206F_202D_206D_200D_206F_206D_200D_200D_202E_202B_206E_202C_206F_202D_202A_200D_206C_202C_202A_200F_206C_200C_206F_200F_202E(SeIconChar P_0)
|
|
{
|
|
return P_0.ToIconString();
|
|
}
|
|
|
|
static void _202C_202C_206A_206E_200C_200E_200D_200F_200F_206C_200F_206F_200B_202A_200E_206F_202E_206D_206D_202D_206F_206A_202C_202C_200E_202E_206F_202E_206A_200D_200E_200D_200F_200F_200D_202B_202C_200D_202E_202C_202E()
|
|
{
|
|
RuntimeHelpers.EnsureSufficientExecutionStack();
|
|
}
|
|
|
|
static StringBuilder _200D_202E_200C_206E_206D_202C_202E_206F_200B_200F_206F_202D_206B_202B_206D_200F_206F_202B_202D_200B_200C_202A_206B_206D_200C_200C_206D_206F_200B_200E_206F_206A_206D_206A_200C_206E_200D_202C_202A_202C_202E(StringBuilder P_0, string P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static StringBuilder _200E_202D_200B_206F_202B_202E_202C_200B_206A_202C_202A_200F_202C_206D_206D_206F_200E_202D_206F_202B_202C_206A_206B_202C_206B_200B_206E_206E_200F_200F_206D_200C_206F_200C_202B_200E_206F_200F_200F_206D_202E(StringBuilder P_0, object P_1)
|
|
{
|
|
return P_0.Append(P_1);
|
|
}
|
|
|
|
static bool _200F_200B_200B_202D_202B_202A_200E_206E_206E_202B_206E_202E_200E_206C_200B_202B_202C_206D_202D_206B_202A_206C_206B_200B_202B_206F_206F_206E_200E_202D_200C_202E_206D_206E_200B_202A_200F_206B_200C_206D_202E(Type P_0, Type P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
}
|
|
|
|
internal sealed class StartGathering(GatheringController gatheringController) : TaskExecutor<GatheringTask>(), IToastAware, ITaskExecutor
|
|
{
|
|
protected override bool Start()
|
|
{
|
|
return gatheringController.Start(new GatheringController.GatheringRequest(base.Task.gatheringPointId, _200F_202B_202E_206C_206E_202B_206B_202A_202B_206D_200B_202A_202D_200D_200E_202D_200E_206E_202A_202E_206A_200D_202B_202B_202D_206B_202A_206C_200E_200C_202E_202A_200D_200D_200C_206F_200B_200C_200C_206E_202E(base.Task.gatheredItem), _200C_202D_202B_200C_202B_202E_200C_202B_200D_202A_206D_206A_200D_202B_202D_206C_202B_200D_200E_202E_202A_200C_202C_202A_200D_200C_200B_206C_206E_202E_202B_200B_200E_200D_206B_200E_206D_206D_206A_200F_202E(base.Task.gatheredItem), _200F_206D_200B_206E_200D_200B_202B_206F_206F_206C_200E_206C_206C_206E_206F_202A_202D_206F_206B_206C_202E_202D_200D_200C_206C_206F_202C_200F_200F_202B_206F_202B_200F_206F_202C_200D_202A_206E_206B_206E_202E(base.Task.gatheredItem), _200C_200C_202D_200B_202A_206A_200D_206C_200C_202A_206F_206C_206B_206A_202D_202A_206E_202C_202A_202B_202B_202C_200F_202E_202B_202C_200C_202D_200C_202E_200C_202E_206B_200F_206D_200B_200B_202E_206A_200C_202E(base.Task.gatheredItem)));
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
int num = ((gatheringController.Update() != GatheringController.EStatus.Complete) ? 947495587 : 947495584);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 947495585;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_004c;
|
|
case 2:
|
|
return ETaskResult.StillRunning;
|
|
case 1:
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
continue;
|
|
IL_004c:
|
|
num = 947495584;
|
|
}
|
|
}
|
|
|
|
public bool OnErrorToast(SeString message)
|
|
{
|
|
bool isHandled = false;
|
|
gatheringController.OnErrorToast(ref message, ref isHandled);
|
|
return isHandled;
|
|
}
|
|
|
|
bool IToastAware.OnErrorToast(SeString message)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in OnErrorToast
|
|
return this.OnErrorToast(message);
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static uint _200F_202B_202E_206C_206E_202B_206B_202A_202B_206D_200B_202A_202D_200D_200E_202D_200E_206E_202A_202E_206A_200D_202B_202B_202D_206B_202A_206C_200E_200C_202E_202A_200D_200D_200C_206F_200B_200C_200C_206E_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.ItemId;
|
|
}
|
|
|
|
static uint _200C_202D_202B_200C_202B_202E_200C_202B_200D_202A_206D_206A_200D_202B_202D_206C_202B_200D_200E_202E_202A_200C_202C_202A_200D_200C_200B_206C_206E_202E_202B_200B_200E_200D_206B_200E_206D_206D_206A_200F_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.AlternativeItemId;
|
|
}
|
|
|
|
static int _200F_206D_200B_206E_200D_200B_202B_206F_206F_206C_200E_206C_206C_206E_206F_202A_202D_206F_206B_206C_202E_202D_200D_200C_206C_206F_202C_200F_200F_202B_206F_202B_200F_206F_202C_200D_202A_206E_206B_206E_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.ItemCount;
|
|
}
|
|
|
|
static ushort _200C_200C_202D_200B_202A_206A_200D_206C_200C_202A_206F_206C_206B_206A_202D_202A_206E_202C_202A_202B_202B_202C_200F_202E_202B_202C_200C_202D_200C_202E_200C_202E_206B_200F_206D_200B_200B_202E_206A_200C_202E(GatheredItem P_0)
|
|
{
|
|
return P_0.Collectability;
|
|
}
|
|
}
|
|
|
|
internal sealed class SkipMarker : ITask
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public override string ToString()
|
|
{
|
|
return 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>(484415674);
|
|
}
|
|
}
|
|
|
|
internal sealed class DoSkip : TaskExecutor<SkipMarker>
|
|
{
|
|
protected override bool Start()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public override ETaskResult Update()
|
|
{
|
|
return ETaskResult.TaskComplete;
|
|
}
|
|
|
|
public override bool ShouldInterruptOnDamage()
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
}
|