Свойство | Type | Description | |
---|---|---|---|
Categories | SortedSet |
||
GameList | GameList | ||
Hidden | bool | ||
Id | int | ||
LastPlayed | DateTime | ||
Name | string | ||
Source | GameListingSource |
Méthode | Description | |
---|---|---|
AddCategory ( |
Adds a single category to this game. Does nothing if the category is already attached.
|
|
AddCategory ( ICollection |
Adds a list of categories to this game. Skips categories that are already attached.
|
|
ApplySource ( GameListingSource src ) : void | ||
ClearCategories ( bool alsoClearFavorite = false ) : void |
Removes all categories from this game. If true, removes the favorite category as well.
|
|
ContainsCategory ( Category c ) : bool |
Check whether the game includes the given category
|
|
GameInfo ( int id, string name, GameList list, string executable = null ) : System |
Construct a new GameInfo with no categories set.
|
|
GetCatString ( string ifEmpty = "", bool includeFavorite = false ) : string |
Gets a string listing the game's assigned categories.
|
|
HasCategories ( bool includeFavorite = false ) : bool |
Check to see if the game has any categories at all (except the Favorite category)
|
|
HasCategoriesExcept ( ICollection |
Check to see if the game has any categories set that do not exist in the given list
|
|
IncludeGame ( Filter f ) : bool | ||
IsFavorite ( ) : bool | ||
RemoveCategory ( Category remCat ) : void |
Removes a single category from this game. Does nothing if the category is not attached to this game.
|
|
RemoveCategory ( ICollection |
Removes a list of categories from this game. Skips categories that are not attached to this game.
|
|
SetCategories ( ICollection |
Sets the categories for this game to exactly match the given list. Missing categories will be added and extra ones will be removed.
|
|
SetFavorite ( bool fav ) : void | ||
SetHidden ( bool hide ) : void |
Add or remove the hidden attribute for this game.
|
public AddCategory ( |
||
newCat | Category to add | |
Résultat | void |
public AddCategory ( ICollection |
||
newCats | ICollection |
A list of categories to add |
Résultat | void |
public ApplySource ( GameListingSource src ) : void | ||
src | GameListingSource | |
Résultat | void |
public ClearCategories ( bool alsoClearFavorite = false ) : void | ||
alsoClearFavorite | bool | |
Résultat | void |
public ContainsCategory ( Category c ) : bool | ||
c | Category | Category to look for |
Résultat | bool |
public GameInfo ( int id, string name, GameList list, string executable = null ) : System | ||
id | int | ID of the new game. Positive means it's the game's Steam ID, negative means it's a non-steam game. |
name | string | Game title |
list | GameList | |
executable | string | |
Résultat | System |
public GetCatString ( string ifEmpty = "", bool includeFavorite = false ) : string | ||
ifEmpty | string | Value to return if there are no categories |
includeFavorite | bool | If true, include the favorite category. |
Résultat | string |
public HasCategories ( bool includeFavorite = false ) : bool | ||
includeFavorite | bool | If true, will only return true if the game is not in the favorite category. If false, the favorite category is ignored. |
Résultat | bool |
public HasCategoriesExcept ( ICollection |
||
except | ICollection |
List of games to exclude from the check |
Résultat | bool |
public RemoveCategory ( Category remCat ) : void | ||
remCat | Category | Category to remove |
Résultat | void |
public RemoveCategory ( ICollection |
||
remCats | ICollection |
Categories to remove |
Résultat | void |
public SetCategories ( ICollection |
||
cats | ICollection |
Set of categories to apply to this game |
preserveFavorite | bool | |
Résultat | void |
public SetHidden ( bool hide ) : void | ||
hide | bool | Whether the game should be hidden |
Résultat | void |