C# Class GoNorth.Services.Export.Placeholder.ScribanRenderingEngine.ValueCollector.InventoryValueCollector

Class for Inventory Scriban value collectors
Inheritance: GoNorth.Services.Export.Placeholder.ScribanRenderingEngine.ValueCollector.BaseScribanValueCollector
显示文件 Open project: steffendx/GoNorth

Public Methods

Method Description
CollectValues ( TemplateType templateType, Template parsedTemplate, ScriptObject scriptObject, ExportObjectData data ) : Task

Collects the values for an export

GetExportTemplatePlaceholdersForType ( TemplateType templateType ) : List

Returns the Export Template Placeholders for a Template Type

InventoryValueCollector ( IExportCachedDbAccess exportCachedDbAccess, IScribanLanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory ) : System.Collections.Generic

Constructor

IsValidForTemplateType ( TemplateType templateType ) : bool

Returns true if the value collector is valid for a given template type

Private Methods

Method Description
LoadInventory ( Template parsedTemplate, KortistoNpc inputNpc ) : Task>

Loads the inventory

Method Details

CollectValues() public method

Collects the values for an export
public CollectValues ( TemplateType templateType, Template parsedTemplate, ScriptObject scriptObject, ExportObjectData data ) : Task
templateType TemplateType Template type
parsedTemplate Template Parsed scriban template
scriptObject ScriptObject Scriban script object to fill
data ExportObjectData Export Data
return Task

GetExportTemplatePlaceholdersForType() public method

Returns the Export Template Placeholders for a Template Type
public GetExportTemplatePlaceholdersForType ( TemplateType templateType ) : List
templateType TemplateType Template Type
return List

InventoryValueCollector() public method

Constructor
public InventoryValueCollector ( IExportCachedDbAccess exportCachedDbAccess, IScribanLanguageKeyGenerator languageKeyGenerator, IStringLocalizerFactory localizerFactory ) : System.Collections.Generic
exportCachedDbAccess IExportCachedDbAccess Export cached database access
languageKeyGenerator IScribanLanguageKeyGenerator Language key generator
localizerFactory IStringLocalizerFactory Localizer Factory
return System.Collections.Generic

IsValidForTemplateType() public method

Returns true if the value collector is valid for a given template type
public IsValidForTemplateType ( TemplateType templateType ) : bool
templateType TemplateType Template type
return bool