Отчистика кода
This commit is contained in:
+2
-10
@@ -1,12 +1,4 @@
|
||||
using Pf2eDataScrapper.Importers.Repositories;
|
||||
using Pf2eModel.Model.Enum;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using static LinqToDB.Reflection.Methods.LinqToDB.Insert;
|
||||
using Pf2eModel.Model.Enum;
|
||||
|
||||
namespace Pf2eDataScrapper.Importers.Implementations.Aonprd.DataBuilder;
|
||||
public static class AonprdEnumResolver
|
||||
@@ -48,7 +40,7 @@ public static class AonprdEnumResolver
|
||||
|
||||
Solver<T> tSolver = (Solver<T>) solver;
|
||||
|
||||
return tSolver.Data.TryGetValue(value, out var data) ? data : throw new EnumResolverValueUnknownException(type, value);
|
||||
return tSolver.Data.TryGetValue(value, out T? data) ? data : throw new EnumResolverValueUnknownException(type, value);
|
||||
}
|
||||
|
||||
private abstract class Solver
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ internal class ActionProcessor(ProcessorInput input) : AbstractProcessor(input)
|
||||
Object.IsPassive = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Object.Extra = new JObject()
|
||||
{
|
||||
{ "school", Input.GetOptional<JToken>("school") },
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@ using Pf2eModel.Model.Structure;
|
||||
|
||||
namespace Pf2eDataScrapper.Importers.Implementations.Aonprd.DataBuilder.Processors;
|
||||
|
||||
[AonprdProcessor("trait", new string[] {})]
|
||||
[AonprdProcessor("trait", new string[] { })]
|
||||
internal class TraitProcessor(ProcessorInput input) : AbstractProcessor(input)
|
||||
{
|
||||
public override EntityType Type => EntityType.Trait;
|
||||
@@ -24,7 +24,7 @@ internal class TraitProcessor(ProcessorInput input) : AbstractProcessor(input)
|
||||
// Во втором проходе
|
||||
}
|
||||
|
||||
protected override string GetDescription()
|
||||
protected override string GetDescription()
|
||||
=> base.GetDescription() + AddedDescription([
|
||||
"summary_markdown",
|
||||
"search_markdown"
|
||||
|
||||
Reference in New Issue
Block a user