Немного работы

This commit is contained in:
2025-04-26 10:53:50 +04:00
parent 311a14a39d
commit 9d0683a23f
15 changed files with 2060 additions and 27 deletions
@@ -18,7 +18,7 @@ internal class AonprdLoader(AonprdImporter importer)
foreach (KeyValuePair<string, JToken?> kvp in indexJson)
{
string file = kvp.Key.ToString();
string file = kvp.Key;
JArray items = (JArray)kvp.Value!;
foreach (JToken item in items)
@@ -19,6 +19,8 @@ internal abstract partial class AbstractProcessor(AonprdProcessorInput input)
{
protected DatabaseHelper Helper = DatabaseHelper.Instance;
protected StringHelper StringHelper = StringHelper.Instance;
public readonly Pf2eDbContext Context = DatabaseHelper.DbContext;
public readonly AonprdProcessorInput Input = input;
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Pf2eDataScrapper.Importers.Implementations.Aonprd.DataBuilder.Processors;
internal partial class StringHelper
{
private StringHelper() { }
public static StringHelper Instance { get; } = new();
[GeneratedRegex(@"^\[.*?\]\(.*?\)\s+(.*)$")]
private static partial Regex SourceSuffixRegex();
}
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Pf2eModel.Model.Structure;
using Pf2eModel.Model.Structure;
namespace Pf2eDataScrapper.Importers.Implementations.Aonprd.DataBuilder.Processors.Subclasses;