메소드 | 설명 | |
---|---|---|
AddCategory ( ) : IModCategory |
Adds a new category to the list with default values.
|
|
AddCategory ( IModCategory p_mctCategory ) : IModCategory |
Adds a category to the list.
|
|
Backup ( ) : void |
This backs up the category file.
|
|
CategoryManager ( string p_strModInstallDirectory, string p_strCategoryPath ) : System |
A simple constructor that initializes the object with its dependencies.
|
|
FindCategory ( |
Finds the category by Id.
|
|
LoadCategories ( string p_strDefaultCategories ) : void |
Loads the categories.
|
|
ReadVersion ( string p_strCategoryPath ) : System.Version |
Reads the category manager version from the given category file.
|
|
Release ( ) : void |
This disposes of the category manager, allowing it to be re-initialized.
|
|
RemoveCategory ( IModCategory p_mctCategory ) : void |
Removes a category from the list.
|
|
ResetCategories ( |
Loads the categories from an online source.
|
|
ResetCategories ( string p_strDefaultCategories ) : void |
Resets to the repository default categories.
|
|
Restore ( string p_strCategoryPath ) : bool |
This restores the first valid backup of the category file.
|
|
Update ( |
Runs the managed updaters.
|
|
UpdateCategoryFile ( ) : void |
Updates the category file.
|
메소드 | 설명 | |
---|---|---|
IsValid ( string p_strCategoryPath ) : bool |
Determines if the category file at the given path is valid.
|
|
SaveCategories ( ) : void |
Save the data to the category file.
|
메소드 | 설명 | |
---|---|---|
LoadCategories ( System.Xml.Linq.XDocument p_docCategories ) : void |
Loads the data from the category file.
|
public AddCategory ( IModCategory p_mctCategory ) : IModCategory | ||
p_mctCategory | IModCategory | The |
리턴 | IModCategory |
public CategoryManager ( string p_strModInstallDirectory, string p_strCategoryPath ) : System | ||
p_strModInstallDirectory | string | The path of the directory where all of the mods are installed. |
p_strCategoryPath | string | The path from which to load the categories. |
리턴 | System |
public FindCategory ( |
||
p_intCategoryId | The category Id. | |
리턴 | IModCategory |
protected static IsValid ( string p_strCategoryPath ) : bool | ||
p_strCategoryPath | string | The path of the category file to validate. |
리턴 | bool |
public LoadCategories ( string p_strDefaultCategories ) : void | ||
p_strDefaultCategories | string | The string containing the default categories. |
리턴 | void |
public static ReadVersion ( string p_strCategoryPath ) : System.Version | ||
p_strCategoryPath | string | The category file whose version is to be read. |
리턴 | System.Version |
public RemoveCategory ( IModCategory p_mctCategory ) : void | ||
p_mctCategory | IModCategory | The |
리턴 | void |
public ResetCategories ( |
||
p_uriDefaultCategories | The online path where the category file is stored. | |
리턴 | void |
public ResetCategories ( string p_strDefaultCategories ) : void | ||
p_strDefaultCategories | string | The string containing the new category list. |
리턴 | void |
public static Restore ( string p_strCategoryPath ) : bool | ||
p_strCategoryPath | string | The path to the category folder. |
리턴 | bool |
public Update ( |
||
p_ModManager | The Mod Manager. | |
p_lstMods | IList |
The list of mods to update. |
p_intNewValue | The new category id value. | |
p_camConfirm | ConfirmActionMethod | The delegate to call to confirm an action. |
리턴 | IBackgroundTask |