forked from aly/qstbak
78 lines
3.7 KiB
C#
78 lines
3.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using Dalamud.Plugin;
|
|
using Microsoft.Extensions.Logging;
|
|
using Questionable.Model.Questing;
|
|
using Questionable.SeasonalDutyPaths;
|
|
using Questionable.Validation;
|
|
using Questionable.Validation.Validators;
|
|
|
|
namespace Questionable.Controller;
|
|
|
|
internal sealed class SeasonalDutyDefinitionRegistry : DefinitionRegistry<SeasonalDutyDefinition>
|
|
{
|
|
protected override string TypeLabel
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
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>(-1124229794);
|
|
}
|
|
}
|
|
|
|
protected override string ConfigDirectoryName
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
return 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>(393634060);
|
|
}
|
|
}
|
|
|
|
protected override string ProjectDirectoryName
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
return 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>(-1200839821);
|
|
}
|
|
}
|
|
|
|
protected override EPathType PathType => EPathType.SeasonalDuty;
|
|
|
|
public SeasonalDutyDefinitionRegistry(IDalamudPluginInterface pluginInterface, SeasonalDutySchemaValidator seasonalDutySchemaValidator, QuestValidator questValidator, ILogger<SeasonalDutyDefinitionRegistry> logger)
|
|
: base(pluginInterface, (IDefinitionSchemaValidator)seasonalDutySchemaValidator, questValidator, (ILogger)logger)
|
|
{
|
|
}
|
|
|
|
protected override IReadOnlyDictionary<ushort, SeasonalDutyDefinition> GetAssemblyDefinitions()
|
|
{
|
|
return _206F_206D_202B_206C_202C_206F_206C_200C_202A_200F_200E_202E_206B_200F_206C_202E_202A_206F_202A_206D_206D_202D_200E_206F_200E_206E_206C_206D_202E_206F_202A_202B_200D_206C_202C_206B_200C_202A_206A_202E();
|
|
}
|
|
|
|
protected override DateTime? GetExpiry(SeasonalDutyDefinition definition)
|
|
{
|
|
return _206D_206E_202D_206B_200B_202E_202E_200E_206C_202C_202C_200C_202A_202C_206E_206A_202B_206D_206E_206B_202D_200C_206C_206F_200B_202E_206F_206E_202D_202E_202B_202C_200C_206E_200D_202D_202E_200E_206B_202E(definition);
|
|
}
|
|
|
|
protected override string? GetName(SeasonalDutyDefinition definition)
|
|
{
|
|
return _200E_202A_200E_202E_202D_206B_202D_200F_200C_206E_206F_206A_200C_202D_206A_200F_206F_202C_202C_200F_202D_206D_200E_200B_206A_200D_202A_202D_200F_200F_206A_200E_200B_200C_200B_202D_200C_200C_206D_200C_202E(definition);
|
|
}
|
|
|
|
static IReadOnlyDictionary<ushort, SeasonalDutyDefinition> _206F_206D_202B_206C_202C_206F_206C_200C_202A_200F_200E_202E_206B_200F_206C_202E_202A_206F_202A_206D_206D_202D_200E_206F_200E_206E_206C_206D_202E_206F_202A_202B_200D_206C_202C_206B_200C_202A_206A_202E()
|
|
{
|
|
return AssemblySeasonalDutyDefinitionLoader.GetDefinitions();
|
|
}
|
|
|
|
static DateTime? _206D_206E_202D_206B_200B_202E_202E_200E_206C_202C_202C_200C_202A_202C_206E_206A_202B_206D_206E_206B_202D_200C_206C_206F_200B_202E_206F_206E_202D_202E_202B_202C_200C_206E_200D_202D_202E_200E_206B_202E(SeasonalDutyDefinition P_0)
|
|
{
|
|
return P_0.EventExpiry;
|
|
}
|
|
|
|
static string _200E_202A_200E_202E_202D_206B_202D_200F_200C_206E_206F_206A_200C_202D_206A_200F_206F_202C_202C_200F_202D_206D_200E_200B_206A_200D_202A_202D_200F_200F_206A_200E_200B_200C_200B_202D_200C_200C_206D_200C_202E(SeasonalDutyDefinition P_0)
|
|
{
|
|
return P_0.Name;
|
|
}
|
|
}
|