746 lines
40 KiB
C#
746 lines
40 KiB
C#
#define RELEASE
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Globalization;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text.Json;
|
|
using System.Text.Json.Nodes;
|
|
using Dalamud.Plugin;
|
|
using LLib.GameData;
|
|
using Microsoft.Extensions.Logging;
|
|
using Questionable.Data;
|
|
using Questionable.GatheringPaths;
|
|
using Questionable.Model;
|
|
using Questionable.Model.Gathering;
|
|
using Questionable.Validation;
|
|
using Questionable.Validation.Validators;
|
|
|
|
namespace Questionable.Controller;
|
|
|
|
internal sealed class GatheringPointRegistry
|
|
{
|
|
[CompilerGenerated]
|
|
private sealed class _003C_003Ec__DisplayClass16_0
|
|
{
|
|
public uint itemId;
|
|
|
|
public GatheringPointRegistry _003C_003E4__this;
|
|
|
|
internal bool _003CTryGetGatheringPointId_003Eb__0(KeyValuePair<GatheringPointId, GatheringRoot> x)
|
|
{
|
|
return _202A_202A_200D_206A_200E_202D_206E_206A_202A_200F_206D_200F_206C_206A_200B_202B_206A_202A_206F_200B_200D_206A_200E_200F_202A_200C_200E_200F_202C_200B_206C_200B_202C_200C_200B_206C_206F_206E_200F_200C_202E(x.Value).Contains(itemId);
|
|
}
|
|
|
|
internal bool _003CTryGetGatheringPointId_003Eb__2(GatheringPointId x)
|
|
{
|
|
return _003C_003E4__this._gatheringData.MinerGatheringPoints.Contains(x);
|
|
}
|
|
|
|
internal bool _003CTryGetGatheringPointId_003Eb__3(KeyValuePair<GatheringPointId, GatheringRoot> x)
|
|
{
|
|
return _202A_202A_200D_206A_200E_202D_206E_206A_202A_200F_206D_200F_206C_206A_200B_202B_206A_202A_206F_200B_200D_206A_200E_200F_202A_200C_200E_200F_202C_200B_206C_200B_202C_200C_200B_206C_206F_206E_200F_200C_202E(x.Value).Contains(itemId);
|
|
}
|
|
|
|
internal bool _003CTryGetGatheringPointId_003Eb__5(GatheringPointId x)
|
|
{
|
|
return _003C_003E4__this._gatheringData.BotanistGatheringPoints.Contains(x);
|
|
}
|
|
|
|
static List<uint> _202A_202A_200D_206A_200E_202D_206E_206A_202A_200F_206D_200F_206C_206A_200B_202B_206A_202A_206F_200B_200D_206A_200E_200F_202A_200C_200E_200F_202C_200B_206C_200B_202C_200C_200B_206C_206F_206E_200F_200C_202E(GatheringRoot P_0)
|
|
{
|
|
return P_0.ExtraQuestItems;
|
|
}
|
|
}
|
|
|
|
private readonly IDalamudPluginInterface _pluginInterface;
|
|
|
|
private readonly GatheringData _gatheringData;
|
|
|
|
private readonly GatheringSchemaValidator _gatheringSchemaValidator;
|
|
|
|
private readonly QuestValidator _questValidator;
|
|
|
|
private readonly ILogger<GatheringPointRegistry> _logger;
|
|
|
|
private volatile Dictionary<GatheringPointId, GatheringRoot> _gatheringPoints = new Dictionary<GatheringPointId, GatheringRoot>();
|
|
|
|
public GatheringPointRegistry(IDalamudPluginInterface pluginInterface, GatheringData gatheringData, GatheringSchemaValidator gatheringSchemaValidator, QuestValidator questValidator, ILogger<GatheringPointRegistry> logger)
|
|
{
|
|
_pluginInterface = pluginInterface;
|
|
_gatheringData = gatheringData;
|
|
_gatheringSchemaValidator = gatheringSchemaValidator;
|
|
_questValidator = questValidator;
|
|
_logger = logger;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
public Dictionary<GatheringPointId, GatheringRoot> Build()
|
|
{
|
|
Dictionary<GatheringPointId, GatheringRoot> dictionary = new Dictionary<GatheringPointId, GatheringRoot>();
|
|
_gatheringSchemaValidator.Reset();
|
|
LoadGatheringPointsFromAssembly(dictionary);
|
|
try
|
|
{
|
|
LoadFromDirectory(dictionary, _202C_202B_202C_206E_200E_206B_200F_206E_202A_200B_200F_206A_200D_200D_202E_206E_202A_206D_200E_200E_200D_202C_206D_206B_206B_200B_206D_200B_206A_202C_206C_206D_200C_202B_200F_200F_206E_200D_206A_206B_202E(_202A_206B_206E_206A_200F_206F_202E_202E_206E_200B_206F_202A_202C_200D_200C_200F_206A_206E_200F_202E_206A_200E_206A_202A_200B_202B_200B_206D_200E_202A_206D_202E_206E_206C_202C_202A_202E_202C_200F_206B_202E(_202B_200C_206B_202C_202D_202A_200C_206A_200F_202B_206A_206B_200D_206D_202A_206F_200C_202A_200F_200B_202C_206D_200B_200B_200F_206F_206E_202B_200D_206D_202D_206E_206A_202C_206F_202D_206F_206E_202E_206E_202E((FileSystemInfo)_202C_200E_206E_206B_200B_200D_206A_202C_202A_202A_206A_206E_200F_200D_206C_200F_206A_200C_206A_200F_200B_206A_206D_202A_200D_206F_206D_202C_200F_200C_200E_202A_202C_200E_202A_202C_200E_200C_200C_206D_202E(_pluginInterface)), 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>(-1200409228))));
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
_202D_202E_206E_206B_206F_200B_200E_206C_206E_206E_200B_202B_200E_206A_202B_200F_206D_206C_202A_206D_200F_202B_206D_200C_206E_206C_206E_206F_202A_206F_200E_200D_200E_202C_206C_200F_200D_206A_206F_202D_202E((ILogger)_logger, ex, 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>(1765916983), Array.Empty<object>());
|
|
}
|
|
IEnumerator<ValidationIssue> enumerator = _gatheringSchemaValidator.Validate().GetEnumerator();
|
|
try
|
|
{
|
|
int num = 629723332;
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 629723333;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 1:
|
|
num = (_206E_200E_200E_202D_202D_202D_200F_202B_202E_206E_206C_202A_202E_206C_202D_206B_206C_206A_202C_200C_206C_206B_206F_200B_206B_200D_206F_200B_206E_206B_202E_200D_202D_206F_200C_200E_200D_202B_200D_200C_202E((IEnumerator)enumerator) ? 629723335 : 629723334);
|
|
break;
|
|
case 2:
|
|
{
|
|
ValidationIssue current = enumerator.Current;
|
|
_questValidator.AddValidationIssue(current);
|
|
num = 629723332;
|
|
break;
|
|
}
|
|
case 0:
|
|
num = 629723332;
|
|
break;
|
|
case 3:
|
|
goto end_IL_0086;
|
|
}
|
|
continue;
|
|
end_IL_0086:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
int num = ((enumerator == null) ? 914645726 : 914645725);
|
|
while (true)
|
|
{
|
|
int num7 = num;
|
|
int num3 = 914645724;
|
|
int num4 = num7;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
goto end_IL_0129;
|
|
case 1:
|
|
_200C_206B_206C_202A_200E_200D_206E_202B_200D_202D_200C_200C_206B_200F_200C_202A_206E_200D_206D_202A_200F_202A_202B_200D_200C_202E_200B_206B_206C_200D_202B_206D_206E_206F_202C_206D_202B_202C_202B_206F_202E((IDisposable)enumerator);
|
|
num = 914645726;
|
|
break;
|
|
case 0:
|
|
num = 914645725;
|
|
break;
|
|
}
|
|
continue;
|
|
end_IL_0129:
|
|
break;
|
|
}
|
|
}
|
|
_200F_206D_202C_206A_202E_200E_206A_202E_206D_200B_200E_202B_206A_206E_202B_206B_202B_200B_206E_200D_206F_206F_206B_200D_202A_200F_206A_200D_206E_202A_206C_202E_206F_202C_202E_200C_206B_200B_206F_202D_202E((ILogger)_logger, 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>(509143359), new object[1] { dictionary.Count });
|
|
return dictionary;
|
|
}
|
|
|
|
public void Publish(Dictionary<GatheringPointId, GatheringRoot> gatheringPoints)
|
|
{
|
|
_gatheringPoints = gatheringPoints;
|
|
}
|
|
|
|
public void Reload()
|
|
{
|
|
Publish(Build());
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[Conditional("RELEASE")]
|
|
private void LoadGatheringPointsFromAssembly(Dictionary<GatheringPointId, GatheringRoot> gatheringPoints)
|
|
{
|
|
IEnumerator<KeyValuePair<ushort, GatheringRoot>> enumerator = _202B_206E_202A_202D_206C_200E_202E_206E_202D_202B_206F_200D_206F_206B_200E_202E_200F_206C_202B_200C_200C_200D_206D_206D_202C_200C_200B_200D_202D_200C_206B_206E_202C_200C_202B_206B_206D_206A_202E_202D_202E().GetEnumerator();
|
|
try
|
|
{
|
|
int num = 136315747;
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 136315744;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
num = 136315747;
|
|
break;
|
|
case 3:
|
|
num = (_206E_200E_200E_202D_202D_202D_200F_202B_202E_206E_206C_202A_202E_206C_202D_206B_206C_206A_202C_200C_206C_206B_206F_200B_206B_200D_206F_200B_206E_206B_202E_200D_202D_206F_200C_200E_200D_202B_200D_200C_202E((IEnumerator)enumerator) ? 136315746 : 136315745);
|
|
break;
|
|
case 2:
|
|
var (num8, value) = (KeyValuePair<ushort, GatheringRoot>)(ref enumerator.Current);
|
|
gatheringPoints[_206A_200B_206E_202D_202C_206C_206B_200E_202B_200B_200B_200D_206E_202B_206A_200D_206E_206E_200F_206E_200E_202B_200E_202D_200C_206F_200C_206E_206C_200F_206A_206F_206D_200B_200E_200B_200E_200E_206B_200E_202E(num8)] = value;
|
|
num = 136315747;
|
|
break;
|
|
case 1:
|
|
goto end_IL_0017;
|
|
}
|
|
continue;
|
|
end_IL_0017:
|
|
break;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
int num = ((enumerator == null) ? 1026507161 : 1026507162);
|
|
while (true)
|
|
{
|
|
int num9 = num;
|
|
int num3 = 1026507163;
|
|
int num4 = num9;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
num = 1026507162;
|
|
break;
|
|
case 1:
|
|
_200C_206B_206C_202A_200E_200D_206E_202B_200D_202D_200C_200C_206B_200F_200C_202A_206E_200D_206D_202A_200F_202A_202B_200D_200C_202E_200B_206B_206C_200D_202B_206D_206E_206F_202C_206D_202B_202C_202B_206F_202E((IDisposable)enumerator);
|
|
num = 1026507161;
|
|
break;
|
|
case 2:
|
|
goto end_IL_00cc;
|
|
}
|
|
continue;
|
|
end_IL_00cc:
|
|
break;
|
|
}
|
|
}
|
|
_200F_206D_202C_206A_202E_200E_206A_202E_206D_200B_200E_202B_206A_206E_202B_206B_202B_200B_206E_200D_206F_206F_206B_200D_202A_200F_206A_200D_206E_202A_206C_202E_206F_202C_202E_200C_206B_200B_206F_202D_202E((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>(1162006669), new object[1] { gatheringPoints.Count });
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
[Conditional("DEBUG")]
|
|
private void LoadGatheringPointsFromProjectDirectory(Dictionary<GatheringPointId, GatheringRoot> gatheringPoints)
|
|
{
|
|
DirectoryInfo directoryInfo = _200E_206A_200F_206A_206F_202B_202A_200C_200C_206B_206D_200D_200C_200E_206F_200D_206B_206E_206E_202B_206F_206F_206D_206F_206F_200F_200E_202A_202B_200B_206A_206A_206E_202B_202D_202A_206B_200E_200C_200F_202E(_200C_202C_206D_202E_202C_202B_200C_206F_200E_206C_206F_202E_200B_206F_200F_206C_206C_206F_206B_202A_200F_200C_200B_200C_200D_202D_200E_202A_206F_206F_200F_200C_200F_206E_200F_206F_200F_200F_202E_206B_202E(_pluginInterface));
|
|
object obj;
|
|
if (directoryInfo == null)
|
|
{
|
|
obj = null;
|
|
}
|
|
else
|
|
{
|
|
DirectoryInfo directoryInfo2 = _200C_206E_202A_200D_200B_202E_206B_200E_200C_200E_206F_202B_202C_200E_200F_206E_202B_200F_200B_202E_202E_206F_202D_206E_202B_200C_202C_206E_200C_206B_206B_200F_202E_206F_200C_200D_200E_200B_200F_200E_202E(directoryInfo);
|
|
obj = ((directoryInfo2 != null) ? _200C_206E_202A_200D_200B_202E_206B_200E_200C_200E_206F_202B_202C_200E_200F_206E_202B_200F_200B_202E_202E_206F_202D_206E_202B_200C_202C_206E_200C_206B_206B_200F_202E_206F_200C_200D_200E_200B_200F_200E_202E(directoryInfo2) : null);
|
|
}
|
|
DirectoryInfo directoryInfo3 = (DirectoryInfo)obj;
|
|
int num = ((directoryInfo3 != null) ? 750633398 : 750633399);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 750633398;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 2:
|
|
goto IL_0081;
|
|
case 1:
|
|
_206D_200C_202C_206C_206D_206B_202C_202B_202D_206D_200B_206D_202A_200C_202C_206A_202D_200C_200C_200D_206F_200C_202A_206A_200F_200C_202C_200D_202A_200F_202B_200E_206E_202C_202C_202E_202E_206A_202A_200F_202E((ILogger)_logger, 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>(-793417510), new object[1] { _202B_200C_206B_202C_202D_202A_200C_206A_200F_202B_206A_206B_200D_206D_202A_206F_200C_202A_200F_200B_202C_206D_200B_200B_200F_206F_206E_202B_200D_206D_202D_206E_206A_202C_206F_202D_206F_206E_202E_206E_202E((FileSystemInfo)_200C_202C_206D_202E_202C_202B_200C_206F_200E_206C_206F_202E_200B_206F_200F_206C_206C_206F_206B_202A_200F_200C_200B_200C_200D_202D_200E_202A_206F_206F_200F_200C_200F_206E_200F_206F_200F_200F_202E_206B_202E(_pluginInterface)) });
|
|
return;
|
|
case 0:
|
|
{
|
|
DirectoryInfo directoryInfo4 = _202C_202B_202C_206E_200E_206B_200F_206E_202A_200B_200F_206A_200D_200D_202E_206E_202A_206D_200E_200E_200D_202C_206D_206B_206B_200B_206D_200B_206A_202C_206C_206D_200C_202B_200F_200F_206E_200D_206A_206B_202E(_200D_200B_202E_200F_202A_206D_200C_206A_202A_206D_206F_202D_200B_206C_206D_202D_202C_202E_200D_206A_202A_206E_200D_206F_206C_202D_206F_200E_202D_202B_200D_202D_202D_206B_202E_200C_206D_200E_202A_202B_202E(_202B_200C_206B_202C_202D_202A_200C_206A_200F_202B_206A_206B_200D_206D_202A_206F_200C_202A_200F_200B_202C_206D_200B_200B_200F_206F_206E_202B_200D_206D_202D_206E_206A_202C_206F_202D_206F_206E_202E_206E_202E((FileSystemInfo)directoryInfo3), 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>(-1542749489), 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>(-1860611895)));
|
|
try
|
|
{
|
|
IEnumerator<string> enumerator = ExpansionData.ExpansionFolders.Values.GetEnumerator();
|
|
try
|
|
{
|
|
num = 1661986268;
|
|
while (true)
|
|
{
|
|
int num7 = num;
|
|
num3 = 1661986269;
|
|
num4 = num7;
|
|
int num8 = num4 + num3;
|
|
int num9 = num4 & num3;
|
|
switch (num8 - (num9 + num9))
|
|
{
|
|
case 0:
|
|
num = 1661986268;
|
|
break;
|
|
case 2:
|
|
{
|
|
string current = enumerator.Current;
|
|
LoadFromDirectory(gatheringPoints, _202C_202B_202C_206E_200E_206B_200F_206E_202A_200B_200F_206A_200D_200D_202E_206E_202A_206D_200E_200E_200D_202C_206D_206B_206B_200B_206D_200B_206A_202C_206C_206D_200C_202B_200F_200F_206E_200D_206A_206B_202E(_202A_206B_206E_206A_200F_206F_202E_202E_206E_200B_206F_202A_202C_200D_200C_200F_206A_206E_200F_202E_206A_200E_206A_202A_200B_202B_200B_206D_200E_202A_206D_202E_206E_206C_202C_202A_202E_202C_200F_206B_202E(_202B_200C_206B_202C_202D_202A_200C_206A_200F_202B_206A_206B_200D_206D_202A_206F_200C_202A_200F_200B_202C_206D_200B_200B_200F_206F_206E_202B_200D_206D_202D_206E_206A_202C_206F_202D_206F_206E_202E_206E_202E((FileSystemInfo)directoryInfo4), current)));
|
|
num = 1661986268;
|
|
break;
|
|
}
|
|
case 1:
|
|
num = (_206E_200E_200E_202D_202D_202D_200F_202B_202E_206E_206C_202A_202E_206C_202D_206B_206C_206A_202C_200C_206C_206B_206F_200B_206B_200D_206F_200B_206E_206B_202E_200D_202D_206F_200C_200E_200D_202B_200D_200C_202E((IEnumerator)enumerator) ? 1661986271 : 1661986270);
|
|
break;
|
|
case 3:
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
num = ((enumerator == null) ? 867053132 : 867053133);
|
|
while (true)
|
|
{
|
|
int num10 = num;
|
|
num3 = 867053132;
|
|
num4 = num10;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
num = 867053133;
|
|
break;
|
|
case 1:
|
|
_200C_206B_206C_202A_200E_200D_206E_202B_200D_202D_200C_200C_206B_200F_200C_202A_206E_200D_206D_202A_200F_202A_202B_200D_200C_202E_200B_206B_206C_200D_202B_206D_206E_206F_202C_206D_202B_202C_202B_206F_202E((IDisposable)enumerator);
|
|
num = 867053132;
|
|
break;
|
|
case 0:
|
|
goto end_IL_01ac;
|
|
}
|
|
continue;
|
|
end_IL_01ac:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
gatheringPoints.Clear();
|
|
_202D_202E_206E_206B_206F_200B_200E_206C_206E_206E_200B_202B_200E_206A_202B_200F_206D_206C_202A_206D_200F_202B_206D_200C_206E_206C_206E_206F_202A_206F_200E_200D_200E_202C_206C_200F_200D_206A_206F_202D_202E((ILogger)_logger, ex, 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>(1894668085), Array.Empty<object>());
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
continue;
|
|
IL_0081:
|
|
num = 750633399;
|
|
}
|
|
}
|
|
|
|
private void LoadGatheringPointFromStream(Dictionary<GatheringPointId, GatheringRoot> gatheringPoints, string fileName, Stream stream)
|
|
{
|
|
GatheringPointId gatheringPointId = ExtractGatheringPointIdFromName(fileName);
|
|
int num = ((!_206F_206D_202E_206E_202B_200B_200F_206F_206E_206F_202A_206F_206C_206E_200E_206F_200E_202B_206F_202A_206B_202E_200F_202A_202D_206C_202A_206E_206F_206F_200C_206A_206F_202E_206B_202A_200E_206C_200F_202E(gatheringPointId, (GatheringPointId)null)) ? 1532040796 : 1532040799);
|
|
JsonNode jsonNode = default(JsonNode);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 1532040798;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
return;
|
|
case 1:
|
|
return;
|
|
case 3:
|
|
num = 1532040799;
|
|
break;
|
|
case 2:
|
|
jsonNode = _200B_206C_202C_202B_206F_200D_202A_206D_206E_206B_206F_202C_200B_202B_200C_200F_206F_206F_202D_200C_206E_202C_206E_200D_200F_200F_200D_200F_206C_202E_206A_206F_200D_202D_202A_202B_206F_206B_206F_206B_202E(stream, (JsonNodeOptions?)null, default(JsonDocumentOptions));
|
|
num = ((jsonNode != null) ? 1532040794 : 1532040798);
|
|
break;
|
|
case 4:
|
|
_gatheringSchemaValidator.Enqueue(_200B_200E_202E_202B_206C_200E_200B_206D_200B_200D_206C_206F_200E_202E_206C_206D_202B_206E_200B_200C_200C_200F_200D_200D_206B_200E_206A_206E_206D_202A_202C_202A_206E_200F_200F_200F_206D_206D_200E_200F_202E(gatheringPointId), jsonNode);
|
|
gatheringPoints[gatheringPointId] = jsonNode.Deserialize<GatheringRoot>();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
private void LoadFromDirectory(Dictionary<GatheringPointId, GatheringRoot> gatheringPoints, DirectoryInfo directory)
|
|
{
|
|
int num = (_200E_202A_206F_200B_206E_206E_206D_200D_200B_202C_202C_206E_206D_206D_206E_202C_206E_200C_202A_206D_206E_200D_200B_206E_202C_202C_202B_200C_202D_200F_200D_200F_206C_202A_200D_206E_206B_202A_206A_206A_202E((FileSystemInfo)directory) ? (-2030197123) : (-2030197122));
|
|
DirectoryInfo[] array2 = default(DirectoryInfo[]);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -2030197121;
|
|
int num4 = num2;
|
|
int num5 = num4 + num3;
|
|
int num6 = num4 & num3;
|
|
switch (num5 - (num6 + num6))
|
|
{
|
|
case 0:
|
|
goto IL_0051;
|
|
case 1:
|
|
_200F_206D_202C_206A_202E_200E_206A_202E_206D_200B_200E_202B_206A_206E_202B_206B_202B_200B_206E_200D_206F_206F_206B_200D_202A_200F_206A_200D_206E_202A_206C_202E_206F_202C_202E_200C_206B_200B_206F_202D_202E((ILogger)_logger, 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>(-1603379103), new object[1] { directory });
|
|
return;
|
|
case 2:
|
|
{
|
|
FileInfo[] array = _206F_202B_202A_202E_202C_206C_200F_200E_206A_202A_202A_200B_202C_206D_202E_206F_202A_200B_206A_206F_206F_202B_206E_200E_202E_200F_200F_202C_206D_200F_206D_206A_206B_202B_206F_206A_200D_200F_200F_202A_202E(directory, 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>(1350212695));
|
|
int num7;
|
|
for (num7 = 0; num7 < array.Length; num7 = (num4 | num3) + (num4 & num3))
|
|
{
|
|
FileInfo fileInfo = array[num7];
|
|
try
|
|
{
|
|
FileStream fileStream = _200C_206E_206C_206F_206C_206E_206E_200B_202D_200B_200E_200D_206F_202A_200F_206E_206D_202A_200B_200E_202B_202D_206B_206E_206B_202C_202C_206B_202A_202C_202A_202B_206A_200C_202A_206A_200F_202A_202D_202B_202E(fileInfo);
|
|
try
|
|
{
|
|
LoadGatheringPointFromStream(gatheringPoints, _200D_200D_200E_200D_206D_206B_202B_206D_202A_200D_200F_200D_206C_206E_200C_206C_206F_202B_200B_206D_200F_206F_206A_202D_202C_202C_206B_206C_202D_202E_202B_206C_206F_200F_202D_206B_206A_206A_200D_202E_202E((FileSystemInfo)fileInfo), fileStream);
|
|
}
|
|
finally
|
|
{
|
|
num = ((fileStream == null) ? (-1087514602) : (-1087514603));
|
|
while (true)
|
|
{
|
|
int num8 = num;
|
|
num3 = -1087514601;
|
|
num4 = num8;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
num = -1087514603;
|
|
break;
|
|
case 2:
|
|
_200C_206B_206C_202A_200E_200D_206E_202B_200D_202D_200C_200C_206B_200F_200C_202A_206E_200D_206D_202A_200F_202A_202B_200D_200C_202E_200B_206B_206C_200D_202B_206D_206E_206F_202C_206D_202B_202C_202B_206F_202E((IDisposable)fileStream);
|
|
num = -1087514602;
|
|
break;
|
|
case 1:
|
|
goto end_IL_00d1;
|
|
}
|
|
continue;
|
|
end_IL_00d1:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
catch (JsonException ex)
|
|
{
|
|
GatheringPointId gatheringPointId = ExtractGatheringPointIdFromName(_200D_200D_200E_200D_206D_206B_202B_206D_202A_200D_200F_200D_206C_206E_200C_206C_206F_202B_200B_206D_200F_206F_206A_202D_202C_202C_206B_206C_202D_202E_202B_206C_206F_200F_202D_206B_206A_206A_200D_202E_202E((FileSystemInfo)fileInfo));
|
|
_202D_202E_206E_206B_206F_200B_200E_206C_206E_206E_200B_202B_200E_206A_202B_200F_206D_206C_202A_206D_200F_202B_206D_200C_206E_206C_206E_206F_202A_206F_200E_200D_200E_202C_206C_200F_200D_206A_206F_202D_202E((ILogger)_logger, (Exception)ex, 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>(-1786995802), new object[1] { _202B_200C_206B_202C_202D_202A_200C_206A_200F_202B_206A_206B_200D_206D_202A_206F_200C_202A_200F_200B_202C_206D_200B_200B_200F_206F_206E_202B_200D_206D_202D_206E_206A_202C_206F_202D_206F_206E_202E_206E_202E((FileSystemInfo)fileInfo) });
|
|
_questValidator.AddValidationIssue(new ValidationIssue
|
|
{
|
|
PathType = EPathType.Gathering,
|
|
Id = (((object)gatheringPointId != null) ? _202D_200D_200C_202A_206C_200F_202A_206E_206F_206E_206F_206F_202C_202C_202B_206F_202D_200B_202A_206E_202C_202D_200C_202D_202B_200C_202A_206C_200F_200F_202B_202B_200C_202C_202B_202E_200B_200B_202C_206A_202E(gatheringPointId).ToString(_206E_206F_206D_206A_202C_206E_206B_202E_206E_206E_202E_200D_206D_200D_200C_202D_206E_202A_200D_202A_202D_206A_202D_206B_206B_202D_202B_206E_206B_202E_202B_200F_206F_200F_200D_202E_200B_206E_206E_200E_202E()) : null),
|
|
Location = null,
|
|
Type = EIssueType.InvalidJsonSyntax,
|
|
Severity = EIssueSeverity.Error,
|
|
Description = _206D_202D_206D_200C_202D_206E_206F_200B_202D_200E_202D_206D_206B_206E_202D_206F_202B_200E_200C_206C_206A_206E_202C_206F_206F_206A_206A_206B_206E_206D_202B_200B_206A_200B_206A_200D_202C_200C_200C_202B_202E(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>(1207352804), _200D_200D_200E_200D_206D_206B_202B_206D_202A_200D_200F_200D_206C_206E_200C_206C_206F_202B_200B_206D_200F_206F_206A_202D_202C_202C_206B_206C_202D_202E_202B_206C_206F_200F_202D_206B_206A_206A_200D_202E_202E((FileSystemInfo)fileInfo), 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>(-2035955381), _202C_202D_206A_206B_200E_206A_206D_206E_200C_206B_200D_202E_202B_200F_200E_206E_202C_206A_206A_206F_206B_202A_202A_206C_200D_200E_206D_200C_200E_206F_206F_200D_200C_202A_200C_206F_202E_200D_206B_202C_202E((Exception)ex))
|
|
});
|
|
}
|
|
catch (Exception ex2)
|
|
{
|
|
throw _200E_206E_206C_200D_200F_206A_202A_200B_200E_202A_202D_200F_200D_200E_202B_200C_206C_206E_206F_200F_202A_206B_202A_200E_202B_206D_202B_202E_200E_200B_202D_200C_206B_200C_200F_202C_200E_200D_202B_206E_202E(_206C_202D_202C_206C_202B_202B_206A_202A_202E_206D_206B_202D_202A_206A_202A_202B_202C_206B_202B_206A_200F_200F_202B_206A_206A_206D_206F_202B_200D_202B_202D_200E_202D_206F_200B_206A_200E_202D_200F_206C_202E(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>(-912896990), _202B_200C_206B_202C_202D_202A_200C_206A_200F_202B_206A_206B_200D_206D_202A_206F_200C_202A_200F_200B_202C_206D_200B_200B_200F_206F_206E_202B_200D_206D_202D_206E_206A_202C_206F_202D_206F_206E_202E_206E_202E((FileSystemInfo)fileInfo)), ex2);
|
|
}
|
|
int num9 = num7;
|
|
num3 = 1;
|
|
num4 = num9;
|
|
}
|
|
num = 1535846665;
|
|
while (true)
|
|
{
|
|
int num10 = num;
|
|
num3 = 1535846664;
|
|
num4 = num10;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
num = 1535846665;
|
|
break;
|
|
case 3:
|
|
return;
|
|
case 0:
|
|
{
|
|
DirectoryInfo directory2 = array2[num7];
|
|
LoadFromDirectory(gatheringPoints, directory2);
|
|
int num11 = num7;
|
|
num3 = 1;
|
|
num4 = num11;
|
|
num7 = (num4 | num3) + (num4 & num3);
|
|
num = 1535846668;
|
|
break;
|
|
}
|
|
case 1:
|
|
array2 = _200D_206D_200B_202E_206E_202D_200E_206F_202D_206A_202C_200B_200B_200F_200E_200D_206E_202B_200E_200B_200B_202E_206C_202D_206C_202E_200B_202D_202C_200B_200C_206F_202A_206F_202B_206E_202D_202C_200B_206C_202E(directory);
|
|
num7 = 0;
|
|
num = 1535846668;
|
|
break;
|
|
case 4:
|
|
num = ((num7 < array2.Length) ? 1535846664 : 1535846667);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
continue;
|
|
IL_0051:
|
|
num = -2030197122;
|
|
}
|
|
}
|
|
|
|
private static GatheringPointId? ExtractGatheringPointIdFromName(string resourceName)
|
|
{
|
|
string text = _202C_206E_202D_202B_202B_206B_202A_206A_200F_202E_206D_202C_206B_202C_200F_206B_206B_206A_206E_202C_206B_206C_202E_202A_206D_206D_206A_206F_202D_206E_200B_200E_200D_202C_206C_206D_200E_206D_200F_206D_202E(resourceName);
|
|
text = _202A_202E_202D_202A_206E_206B_206B_200F_202C_202C_200F_202E_200C_206E_200F_200C_202B_200C_202A_200B_202B_200E_206F_206B_200B_200C_200C_202B_200C_202D_202D_206A_202B_200E_200F_206C_202D_200D_200D_202D_202E(text, _202A_202A_206A_206B_206F_206E_200D_206C_206C_202B_202D_200E_202E_200D_206A_202A_202E_206F_200B_202E_206B_206B_200E_200E_200E_206B_202C_202D_202A_200E_206A_206B_200B_202E_200F_200F_200E_206C_206F_206E_202E(text, '.') + 1);
|
|
int num = (_202B_200B_206B_200E_200E_200B_206C_200C_200B_202B_206A_202C_206E_206A_206A_202C_206A_202E_206D_202D_200F_200B_200E_202B_206D_206E_202B_202B_206D_202B_206D_200B_202B_200B_206A_200D_200D_202C_206B_200D_202E(text, '_', StringComparison.Ordinal) ? (-863946065) : (-863946068));
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -863946066;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 0:
|
|
goto IL_0061;
|
|
case 2:
|
|
return null;
|
|
case 1:
|
|
return _206C_200E_206B_206B_200F_202D_202C_202E_202E_206A_202D_206A_202B_200B_202B_200D_206C_206C_200B_200B_206A_202A_206A_200E_200B_206A_206A_202A_202C_206C_202B_200B_202A_202A_200C_206B_206F_200B_206C_202E(_206D_202C_206B_200F_206A_200D_202D_202C_206D_206B_206E_206B_206F_202D_202B_200F_206E_202B_206D_202E_206C_202A_202D_200B_206D_200E_206C_202D_200C_206A_206E_202B_200E_200F_200C_206B_200E_202D_206E_202C_202E(text, '_', 2, StringSplitOptions.None)[0]);
|
|
}
|
|
continue;
|
|
IL_0061:
|
|
num = -863946068;
|
|
}
|
|
}
|
|
|
|
public bool TryGetGatheringPoint(GatheringPointId gatheringPointId, [NotNullWhen(true)] out GatheringRoot? gatheringRoot)
|
|
{
|
|
return _gatheringPoints.TryGetValue(gatheringPointId, out gatheringRoot);
|
|
}
|
|
|
|
public bool TryGetGatheringPointId(uint itemId, EClassJob classJobId, [NotNullWhen(true)] out GatheringPointId? gatheringPointId)
|
|
{
|
|
Dictionary<GatheringPointId, GatheringRoot> gatheringPoints = _gatheringPoints;
|
|
int num = ((classJobId != EClassJob.Miner) ? 627004165 : 627004160);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = 627004163;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 5:
|
|
return true;
|
|
case 2:
|
|
gatheringPointId = null;
|
|
return false;
|
|
case 6:
|
|
num = ((classJobId != EClassJob.Botanist) ? 627004161 : 627004171);
|
|
break;
|
|
case 8:
|
|
num = ((!_gatheringData.TryGetBotanistGatheringPointByItemId(itemId, out gatheringPointId)) ? 627004163 : 627004166);
|
|
break;
|
|
case 4:
|
|
return true;
|
|
case 7:
|
|
num = 627004160;
|
|
break;
|
|
case 1:
|
|
gatheringPointId = (from x in gatheringPoints
|
|
where _003C_003Ec__DisplayClass16_0._202A_202A_200D_206A_200E_202D_206E_206A_202A_200F_206D_200F_206C_206A_200B_202B_206A_202A_206F_200B_200D_206A_200E_200F_202A_200C_200E_200F_202C_200B_206C_200B_202C_200C_200B_206C_206F_206E_200F_200C_202E(x.Value).Contains(itemId)
|
|
select x.Key).FirstOrDefault((GatheringPointId x) => _gatheringData.MinerGatheringPoints.Contains(x));
|
|
return _206F_202A_200D_200C_202A_206E_202A_200F_206B_202D_200F_206F_200B_202E_206C_206C_202D_202E_202E_206C_206E_206E_202C_200D_200C_200B_200F_202B_200F_206C_202D_200F_202A_200F_200F_200F_200B_202D_202B_200E_202E(gatheringPointId, (GatheringPointId)null);
|
|
case 0:
|
|
gatheringPointId = (from x in gatheringPoints
|
|
where _003C_003Ec__DisplayClass16_0._202A_202A_200D_206A_200E_202D_206E_206A_202A_200F_206D_200F_206C_206A_200B_202B_206A_202A_206F_200B_200D_206A_200E_200F_202A_200C_200E_200F_202C_200B_206C_200B_202C_200C_200B_206C_206F_206E_200F_200C_202E(x.Value).Contains(itemId)
|
|
select x.Key).FirstOrDefault((GatheringPointId x) => _gatheringData.BotanistGatheringPoints.Contains(x));
|
|
return _206F_202A_200D_200C_202A_206E_202A_200F_206B_202D_200F_206F_200B_202E_206C_206C_202D_202E_202E_206C_206E_206E_202C_200D_200C_200B_200F_202B_200F_206C_202D_200F_202A_200F_200F_200F_200B_202D_202B_200E_202E(gatheringPointId, (GatheringPointId)null);
|
|
case 3:
|
|
num = ((!_gatheringData.TryGetMinerGatheringPointByItemId(itemId, out gatheringPointId)) ? 627004162 : 627004167);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
static DirectoryInfo _202C_200E_206E_206B_200B_200D_206A_202C_202A_202A_206A_206E_200F_200D_206C_200F_206A_200C_206A_200F_200B_206A_206D_202A_200D_206F_206D_202C_200F_200C_200E_202A_202C_200E_202A_202C_200E_200C_200C_206D_202E(IDalamudPluginInterface P_0)
|
|
{
|
|
return P_0.ConfigDirectory;
|
|
}
|
|
|
|
static string _202B_200C_206B_202C_202D_202A_200C_206A_200F_202B_206A_206B_200D_206D_202A_206F_200C_202A_200F_200B_202C_206D_200B_200B_200F_206F_206E_202B_200D_206D_202D_206E_206A_202C_206F_202D_206F_206E_202E_206E_202E(FileSystemInfo P_0)
|
|
{
|
|
return P_0.FullName;
|
|
}
|
|
|
|
static string _202A_206B_206E_206A_200F_206F_202E_202E_206E_200B_206F_202A_202C_200D_200C_200F_206A_206E_200F_202E_206A_200E_206A_202A_200B_202B_200B_206D_200E_202A_206D_202E_206E_206C_202C_202A_202E_202C_200F_206B_202E(string P_0, string P_1)
|
|
{
|
|
return Path.Combine(P_0, P_1);
|
|
}
|
|
|
|
static DirectoryInfo _202C_202B_202C_206E_200E_206B_200F_206E_202A_200B_200F_206A_200D_200D_202E_206E_202A_206D_200E_200E_200D_202C_206D_206B_206B_200B_206D_200B_206A_202C_206C_206D_200C_202B_200F_200F_206E_200D_206A_206B_202E(string P_0)
|
|
{
|
|
return new DirectoryInfo(P_0);
|
|
}
|
|
|
|
static void _202D_202E_206E_206B_206F_200B_200E_206C_206E_206E_200B_202B_200E_206A_202B_200F_206D_206C_202A_206D_200F_202B_206D_200C_206E_206C_206E_206F_202A_206F_200E_200D_200E_202C_206C_200F_200D_206A_206F_202D_202E(ILogger P_0, Exception P_1, string P_2, object[] P_3)
|
|
{
|
|
P_0.LogError(P_1, P_2, P_3);
|
|
}
|
|
|
|
static bool _206E_200E_200E_202D_202D_202D_200F_202B_202E_206E_206C_202A_202E_206C_202D_206B_206C_206A_202C_200C_206C_206B_206F_200B_206B_200D_206F_200B_206E_206B_202E_200D_202D_206F_200C_200E_200D_202B_200D_200C_202E(IEnumerator P_0)
|
|
{
|
|
return P_0.MoveNext();
|
|
}
|
|
|
|
static void _200C_206B_206C_202A_200E_200D_206E_202B_200D_202D_200C_200C_206B_200F_200C_202A_206E_200D_206D_202A_200F_202A_202B_200D_200C_202E_200B_206B_206C_200D_202B_206D_206E_206F_202C_206D_202B_202C_202B_206F_202E(IDisposable P_0)
|
|
{
|
|
P_0.Dispose();
|
|
}
|
|
|
|
static void _200F_206D_202C_206A_202E_200E_206A_202E_206D_200B_200E_202B_206A_206E_202B_206B_202B_200B_206E_200D_206F_206F_206B_200D_202A_200F_206A_200D_206E_202A_206C_202E_206F_202C_202E_200C_206B_200B_206F_202D_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogDebug(P_1, P_2);
|
|
}
|
|
|
|
static IReadOnlyDictionary<ushort, GatheringRoot> _202B_206E_202A_202D_206C_200E_202E_206E_202D_202B_206F_200D_206F_206B_200E_202E_200F_206C_202B_200C_200C_200D_206D_206D_202C_200C_200B_200D_202D_200C_206B_206E_202C_200C_202B_206B_206D_206A_202E_202D_202E()
|
|
{
|
|
return AssemblyGatheringLocationLoader.GetLocations();
|
|
}
|
|
|
|
static GatheringPointId _206A_200B_206E_202D_202C_206C_206B_200E_202B_200B_200B_200D_206E_202B_206A_200D_206E_206E_200F_206E_200E_202B_200E_202D_200C_206F_200C_206E_206C_200F_206A_206F_206D_200B_200E_200B_200E_200E_206B_200E_202E(ushort P_0)
|
|
{
|
|
return new GatheringPointId(P_0);
|
|
}
|
|
|
|
static FileInfo _200C_202C_206D_202E_202C_202B_200C_206F_200E_206C_206F_202E_200B_206F_200F_206C_206C_206F_206B_202A_200F_200C_200B_200C_200D_202D_200E_202A_206F_206F_200F_200C_200F_206E_200F_206F_200F_200F_202E_206B_202E(IDalamudPluginInterface P_0)
|
|
{
|
|
return P_0.AssemblyLocation;
|
|
}
|
|
|
|
static DirectoryInfo _200E_206A_200F_206A_206F_202B_202A_200C_200C_206B_206D_200D_200C_200E_206F_200D_206B_206E_206E_202B_206F_206F_206D_206F_206F_200F_200E_202A_202B_200B_206A_206A_206E_202B_202D_202A_206B_200E_200C_200F_202E(FileInfo P_0)
|
|
{
|
|
return P_0.Directory;
|
|
}
|
|
|
|
static DirectoryInfo _200C_206E_202A_200D_200B_202E_206B_200E_200C_200E_206F_202B_202C_200E_200F_206E_202B_200F_200B_202E_202E_206F_202D_206E_202B_200C_202C_206E_200C_206B_206B_200F_202E_206F_200C_200D_200E_200B_200F_200E_202E(DirectoryInfo P_0)
|
|
{
|
|
return P_0.Parent;
|
|
}
|
|
|
|
static void _206D_200C_202C_206C_206D_206B_202C_202B_202D_206D_200B_206D_202A_200C_202C_206A_202D_200C_200C_200D_206F_200C_202A_206A_200F_200C_202C_200D_202A_200F_202B_200E_206E_202C_202C_202E_202E_206A_202A_200F_202E(ILogger P_0, string P_1, object[] P_2)
|
|
{
|
|
P_0.LogWarning(P_1, P_2);
|
|
}
|
|
|
|
static string _200D_200B_202E_200F_202A_206D_200C_206A_202A_206D_206F_202D_200B_206C_206D_202D_202C_202E_200D_206A_202A_206E_200D_206F_206C_202D_206F_200E_202D_202B_200D_202D_202D_206B_202E_200C_206D_200E_202A_202B_202E(string P_0, string P_1, string P_2)
|
|
{
|
|
return Path.Combine(P_0, P_1, P_2);
|
|
}
|
|
|
|
static bool _206F_206D_202E_206E_202B_200B_200F_206F_206E_206F_202A_206F_206C_206E_200E_206F_200E_202B_206F_202A_206B_202E_200F_202A_202D_206C_202A_206E_206F_206F_200C_206A_206F_202E_206B_202A_200E_206C_200F_202E(GatheringPointId P_0, GatheringPointId P_1)
|
|
{
|
|
return P_0 == P_1;
|
|
}
|
|
|
|
static JsonNode _200B_206C_202C_202B_206F_200D_202A_206D_206E_206B_206F_202C_200B_202B_200C_200F_206F_206F_202D_200C_206E_202C_206E_200D_200F_200F_200D_200F_206C_202E_206A_206F_200D_202D_202A_202B_206F_206B_206F_206B_202E(Stream P_0, JsonNodeOptions? P_1, JsonDocumentOptions P_2)
|
|
{
|
|
return JsonNode.Parse(P_0, P_1, P_2);
|
|
}
|
|
|
|
static ushort _200B_200E_202E_202B_206C_200E_200B_206D_200B_200D_206C_206F_200E_202E_206C_206D_202B_206E_200B_200C_200C_200F_200D_200D_206B_200E_206A_206E_206D_202A_202C_202A_206E_200F_200F_200F_206D_206D_200E_200F_202E(GatheringPointId P_0)
|
|
{
|
|
return P_0.Value;
|
|
}
|
|
|
|
static bool _200E_202A_206F_200B_206E_206E_206D_200D_200B_202C_202C_206E_206D_206D_206E_202C_206E_200C_202A_206D_206E_200D_200B_206E_202C_202C_202B_200C_202D_200F_200D_200F_206C_202A_200D_206E_206B_202A_206A_206A_202E(FileSystemInfo P_0)
|
|
{
|
|
return P_0.Exists;
|
|
}
|
|
|
|
static FileInfo[] _206F_202B_202A_202E_202C_206C_200F_200E_206A_202A_202A_200B_202C_206D_202E_206F_202A_200B_206A_206F_206F_202B_206E_200E_202E_200F_200F_202C_206D_200F_206D_206A_206B_202B_206F_206A_200D_200F_200F_202A_202E(DirectoryInfo P_0, string P_1)
|
|
{
|
|
return P_0.GetFiles(P_1);
|
|
}
|
|
|
|
static FileStream _200C_206E_206C_206F_206C_206E_206E_200B_202D_200B_200E_200D_206F_202A_200F_206E_206D_202A_200B_200E_202B_202D_206B_206E_206B_202C_202C_206B_202A_202C_202A_202B_206A_200C_202A_206A_200F_202A_202D_202B_202E(FileInfo P_0)
|
|
{
|
|
return P_0.OpenRead();
|
|
}
|
|
|
|
static string _200D_200D_200E_200D_206D_206B_202B_206D_202A_200D_200F_200D_206C_206E_200C_206C_206F_202B_200B_206D_200F_206F_206A_202D_202C_202C_206B_206C_202D_202E_202B_206C_206F_200F_202D_206B_206A_206A_200D_202E_202E(FileSystemInfo P_0)
|
|
{
|
|
return P_0.Name;
|
|
}
|
|
|
|
static ushort _202D_200D_200C_202A_206C_200F_202A_206E_206F_206E_206F_206F_202C_202C_202B_206F_202D_200B_202A_206E_202C_202D_200C_202D_202B_200C_202A_206C_200F_200F_202B_202B_200C_202C_202B_202E_200B_200B_202C_206A_202E(GatheringPointId P_0)
|
|
{
|
|
return P_0.Value;
|
|
}
|
|
|
|
static CultureInfo _206E_206F_206D_206A_202C_206E_206B_202E_206E_206E_202E_200D_206D_200D_200C_202D_206E_202A_200D_202A_202D_206A_202D_206B_206B_202D_202B_206E_206B_202E_202B_200F_206F_200F_200D_202E_200B_206E_206E_200E_202E()
|
|
{
|
|
return CultureInfo.InvariantCulture;
|
|
}
|
|
|
|
static string _202C_202D_206A_206B_200E_206A_206D_206E_200C_206B_200D_202E_202B_200F_200E_206E_202C_206A_206A_206F_206B_202A_202A_206C_200D_200E_206D_200C_200E_206F_206F_200D_200C_202A_200C_206F_202E_200D_206B_202C_202E(Exception P_0)
|
|
{
|
|
return P_0.Message;
|
|
}
|
|
|
|
static string _206D_202D_206D_200C_202D_206E_206F_200B_202D_200E_202D_206D_206B_206E_202D_206F_202B_200E_200C_206C_206A_206E_202C_206F_206F_206A_206A_206B_206E_206D_202B_200B_206A_200B_206A_200D_202C_200C_200C_202B_202E(string P_0, string P_1, string P_2, string P_3)
|
|
{
|
|
return P_0 + P_1 + P_2 + P_3;
|
|
}
|
|
|
|
static string _206C_202D_202C_206C_202B_202B_206A_202A_202E_206D_206B_202D_202A_206A_202A_202B_202C_206B_202B_206A_200F_200F_202B_206A_206A_206D_206F_202B_200D_202B_202D_200E_202D_206F_200B_206A_200E_202D_200F_206C_202E(string P_0, string P_1)
|
|
{
|
|
return P_0 + P_1;
|
|
}
|
|
|
|
static InvalidDataException _200E_206E_206C_200D_200F_206A_202A_200B_200E_202A_202D_200F_200D_200E_202B_200C_206C_206E_206F_200F_202A_206B_202A_200E_202B_206D_202B_202E_200E_200B_202D_200C_206B_200C_200F_202C_200E_200D_202B_206E_202E(string P_0, Exception P_1)
|
|
{
|
|
return new InvalidDataException(P_0, P_1);
|
|
}
|
|
|
|
static DirectoryInfo[] _200D_206D_200B_202E_206E_202D_200E_206F_202D_206A_202C_200B_200B_200F_200E_200D_206E_202B_200E_200B_200B_202E_206C_202D_206C_202E_200B_202D_202C_200B_200C_206F_202A_206F_202B_206E_202D_202C_200B_206C_202E(DirectoryInfo P_0)
|
|
{
|
|
return P_0.GetDirectories();
|
|
}
|
|
|
|
static string _202C_206E_202D_202B_202B_206B_202A_206A_200F_202E_206D_202C_206B_202C_200F_206B_206B_206A_206E_202C_206B_206C_202E_202A_206D_206D_206A_206F_202D_206E_200B_200E_200D_202C_206C_206D_200E_206D_200F_206D_202E(string P_0)
|
|
{
|
|
return Path.GetFileNameWithoutExtension(P_0);
|
|
}
|
|
|
|
static int _202A_202A_206A_206B_206F_206E_200D_206C_206C_202B_202D_200E_202E_200D_206A_202A_202E_206F_200B_202E_206B_206B_200E_200E_200E_206B_202C_202D_202A_200E_206A_206B_200B_202E_200F_200F_200E_206C_206F_206E_202E(string P_0, char P_1)
|
|
{
|
|
return P_0.LastIndexOf(P_1);
|
|
}
|
|
|
|
static string _202A_202E_202D_202A_206E_206B_206B_200F_202C_202C_200F_202E_200C_206E_200F_200C_202B_200C_202A_200B_202B_200E_206F_206B_200B_200C_200C_202B_200C_202D_202D_206A_202B_200E_200F_206C_202D_200D_200D_202D_202E(string P_0, int P_1)
|
|
{
|
|
return P_0.Substring(P_1);
|
|
}
|
|
|
|
static bool _202B_200B_206B_200E_200E_200B_206C_200C_200B_202B_206A_202C_206E_206A_206A_202C_206A_202E_206D_202D_200F_200B_200E_202B_206D_206E_202B_202B_206D_202B_206D_200B_202B_200B_206A_200D_200D_202C_206B_200D_202E(string P_0, char P_1, StringComparison P_2)
|
|
{
|
|
return P_0.Contains(P_1, P_2);
|
|
}
|
|
|
|
static string[] _206D_202C_206B_200F_206A_200D_202D_202C_206D_206B_206E_206B_206F_202D_202B_200F_206E_202B_206D_202E_206C_202A_202D_200B_206D_200E_206C_202D_200C_206A_206E_202B_200E_200F_200C_206B_200E_202D_206E_202C_202E(string P_0, char P_1, int P_2, StringSplitOptions P_3)
|
|
{
|
|
return P_0.Split(P_1, P_2, P_3);
|
|
}
|
|
|
|
static GatheringPointId _206C_200E_206B_206B_200F_202D_202C_202E_202E_206A_202D_206A_202B_200B_202B_200D_206C_206C_200B_200B_206A_202A_206A_200E_200B_206A_206A_202A_202C_206C_202B_200B_202A_202A_200C_206B_206F_200B_206C_202E(string P_0)
|
|
{
|
|
return GatheringPointId.FromString(P_0);
|
|
}
|
|
|
|
static bool _206F_202A_200D_200C_202A_206E_202A_200F_206B_202D_200F_206F_200B_202E_206C_206C_202D_202E_202E_206C_206E_206E_202C_200D_200C_200B_200F_202B_200F_206C_202D_200F_202A_200F_200F_200F_200B_202D_202B_200E_202E(GatheringPointId P_0, GatheringPointId P_1)
|
|
{
|
|
return P_0 != P_1;
|
|
}
|
|
}
|