forked from aly/qstbak
74 lines
3.5 KiB
C#
74 lines
3.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Immutable;
|
|
using System.Runtime.CompilerServices;
|
|
using LLib.GameData;
|
|
using Lumina.Excel.Sheets;
|
|
using Questionable.Model.Questing;
|
|
|
|
namespace Questionable.Model;
|
|
|
|
internal sealed class SatisfactionSupplyInfo : IQuestInfo
|
|
{
|
|
public ElementId QuestId { get; }
|
|
|
|
public string Name { get; }
|
|
|
|
public uint IssuerDataId { get; }
|
|
|
|
public bool IsRepeatable => true;
|
|
|
|
public ImmutableList<PreviousQuestInfo> PreviousQuests { get; }
|
|
|
|
public EQuestJoin PreviousQuestJoin => EQuestJoin.All;
|
|
|
|
public ushort Level { get; }
|
|
|
|
public EAlliedSociety AlliedSociety => EAlliedSociety.None;
|
|
|
|
public uint? JournalGenre => null;
|
|
|
|
public ushort SortKey { get; }
|
|
|
|
public bool IsMainScenarioQuest => false;
|
|
|
|
public EExpansionVersion Expansion { get; }
|
|
|
|
public IReadOnlyList<EClassJob> ClassJobs { get; }
|
|
|
|
public SatisfactionSupplyInfo(SatisfactionNpc npc)
|
|
{
|
|
EClassJob[] array = new EClassJob[11];
|
|
_206F_202A_200E_200F_206A_202C_202D_202A_200C_200C_206F_202C_206F_200B_206F_206D_202A_206F_200B_202D_200B_200F_202B_206B_200B_206E_202C_206A_206A_202B_200B_206A_200B_200C_200B_206C_200D_200C_200D_200C_202E((Array)array, (RuntimeFieldHandle)/*OpCode not supported: LdMemberToken*/);
|
|
ClassJobs = new global::_003C_003Ez__ReadOnlyArray<EClassJob>(array);
|
|
base._002Ector();
|
|
QuestId = _206E_200E_202A_206F_202E_200D_202E_200E_206E_200B_202C_200D_202C_202C_202C_202B_200C_202A_200D_200F_206E_200E_202C_202A_206A_206F_200B_206C_206B_206C_202D_202C_206F_200F_200C_202C_206D_206C_202B_202C_202E((ushort)npc.RowId);
|
|
Name = npc.Npc.Value.Singular.ToString();
|
|
IssuerDataId = npc.Npc.RowId;
|
|
Level = npc.LevelUnlock;
|
|
SortKey = _200B_202B_206E_206F_206B_206A_202D_202A_200B_202D_206F_202B_206C_206E_202D_202B_206C_206C_200C_206D_202D_200D_200F_200C_202E_206A_206F_206D_200F_200C_206C_200E_200B_206D_202E_206E_200B_206A_206B_202C_202E(QuestId);
|
|
Expansion = (EExpansionVersion)npc.QuestRequired.Value.Expansion.RowId;
|
|
PreviousQuestInfo reference = new PreviousQuestInfo(_202A_200D_206C_200E_206B_200B_202C_206F_206F_200C_202A_206C_200D_202B_206D_206C_206E_202C_200F_202A_206D_206A_200E_206B_202C_206B_206C_202B_206A_206C_200B_206E_202B_202D_200F_206C_200B_202D_202A_200D_202E(npc.QuestRequired.RowId), 0);
|
|
PreviousQuests = ImmutableList.Create(new ReadOnlySpan<PreviousQuestInfo>(in reference));
|
|
}
|
|
|
|
static void _206F_202A_200E_200F_206A_202C_202D_202A_200C_200C_206F_202C_206F_200B_206F_206D_202A_206F_200B_202D_200B_200F_202B_206B_200B_206E_202C_206A_206A_202B_200B_206A_200B_200C_200B_206C_200D_200C_200D_200C_202E(Array P_0, RuntimeFieldHandle P_1)
|
|
{
|
|
RuntimeHelpers.InitializeArray(P_0, P_1);
|
|
}
|
|
|
|
static SatisfactionSupplyNpcId _206E_200E_202A_206F_202E_200D_202E_200E_206E_200B_202C_200D_202C_202C_202C_202B_200C_202A_200D_200F_206E_200E_202C_202A_206A_206F_200B_206C_206B_206C_202D_202C_206F_200F_200C_202C_206D_206C_202B_202C_202E(ushort P_0)
|
|
{
|
|
return new SatisfactionSupplyNpcId(P_0);
|
|
}
|
|
|
|
static ushort _200B_202B_206E_206F_206B_206A_202D_202A_200B_202D_206F_202B_206C_206E_202D_202B_206C_206C_200C_206D_202D_200D_200F_200C_202E_206A_206F_206D_200F_200C_206C_200E_200B_206D_202E_206E_200B_206A_206B_202C_202E(ElementId P_0)
|
|
{
|
|
return P_0.Value;
|
|
}
|
|
|
|
static QuestId _202A_200D_206C_200E_206B_200B_202C_206F_206F_200C_202A_206C_200D_202B_206D_206C_206E_202C_200F_202A_206D_206A_200E_206B_202C_206B_206C_202B_206A_206C_200B_206E_202B_202D_200F_206C_200B_202D_202A_200D_202E(uint P_0)
|
|
{
|
|
return Questionable.Model.Questing.QuestId.FromRowId(P_0);
|
|
}
|
|
}
|