forked from aly/qstbak
muffin v7.5.6
This commit is contained in:
parent
6266f9e6b7
commit
addf2d530f
619 changed files with 264792 additions and 446022 deletions
|
|
@ -1,105 +1,146 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Numerics;
|
||||
using System.Runtime.InteropServices;
|
||||
using Questionable.Model.Common;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Security.Cryptography;
|
||||
using System.Threading;
|
||||
using Questionable.Model.IO;
|
||||
using Questionable.Model.Questing;
|
||||
|
||||
namespace Questionable.FatePaths;
|
||||
|
||||
public static class AssemblyFateDefinitionLoader
|
||||
internal static class AssemblyFateDefinitionLoader
|
||||
{
|
||||
private static Dictionary<ushort, FateDefinition>? _definitions;
|
||||
private static readonly Lazy<IReadOnlyDictionary<ushort, FateDefinition>> Definitions = new Lazy<IReadOnlyDictionary<ushort, FateDefinition>>(LoadDefinitions, LazyThreadSafetyMode.ExecutionAndPublication);
|
||||
|
||||
public static Stream FateDefinitionSchema => typeof(AssemblyFateDefinitionLoader).Assembly.GetManifestResourceStream("Questionable.FatePaths.FateDefinitionSchema");
|
||||
internal static TimeSpan? DecodeDuration { get; private set; }
|
||||
|
||||
public static IReadOnlyDictionary<ushort, FateDefinition> GetDefinitions()
|
||||
internal static Stream FateDefinitionSchema
|
||||
{
|
||||
if (_definitions == null)
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
_definitions = new Dictionary<ushort, FateDefinition>();
|
||||
LoadDefinitions();
|
||||
return _206B_200B_202A_202A_200E_206D_200D_206B_202C_200B_200F_202D_202D_206D_200D_200B_202A_202B_200F_202D_202B_200E_206B_206D_202C_206E_206C_202C_206D_200C_202A_206E_200B_200C_202A_200E_206D_200D_200C_206B_202E(_206D_202B_206F_206C_200B_202C_206C_200D_200D_200D_206D_200E_202A_200D_202C_206F_200C_206B_202E_202B_202B_200B_202E_202E_202E_206D_202D_206C_202B_206A_202C_200E_202A_202A_206E_206B_206E_202C_200D_200D_202E(_200C_202A_202B_206F_206B_200B_202E_202C_206E_200E_206C_200C_200E_206D_206F_206B_200D_206B_206B_200C_200E_202B_202D_206B_206E_202A_202E_206C_206B_202C_200E_200C_206F_206C_206B_206C_206F_202E_206F_200D_202E(typeof(AssemblyFateDefinitionLoader).TypeHandle)), global::_003CModule_003E._206C_200E_206E_202D_200B_206B_200F_202E_206B_202C_200C_206B_202B_206E_202C_200C_200D_202D_206D_200F_206F_202E_206E_206B_202A_202C_206E_206B_206C_206D_200F_206F_202B_206A_200D_202D_200E_206A_202C_206A_202E<string>(657022072));
|
||||
}
|
||||
return _definitions ?? throw new InvalidOperationException("fate definition data is not initialized");
|
||||
}
|
||||
|
||||
private static void AddDefinition(ushort id, FateDefinition definition)
|
||||
internal static IReadOnlyDictionary<ushort, FateDefinition> GetDefinitions()
|
||||
{
|
||||
_definitions[id] = definition;
|
||||
return Definitions.Value;
|
||||
}
|
||||
|
||||
private static void LoadDefinitions()
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private static IReadOnlyDictionary<ushort, FateDefinition> LoadDefinitions()
|
||||
{
|
||||
LoadDefinition0();
|
||||
Stopwatch stopwatch = _200F_202C_206F_200F_202B_202D_200C_202A_202A_206E_202B_202D_206D_202B_200F_200F_206E_206A_200F_200E_202E_206A_206C_206E_206E_206E_202B_206B_200F_206B_206F_200B_206A_206C_202E_206F_202A_200C_206B_206D_202E();
|
||||
Stream stream = _206B_200B_202A_202A_200E_206D_200D_206B_202C_200B_200F_202D_202D_206D_200D_200B_202A_202B_200F_202D_202B_200E_206B_206D_202C_206E_206C_202C_206D_200C_202A_206E_200B_200C_202A_200E_206D_200D_200C_206B_202E(_206D_202B_206F_206C_200B_202C_206C_200D_200D_200D_206D_200E_202A_200D_202C_206F_200C_206B_202E_202B_202B_200B_202E_202E_202E_206D_202D_206C_202B_206A_202C_200E_202A_202A_206E_206B_206E_202C_200D_200D_202E(_200C_202A_202B_206F_206B_200B_202E_202C_206E_200E_206C_200C_200E_206D_206F_206B_200D_206B_206B_200C_200E_202B_202D_206B_206E_202A_202E_206C_206B_202C_200E_200C_206F_206C_206B_206C_206F_202E_206F_200D_202E(typeof(AssemblyFateDefinitionLoader).TypeHandle)), global::_003CModule_003E._206A_200C_202A_206F_206C_206A_202D_206C_206B_200E_200D_202D_200E_206B_202D_206F_206A_200B_202B_206B_200E_202E_206E_202E_206C_206A_200C_206F_206E_200B_202D_200F_206A_206A_200C_200B_200E_206B_202C_202E_202E<string>(1087605776));
|
||||
try
|
||||
{
|
||||
byte[] array = PathBundleSecret.Key();
|
||||
List<KeyValuePair<string, FateDefinition>> list = PathBundle.Deserialize<FateDefinition>(stream, array);
|
||||
_206B_202D_202C_200F_206D_202E_202C_200F_206B_202C_206E_202A_200B_206E_206E_206E_200B_200D_206F_206B_206B_202C_202E_202E_202D_206A_200C_202E_202C_202E_206F_202D_202A_206D_202C_202D_206D_206B_202C_202E((Span<byte>)array);
|
||||
Dictionary<ushort, FateDefinition> dictionary = new Dictionary<ushort, FateDefinition>(list.Count);
|
||||
using (List<KeyValuePair<string, FateDefinition>>.Enumerator enumerator = list.GetEnumerator())
|
||||
{
|
||||
int num = 2495585;
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 2495585;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 2:
|
||||
num = 2495585;
|
||||
break;
|
||||
case 3:
|
||||
var (s, value) = (KeyValuePair<string, FateDefinition>)(ref enumerator.Current);
|
||||
dictionary[ushort.Parse(s, _206C_206D_202D_200D_200C_202C_206D_206B_200B_200C_200F_202B_206B_200E_206A_202E_200E_206A_200D_206D_202D_206F_206D_200E_200E_200B_206B_200B_206E_202D_202B_202B_206D_202D_206D_202E_202C_202B_200D_206D_202E())] = value;
|
||||
num = 2495585;
|
||||
break;
|
||||
case 0:
|
||||
num = (enumerator.MoveNext() ? 2495586 : 2495584);
|
||||
break;
|
||||
case 1:
|
||||
goto end_IL_005c;
|
||||
}
|
||||
continue;
|
||||
end_IL_005c:
|
||||
break;
|
||||
}
|
||||
}
|
||||
DecodeDuration = _206C_202E_200B_202B_202D_202D_202D_202E_206E_202C_200D_202C_200D_202A_200C_202A_206C_200F_206D_206B_202E_202B_200C_206C_200F_200B_202E_206E_202B_200D_200E_206F_202D_200B_200E_202D_200C_202B_200E_202D_202E(stopwatch);
|
||||
return dictionary;
|
||||
}
|
||||
finally
|
||||
{
|
||||
int num = ((stream == null) ? (-1196840161) : (-1196840164));
|
||||
while (true)
|
||||
{
|
||||
int num7 = num;
|
||||
int num3 = -1196840163;
|
||||
int num4 = num7;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
num = -1196840164;
|
||||
break;
|
||||
case 1:
|
||||
_206C_206E_202A_206A_202A_202B_202B_206D_206E_200E_202A_202E_200F_202B_206D_206E_200F_206F_200E_200B_200D_202E_202D_206D_206E_202B_200D_202E_200C_206D_202A_202C_202A_202B_200B_200E_200C_202E_206A_206F_202E((IDisposable)stream);
|
||||
num = -1196840161;
|
||||
break;
|
||||
case 2:
|
||||
goto end_IL_0143;
|
||||
}
|
||||
continue;
|
||||
end_IL_0143:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void LoadDefinition0()
|
||||
static Type _200C_202A_202B_206F_206B_200B_202E_202C_206E_200E_206C_200C_200E_206D_206F_206B_200D_206B_206B_200C_200E_202B_202D_206B_206E_202A_202E_206C_206B_202C_200E_200C_206F_206C_206B_206C_206F_202E_206F_200D_202E(RuntimeTypeHandle P_0)
|
||||
{
|
||||
FateDefinition obj = new FateDefinition
|
||||
{
|
||||
Name = "Little Ladies' Day (2026)",
|
||||
Description = "Cheer Rhythm FATE in Ul'dah - Steps of Nald",
|
||||
TerritoryId = 130,
|
||||
Aetheryte = EAetheryteLocation.Uldah,
|
||||
Position = new Vector3(-38.322124f, 3.9999998f, -144.23155f)
|
||||
};
|
||||
int num = 4;
|
||||
List<FateActionTarget> list = new List<FateActionTarget>(num);
|
||||
CollectionsMarshal.SetCount(list, num);
|
||||
Span<FateActionTarget> span = CollectionsMarshal.AsSpan(list);
|
||||
span[0] = new FateActionTarget
|
||||
{
|
||||
DataId = 18862u,
|
||||
Action = EAction.CheerRhythmYellow
|
||||
};
|
||||
span[1] = new FateActionTarget
|
||||
{
|
||||
DataId = 18860u,
|
||||
Action = EAction.CheerRhythmBlue
|
||||
};
|
||||
span[2] = new FateActionTarget
|
||||
{
|
||||
DataId = 18861u,
|
||||
Action = EAction.CheerRhythmGreen
|
||||
};
|
||||
span[3] = new FateActionTarget
|
||||
{
|
||||
DataId = 18859u,
|
||||
Action = EAction.CheerRhythmRed
|
||||
};
|
||||
obj.Targets = list;
|
||||
obj.RequiredStatusId = EStatus.FaceInTheCrowd;
|
||||
obj.TransformNpcDataId = 1055771u;
|
||||
obj.TransformNpcPosition = new Vector3(-37.369385f, 5.0000005f, -130.14423f);
|
||||
num = 3;
|
||||
List<DialogueChoice> list2 = new List<DialogueChoice>(num);
|
||||
CollectionsMarshal.SetCount(list2, num);
|
||||
Span<DialogueChoice> span2 = CollectionsMarshal.AsSpan(list2);
|
||||
span2[0] = new DialogueChoice
|
||||
{
|
||||
Type = EDialogChoiceType.List,
|
||||
ExcelSheet = "custom/009/FesPdy2026FateDisguise_00951",
|
||||
Prompt = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_Q1_000_000"),
|
||||
Answer = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_A1_000_001")
|
||||
};
|
||||
span2[1] = new DialogueChoice
|
||||
{
|
||||
Type = EDialogChoiceType.List,
|
||||
ExcelSheet = "custom/009/FesPdy2026FateDisguise_00951",
|
||||
Prompt = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_Q2_000_000"),
|
||||
Answer = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_A2_100_004")
|
||||
};
|
||||
span2[2] = new DialogueChoice
|
||||
{
|
||||
Type = EDialogChoiceType.YesNo,
|
||||
ExcelSheet = "custom/009/FesPdy2026FateDisguise_00951",
|
||||
Prompt = new ExcelRef("TEXT_FESPDY2026FATEDISGUISE_00951_CONFIRM_100_004")
|
||||
};
|
||||
obj.TransformDialogueChoices = list2;
|
||||
obj.RequiredQuestId = (ushort)5444;
|
||||
obj.StopAction = EAction.CurtainCall;
|
||||
obj.EventExpiry = new DateTime(2026, 3, 12, 14, 59, 0, DateTimeKind.Utc);
|
||||
AddDefinition(1, obj);
|
||||
return Type.GetTypeFromHandle(P_0);
|
||||
}
|
||||
|
||||
static Assembly _206D_202B_206F_206C_200B_202C_206C_200D_200D_200D_206D_200E_202A_200D_202C_206F_200C_206B_202E_202B_202B_200B_202E_202E_202E_206D_202D_206C_202B_206A_202C_200E_202A_202A_206E_206B_206E_202C_200D_200D_202E(Type P_0)
|
||||
{
|
||||
return P_0.Assembly;
|
||||
}
|
||||
|
||||
static Stream _206B_200B_202A_202A_200E_206D_200D_206B_202C_200B_200F_202D_202D_206D_200D_200B_202A_202B_200F_202D_202B_200E_206B_206D_202C_206E_206C_202C_206D_200C_202A_206E_200B_200C_202A_200E_206D_200D_200C_206B_202E(Assembly P_0, string P_1)
|
||||
{
|
||||
return P_0.GetManifestResourceStream(P_1);
|
||||
}
|
||||
|
||||
static Stopwatch _200F_202C_206F_200F_202B_202D_200C_202A_202A_206E_202B_202D_206D_202B_200F_200F_206E_206A_200F_200E_202E_206A_206C_206E_206E_206E_202B_206B_200F_206B_206F_200B_206A_206C_202E_206F_202A_200C_206B_206D_202E()
|
||||
{
|
||||
return Stopwatch.StartNew();
|
||||
}
|
||||
|
||||
static void _206B_202D_202C_200F_206D_202E_202C_200F_206B_202C_206E_202A_200B_206E_206E_206E_200B_200D_206F_206B_206B_202C_202E_202E_202D_206A_200C_202E_202C_202E_206F_202D_202A_206D_202C_202D_206D_206B_202C_202E(Span<byte> P_0)
|
||||
{
|
||||
CryptographicOperations.ZeroMemory(P_0);
|
||||
}
|
||||
|
||||
static CultureInfo _206C_206D_202D_200D_200C_202C_206D_206B_200B_200C_200F_202B_206B_200E_206A_202E_200E_206A_200D_206D_202D_206F_206D_200E_200E_200B_206B_200B_206E_202D_202B_202B_206D_202D_206D_202E_202C_202B_200D_206D_202E()
|
||||
{
|
||||
return CultureInfo.InvariantCulture;
|
||||
}
|
||||
|
||||
static TimeSpan _206C_202E_200B_202B_202D_202D_202D_202E_206E_202C_200D_202C_200D_202A_200C_202A_206C_200F_206D_206B_202E_202B_200C_206C_200F_200B_202E_206E_202B_200D_200E_206F_202D_200B_200E_202D_200C_202B_200E_202D_202E(Stopwatch P_0)
|
||||
{
|
||||
return P_0.Elapsed;
|
||||
}
|
||||
|
||||
static void _206C_206E_202A_206A_202A_202B_202B_206D_206E_200E_202A_202E_200F_202B_206D_206E_200F_206F_200E_200B_200D_202E_202D_206D_206E_202B_200D_202E_200C_206D_202A_202C_202A_202B_200B_200E_200C_202E_206A_206F_202E(IDisposable P_0)
|
||||
{
|
||||
P_0.Dispose();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue