Méthode | Description | |
---|---|---|
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.
|
Méthode | Description | |
---|---|---|
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.
|
Méthode | Description | |
---|---|---|
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 |
Résultat | 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. |
Résultat | System |
public FindCategory ( |
||
p_intCategoryId | The category Id. | |
Résultat | IModCategory |
protected static IsValid ( string p_strCategoryPath ) : bool | ||
p_strCategoryPath | string | The path of the category file to validate. |
Résultat | bool |
public LoadCategories ( string p_strDefaultCategories ) : void | ||
p_strDefaultCategories | string | The string containing the default categories. |
Résultat | void |
public static ReadVersion ( string p_strCategoryPath ) : System.Version | ||
p_strCategoryPath | string | The category file whose version is to be read. |
Résultat | System.Version |
public RemoveCategory ( IModCategory p_mctCategory ) : void | ||
p_mctCategory | IModCategory | The |
Résultat | void |
public ResetCategories ( |
||
p_uriDefaultCategories | The online path where the category file is stored. | |
Résultat | void |
public ResetCategories ( string p_strDefaultCategories ) : void | ||
p_strDefaultCategories | string | The string containing the new category list. |
Résultat | void |
public static Restore ( string p_strCategoryPath ) : bool | ||
p_strCategoryPath | string | The path to the category folder. |
Résultat | 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. |
Résultat | IBackgroundTask |