Game.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 the game system.
  25. /// </summary>
  26. /// <value>The game system.</value>
  27. public string GameSystem { get; set; }
  28. /// <summary>
  29. ///
  30. /// </summary>
  31. public override string MetaLocation
  32. {
  33. get
  34. {
  35. return System.IO.Path.GetDirectoryName(Path);
  36. }
  37. }
  38. /// <summary>
  39. /// Gets or sets a value indicating whether this instance is multi part.
  40. /// </summary>
  41. /// <value><c>true</c> if this instance is multi part; otherwise, <c>false</c>.</value>
  42. public bool IsMultiPart { get; set; }
  43. /// <summary>
  44. /// Holds the paths to the game files in the event this is a multipart game
  45. /// </summary>
  46. public List<string> MultiPartGameFiles { get; set; }
  47. /// <summary>
  48. ///
  49. /// </summary>
  50. protected override bool UseParentPathToCreateResolveArgs
  51. {
  52. get
  53. {
  54. return !IsInMixedFolder;
  55. }
  56. }
  57. }
  58. }