Class Game
Represents Playnite game object.
public class Game : DatabaseObject, INotifyPropertyChanged, IComparable, IIdentifiable
- Inheritance
-
Game
- Implements
- Inherited Members
Constructors
Game()
Creates new instance of a Game object.
public Game()
Game(string)
Creates new instance of a Game object with specific name.
public Game(string name)
Parameters
name
stringGame name.
Properties
Added
Gets or sets date when game was added to library.
public DateTime? Added { get; set; }
Property Value
AddedSegment
Gets time segment for games added date.
public PastTimeSegment AddedSegment { get; }
Property Value
AgeRatingIds
Gets or sets age rating for a game.
public List<Guid> AgeRatingIds { get; set; }
Property Value
AgeRatings
Gets game's age rating.
public List<AgeRating> AgeRatings { get; }
Property Value
BackgroundImage
Gets or sets background image. Local file path, HTTP URL or database file ids are supported.
public string BackgroundImage { get; set; }
Property Value
Categories
Gets game's categories.
public List<Category> Categories { get; }
Property Value
CategoryIds
Gets or sets game categories.
public List<Guid> CategoryIds { get; set; }
Property Value
CommunityScore
Gets or sets community rating score.
public int? CommunityScore { get; set; }
Property Value
- int?
CommunityScoreGroup
Gets game's community score group.
public ScoreGroup CommunityScoreGroup { get; }
Property Value
CommunityScoreRating
Gets game's community score rating.
public ScoreRating CommunityScoreRating { get; }
Property Value
CompletionStatus
Gets game's completion status.
public CompletionStatus CompletionStatus { get; }
Property Value
CompletionStatusId
Gets or sets game completion status.
public Guid CompletionStatusId { get; set; }
Property Value
CoverImage
Gets or sets game cover image. Local file path, HTTP URL or database file ids are supported.
public string CoverImage { get; set; }
Property Value
CriticScore
Gets or sets critic based rating score.
public int? CriticScore { get; set; }
Property Value
- int?
CriticScoreGroup
Gets game's critic score group.
public ScoreGroup CriticScoreGroup { get; }
Property Value
CriticScoreRating
Gets game's critic score rating.
public ScoreRating CriticScoreRating { get; }
Property Value
Description
Gets or sets HTML game description.
public string Description { get; set; }
Property Value
DeveloperIds
Gets or sets list of developers.
public List<Guid> DeveloperIds { get; set; }
Property Value
Developers
Gets game's developers.
public List<Company> Developers { get; }
Property Value
EnableSystemHdr
Gets or sets value indicating if the game is should enable HDR on the primary monitor while playing.
public bool EnableSystemHdr { get; set; }
Property Value
Favorite
Gets or sets value indicating if the game is marked as favorite in library.
public bool Favorite { get; set; }
Property Value
FeatureIds
Gets or sets list of game features.
public List<Guid> FeatureIds { get; set; }
Property Value
Features
Gets game's features.
public List<GameFeature> Features { get; }
Property Value
GameActions
Gets or sets list of additional game actions.
public ObservableCollection<GameAction> GameActions { get; set; }
Property Value
GameId
Gets or sets provider id. For example game's Steam ID.
public string GameId { get; set; }
Property Value
GameStartedScript
Gets or sets script to be executed after game started.
public string GameStartedScript { get; set; }
Property Value
GenreIds
Gets or sets list of genres.
public List<Guid> GenreIds { get; set; }
Property Value
Genres
Gets game's genres.
public List<Genre> Genres { get; }
Property Value
Hidden
Gets or sets value indicating if the game is hidden in library.
public bool Hidden { get; set; }
Property Value
Icon
Gets or sets game icon. Local file path, HTTP URL or database file ids are supported.
public string Icon { get; set; }
Property Value
IncludeLibraryPluginAction
Gets or sets id of plugin responsible for handling this game.
public bool IncludeLibraryPluginAction { get; set; }
Property Value
InstallDirectory
Gets or sets game installation directory path.
public string InstallDirectory { get; set; }
Property Value
InstallSize
Gets or sets the install size in bytes of the game.
public ulong? InstallSize { get; set; }
Property Value
InstallSizeGroup
Gets game's install size group.
public InstallSizeGroup InstallSizeGroup { get; }
Property Value
InstallationStatus
Gets game installation state.
public InstallationStatus InstallationStatus { get; }
Property Value
IsCustomGame
Gets value indicating whether the game is custom game.
public bool IsCustomGame { get; }
Property Value
IsInstalled
Gets or sets value indicating whether a game is installed.
public bool IsInstalled { get; set; }
Property Value
IsInstalling
Gets or sets value indicating whether a game is being installed.
public bool IsInstalling { get; set; }
Property Value
IsLaunching
Gets or sets value indicating whether a game is being launched.
public bool IsLaunching { get; set; }
Property Value
IsRunning
Gets or sets value indicating whether a game is currently running.
public bool IsRunning { get; set; }
Property Value
IsUninstalling
Gets or sets value indicating whether a game is being uninstalled.
public bool IsUninstalling { get; set; }
Property Value
LastActivity
Gets or sets last played date.
public DateTime? LastActivity { get; set; }
Property Value
LastActivitySegment
Gets time segment for games last activity.
public PastTimeSegment LastActivitySegment { get; }
Property Value
LastSizeScanDate
Gets or sets date of last date of install size scan made to a game.
public DateTime? LastSizeScanDate { get; set; }
Property Value
Links
Gets or sets list of game related web links.
public ObservableCollection<Link> Links { get; set; }
Property Value
Manual
Gets or sets game manual.
public string Manual { get; set; }
Property Value
Modified
Gets or sets date of last modification made to a game.
public DateTime? Modified { get; set; }
Property Value
ModifiedSegment
Gets time segment for games modified date..
public PastTimeSegment ModifiedSegment { get; }
Property Value
Notes
Gets or sets user notes.
public string Notes { get; set; }
Property Value
OverrideInstallState
Gets or sets value indicating whether installation state set by integration plugin should be ignored.
public bool OverrideInstallState { get; set; }
Property Value
PlatformIds
Gets or sets platform id.
public List<Guid> PlatformIds { get; set; }
Property Value
Platforms
Gets game's platform.
public List<Platform> Platforms { get; }
Property Value
PlayCount
Gets or sets a number indicating how many times the game has been played.
public ulong PlayCount { get; set; }
Property Value
Playtime
Gets or sets played time in seconds.
public ulong Playtime { get; set; }
Property Value
PlaytimeCategory
Gets game's play time category.
public PlaytimeCategory PlaytimeCategory { get; }
Property Value
PluginId
Gets or sets id of plugin responsible for handling this game.
public Guid PluginId { get; set; }
Property Value
PostScript
Gets or sets post-action script.
public string PostScript { get; set; }
Property Value
PreScript
Gets or sets pre-action script.
public string PreScript { get; set; }
Property Value
PublisherIds
Gets or sets list of publishers.
public List<Guid> PublisherIds { get; set; }
Property Value
Publishers
Gets game's publishers.
public List<Company> Publishers { get; }
Property Value
RecentActivity
Gets the most recent date between the last played and added dates.
public DateTime? RecentActivity { get; }
Property Value
RecentActivitySegment
Gets time segment for games recent activity.
public PastTimeSegment RecentActivitySegment { get; }
Property Value
RegionIds
Gets or sets game region.
public List<Guid> RegionIds { get; set; }
Property Value
Regions
Gets game's region.
public List<Region> Regions { get; }
Property Value
ReleaseDate
Gets or set game's release date.
public ReleaseDate? ReleaseDate { get; set; }
Property Value
ReleaseYear
Gets game's release year.
public int? ReleaseYear { get; }
Property Value
- int?
Roms
Gets or sets list of game ROM files.
public ObservableCollection<GameRom> Roms { get; set; }
Property Value
Series
Gets game's series.
public List<Series> Series { get; }
Property Value
SeriesIds
Gets or sets game series.
public List<Guid> SeriesIds { get; set; }
Property Value
SortingName
Gets or sets optional name used for sorting the game by name.
public string SortingName { get; set; }
Property Value
Source
Gets game's source.
public GameSource Source { get; }
Property Value
SourceId
Gets or sets source of the game.
public Guid SourceId { get; set; }
Property Value
TagIds
Gets or sets list of tags.
public List<Guid> TagIds { get; set; }
Property Value
Tags
Gets game's tags.
public List<Tag> Tags { get; }
Property Value
UseGlobalGameStartedScript
Gets or sets value indicating whether global pre script should be executed.
public bool UseGlobalGameStartedScript { get; set; }
Property Value
UseGlobalPostScript
Gets or sets value indicating whether global post script should be executed.
public bool UseGlobalPostScript { get; set; }
Property Value
UseGlobalPreScript
Gets or sets value indicating whether global pre script should be executed.
public bool UseGlobalPreScript { get; set; }
Property Value
UserScore
Gets or sets user's rating score.
public int? UserScore { get; set; }
Property Value
- int?
UserScoreGroup
Gets game's user score group.
public ScoreGroup UserScoreGroup { get; }
Property Value
UserScoreRating
Gets game's user score rating.
public ScoreRating UserScoreRating { get; }
Property Value
Version
Gets or sets game version.
public string Version { get; set; }
Property Value
Methods
CopyDiffTo(object)
Copies differential properties to target object intance.
public override void CopyDiffTo(object target)
Parameters
target
objectTarget object instance to receive new data.
GetCopy()
public Game GetCopy()
Returns
GetDifferences(Game)
Gets differences in game objects.
public List<GameField> GetDifferences(Game otherGame)
Parameters
otherGame
GameGame object to compare to.
Returns
GetGameRecentActivity()
Gets the most recent date between the last played and added dates.
public DateTime? GetGameRecentActivity()
Returns
GetInstallDrive()
Gets game Install Drive.
public string GetInstallDrive()
Returns
GetInstallDriveGroup()
Gets game Install Drive group.
public string GetInstallDriveGroup()
Returns
GetInstallSizeGroup()
Gets game Install Size group.
public InstallSizeGroup GetInstallSizeGroup()
Returns
GetNameGroup()
public char GetNameGroup()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.