45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Pf2e.Scrapper.Importers.Implementations.FoundryEn.Compendium;
|
|
using Pf2e.Scrapper.Importers.Implementations.FoundryEn.Helpers;
|
|
|
|
namespace Pf2e.Scrapper.Importers.Implementations.FoundryEn;
|
|
|
|
/// <summary>
|
|
/// Импортёр для модуля Pf2e FoundryVTT.
|
|
/// </summary>
|
|
public class FoundryEnImporter : AbstractImporter
|
|
{
|
|
/// <summary>
|
|
/// Название внешней ссылки.
|
|
/// </summary>
|
|
public const string TargetName = "Pf2e FoundryVTT module";
|
|
|
|
/// <summary>
|
|
/// Отображаемое имя импортёра.
|
|
/// </summary>
|
|
public override string Name => TargetName;
|
|
|
|
/// <summary>
|
|
/// Короткое имя импортёра.
|
|
/// </summary>
|
|
public override string Slug => "foundry-en";
|
|
|
|
#region "Внедрение зависимостей"
|
|
|
|
/// <summary>
|
|
/// Регистрация сервисов импортёра в контейнере зависимостей.
|
|
/// </summary>
|
|
/// <param name="services">Коллекция сервисов.</param>
|
|
public static void RegisterServices(IServiceCollection services)
|
|
{
|
|
services.AddSingleton<FoundryEnImporter>();
|
|
services.AddSingleton<FoundryEnRepository>();
|
|
services.AddSingleton<FoundryEnCompendium>();
|
|
|
|
// Помощники
|
|
services.AddSingleton<FoundryEnGlobals>();
|
|
}
|
|
|
|
#endregion
|
|
}
|