Game.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Controller.Entities
  3. {
  4. public class Game : BaseItem
  5. {
  6. public Game()
  7. {
  8. MultiPartGameFiles = new List<string>();
  9. }
  10. /// <summary>
  11. /// Gets the type of the media.
  12. /// </summary>
  13. /// <value>The type of the media.</value>
  14. public override string MediaType
  15. {
  16. get { return Model.Entities.MediaType.Game; }
  17. }
  18. /// <summary>
  19. /// Gets or sets the players supported.
  20. /// </summary>
  21. /// <value>The players supported.</value>
  22. public int? PlayersSupported { get; set; }
  23. /// <summary>
  24. /// Gets or sets a value indicating whether this instance is installed on client.
  25. /// </summary>
  26. /// <value><c>true</c> if this instance is installed on client; otherwise, <c>false</c>.</value>
  27. public bool IsInstalledOnClient { get; set; }
  28. /// <summary>
  29. /// Gets or sets the game system.
  30. /// </summary>
  31. /// <value>The game system.</value>
  32. public string GameSystem { get; set; }
  33. /// <summary>
  34. ///
  35. /// </summary>
  36. public override string MetaLocation
  37. {
  38. get
  39. {
  40. return System.IO.Path.GetDirectoryName(Path);
  41. }
  42. }
  43. /// <summary>
  44. /// Gets or sets a value indicating whether this instance is multi part.
  45. /// </summary>
  46. /// <value><c>true</c> if this instance is multi part; otherwise, <c>false</c>.</value>
  47. public bool IsMultiPart { get; set; }
  48. /// <summary>
  49. /// Holds the paths to the game files in the event this is a multipart game
  50. /// </summary>
  51. public List<string> MultiPartGameFiles { get; set; }
  52. /// <summary>
  53. ///
  54. /// </summary>
  55. protected override bool UseParentPathToCreateResolveArgs
  56. {
  57. get
  58. {
  59. return !IsInMixedFolder;
  60. }
  61. }
  62. }
  63. }