C# 클래스 Nexus.Client.ModManagement.CategoryManager

상속: ICategoryManager
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
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 ( Int32 p_intCategoryId ) : IModCategory

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 ( Uri p_uriDefaultCategories ) : void

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 ( ModManager p_ModManager, IList p_lstMods, Int32 p_intNewValue, ConfirmActionMethod p_camConfirm ) : IBackgroundTask

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.

메소드 상세

AddCategory() 공개 메소드

Adds a new category to the list with default values.
public AddCategory ( ) : IModCategory
리턴 IModCategory

AddCategory() 공개 메소드

Adds a category to the list.
public AddCategory ( IModCategory p_mctCategory ) : IModCategory
p_mctCategory IModCategory The being added.
리턴 IModCategory

Backup() 공개 메소드

This backs up the category file.
public Backup ( ) : void
리턴 void

CategoryManager() 공개 메소드

A simple constructor that initializes the object with its dependencies.
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

FindCategory() 공개 메소드

Finds the category by Id.
public FindCategory ( Int32 p_intCategoryId ) : IModCategory
p_intCategoryId System.Int32 The category Id.
리턴 IModCategory

IsValid() 보호된 정적인 메소드

Determines if the category file at the given path is valid.
protected static IsValid ( string p_strCategoryPath ) : bool
p_strCategoryPath string The path of the category file to validate.
리턴 bool

LoadCategories() 공개 메소드

Loads the categories.
public LoadCategories ( string p_strDefaultCategories ) : void
p_strDefaultCategories string The string containing the default categories.
리턴 void

ReadVersion() 공개 정적인 메소드

Reads the category manager version from the given category file.
public static ReadVersion ( string p_strCategoryPath ) : System.Version
p_strCategoryPath string The category file whose version is to be read.
리턴 System.Version

Release() 공개 메소드

This disposes of the category manager, allowing it to be re-initialized.
public Release ( ) : void
리턴 void

RemoveCategory() 공개 메소드

Removes a category from the list.
public RemoveCategory ( IModCategory p_mctCategory ) : void
p_mctCategory IModCategory The to be removed.
리턴 void

ResetCategories() 공개 메소드

Loads the categories from an online source.
public ResetCategories ( Uri p_uriDefaultCategories ) : void
p_uriDefaultCategories System.Uri The online path where the category file is stored.
리턴 void

ResetCategories() 공개 메소드

Resets to the repository default categories.
public ResetCategories ( string p_strDefaultCategories ) : void
p_strDefaultCategories string The string containing the new category list.
리턴 void

Restore() 공개 정적인 메소드

This restores the first valid backup of the category file.
public static Restore ( string p_strCategoryPath ) : bool
p_strCategoryPath string The path to the category folder.
리턴 bool

SaveCategories() 보호된 메소드

Save the data to the category file.
protected SaveCategories ( ) : void
리턴 void

Update() 공개 메소드

Runs the managed updaters.
public Update ( ModManager p_ModManager, IList p_lstMods, Int32 p_intNewValue, ConfirmActionMethod p_camConfirm ) : IBackgroundTask
p_ModManager ModManager The Mod Manager.
p_lstMods IList The list of mods to update.
p_intNewValue System.Int32 The new category id value.
p_camConfirm ConfirmActionMethod The delegate to call to confirm an action.
리턴 IBackgroundTask

UpdateCategoryFile() 공개 메소드

Updates the category file.
public UpdateCategoryFile ( ) : void
리턴 void