C# Class StonehearthEditor.ModuleDataManager

Inheritance: IDisposable
Mostrar archivo Open project: stonehearth/stonehearth-editor Class Usage Examples

Public Properties

Property Type Description
StockpileFilters HashSet

Public Methods

Method Description
AddErrorFile ( FileData fileWithError ) : void
ContainsStockpileMaterial ( string tokens ) : bool
Dispose ( ) : void
ExecuteClone ( FileData file, CloneObjectParameters parameters, HashSet unwantedItems ) : bool
ExecuteClone ( ModuleFile module, CloneObjectParameters parameters, HashSet unwantedItems ) : bool
FilterAliasTree ( TreeView treeView, string searchTerm ) : void
FilterJsonByTerm ( ListView listView, string filterTerm ) : Object[]
GetAllModuleNames ( ) : string[]
GetAllModules ( ) : ICollection
GetAverageMaterialCost ( string material ) : int
GetErrorFiles ( ) : HashSet
GetInstance ( ) : ModuleDataManager
GetJsonsOfType ( ListView listView, JSONTYPE jsonType ) : object[]
GetMod ( string modName ) : Module
GetModuleFile ( string fullAlias ) : ModuleFile
GetSelectedFileData ( TreeNode selected ) : FileData
GetSelectedFileData ( string selected ) : FileData
HasLocalizationKey ( string key ) : bool
IsModuleFileSelected ( TreeNode selected ) : bool
Load ( ) : void
LocalizeString ( string key ) : string
ModuleDataManager ( string modsDirectoryPath ) : System
PopulateTreeView ( TreeView treeView, string alias, string folder ) : void
PreviewCloneDependencies ( FileData file, CloneObjectParameters cloneParameters ) : HashSet
PreviewCloneDependencies ( ModuleFile module, CloneObjectParameters cloneParameters ) : HashSet
SaveModifiedFiles ( ) : void
TryGetModuleFile ( string path, string parentDirectory, ModuleFile &moduleFile ) : bool

Attempts to resolve a reference.

Private Methods

Method Description
AddTreeNodesByAlias ( List treeNodes, string filterTerm ) : void
AddTreeNodesByFolder ( List treeNodes, string folderName ) : void
AppendTreeNodes ( TreeNode root, string rootPath ) : void

Method Details

AddErrorFile() public method

public AddErrorFile ( FileData fileWithError ) : void
fileWithError FileData
return void

ContainsStockpileMaterial() public method

public ContainsStockpileMaterial ( string tokens ) : bool
tokens string
return bool

Dispose() public method

public Dispose ( ) : void
return void

ExecuteClone() public method

public ExecuteClone ( FileData file, CloneObjectParameters parameters, HashSet unwantedItems ) : bool
file FileData
parameters CloneObjectParameters
unwantedItems HashSet
return bool

ExecuteClone() public method

public ExecuteClone ( ModuleFile module, CloneObjectParameters parameters, HashSet unwantedItems ) : bool
module ModuleFile
parameters CloneObjectParameters
unwantedItems HashSet
return bool

FilterAliasTree() public method

public FilterAliasTree ( TreeView treeView, string searchTerm ) : void
treeView System.Windows.Forms.TreeView
searchTerm string
return void

FilterJsonByTerm() public method

public FilterJsonByTerm ( ListView listView, string filterTerm ) : Object[]
listView System.Windows.Forms.ListView
filterTerm string
return Object[]

GetAllModuleNames() public method

public GetAllModuleNames ( ) : string[]
return string[]

GetAllModules() public method

public GetAllModules ( ) : ICollection
return ICollection

GetAverageMaterialCost() public method

public GetAverageMaterialCost ( string material ) : int
material string
return int

GetErrorFiles() public method

public GetErrorFiles ( ) : HashSet
return HashSet

GetInstance() public static method

public static GetInstance ( ) : ModuleDataManager
return ModuleDataManager

GetJsonsOfType() public method

public GetJsonsOfType ( ListView listView, JSONTYPE jsonType ) : object[]
listView System.Windows.Forms.ListView
jsonType JSONTYPE
return object[]

GetMod() public method

public GetMod ( string modName ) : Module
modName string
return Module

GetModuleFile() public method

public GetModuleFile ( string fullAlias ) : ModuleFile
fullAlias string
return ModuleFile

GetSelectedFileData() public method

public GetSelectedFileData ( TreeNode selected ) : FileData
selected System.Windows.Forms.TreeNode
return FileData

GetSelectedFileData() public method

public GetSelectedFileData ( string selected ) : FileData
selected string
return FileData

HasLocalizationKey() public method

public HasLocalizationKey ( string key ) : bool
key string
return bool

IsModuleFileSelected() public method

public IsModuleFileSelected ( TreeNode selected ) : bool
selected System.Windows.Forms.TreeNode
return bool

Load() public method

public Load ( ) : void
return void

LocalizeString() public method

public LocalizeString ( string key ) : string
key string
return string

ModuleDataManager() public method

public ModuleDataManager ( string modsDirectoryPath ) : System
modsDirectoryPath string
return System

PopulateTreeView() public method

public PopulateTreeView ( TreeView treeView, string alias, string folder ) : void
treeView System.Windows.Forms.TreeView
alias string
folder string
return void

PreviewCloneDependencies() public method

public PreviewCloneDependencies ( FileData file, CloneObjectParameters cloneParameters ) : HashSet
file FileData
cloneParameters CloneObjectParameters
return HashSet

PreviewCloneDependencies() public method

public PreviewCloneDependencies ( ModuleFile module, CloneObjectParameters cloneParameters ) : HashSet
module ModuleFile
cloneParameters CloneObjectParameters
return HashSet

SaveModifiedFiles() public method

public SaveModifiedFiles ( ) : void
return void

TryGetModuleFile() public method

Attempts to resolve a reference.
public TryGetModuleFile ( string path, string parentDirectory, ModuleFile &moduleFile ) : bool
path string Reference that was given
parentDirectory string Parent directory, required to resolve relative paths.
moduleFile ModuleFile The file that was found.
return bool

Property Details

StockpileFilters public_oe property

public HashSet StockpileFilters
return HashSet