Guide.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. namespace Microsoft.Xna.Framework.GamerServices
  2. {
  3. /// <summary>
  4. /// Provides access to platform services.
  5. /// </summary>
  6. public static class Guide
  7. {
  8. /// <summary>
  9. /// Gets whether the current game is running in trial mode.
  10. /// </summary>
  11. public static bool IsTrialMode => false; // Mock implementation - not in trial mode
  12. /// <summary>
  13. /// Gets whether the Guide is visible.
  14. /// </summary>
  15. public static bool IsVisible => false; // Mock implementation
  16. /// <summary>
  17. /// Gets whether screen saver is enabled.
  18. /// </summary>
  19. public static bool IsScreenSaverEnabled
  20. {
  21. get => false;
  22. set { /* Mock implementation */ }
  23. }
  24. /// <summary>
  25. /// Shows a message box to the user.
  26. /// </summary>
  27. public static IAsyncResult BeginShowMessageBox(
  28. string title,
  29. string text,
  30. IEnumerable<string> buttons,
  31. int focusButton,
  32. MessageBoxIcon icon,
  33. AsyncCallback callback,
  34. object state)
  35. {
  36. // Mock implementation - for now just return a completed result
  37. var result = new MockAsyncResult(state, true);
  38. callback?.Invoke(result);
  39. return result;
  40. }
  41. /// <summary>
  42. /// Ends the message box operation.
  43. /// </summary>
  44. public static int? EndShowMessageBox(IAsyncResult result)
  45. {
  46. return 0; // Mock implementation - first button selected
  47. }
  48. /// <summary>
  49. /// Shows the sign-in interface.
  50. /// </summary>
  51. public static IAsyncResult BeginShowSignIn(int paneCount, bool onlineOnly, AsyncCallback callback, object state)
  52. {
  53. var result = new MockAsyncResult(state, true);
  54. callback?.Invoke(result);
  55. return result;
  56. }
  57. /// <summary>
  58. /// Ends the sign-in operation.
  59. /// </summary>
  60. public static void EndShowSignIn(IAsyncResult result)
  61. {
  62. // Mock implementation
  63. }
  64. /// <summary>
  65. /// Shows the sign-in interface (synchronous version).
  66. /// </summary>
  67. public static void ShowSignIn(int paneCount, bool onlineOnly)
  68. {
  69. // Mock implementation
  70. }
  71. /// <summary>
  72. /// Shows the marketplace.
  73. /// </summary>
  74. public static void ShowMarketplace(PlayerIndex playerIndex)
  75. {
  76. // Mock implementation
  77. }
  78. }
  79. }