namespace Microsoft.Xna.Framework.GamerServices
{
///
/// Provides access to platform services.
///
public static class Guide
{
///
/// Gets whether the current game is running in trial mode.
///
public static bool IsTrialMode => false; // Mock implementation - not in trial mode
///
/// Gets whether the Guide is visible.
///
public static bool IsVisible => false; // Mock implementation
///
/// Gets whether screen saver is enabled.
///
public static bool IsScreenSaverEnabled
{
get => false;
set { /* Mock implementation */ }
}
///
/// Shows a message box to the user.
///
public static IAsyncResult BeginShowMessageBox(
string title,
string text,
IEnumerable buttons,
int focusButton,
MessageBoxIcon icon,
AsyncCallback callback,
object state)
{
// Mock implementation - for now just return a completed result
var result = new MockAsyncResult(state, true);
callback?.Invoke(result);
return result;
}
///
/// Ends the message box operation.
///
public static int? EndShowMessageBox(IAsyncResult result)
{
return 0; // Mock implementation - first button selected
}
///
/// Shows the sign-in interface.
///
public static IAsyncResult BeginShowSignIn(int paneCount, bool onlineOnly, AsyncCallback callback, object state)
{
var result = new MockAsyncResult(state, true);
callback?.Invoke(result);
return result;
}
///
/// Ends the sign-in operation.
///
public static void EndShowSignIn(IAsyncResult result)
{
// Mock implementation
}
///
/// Shows the sign-in interface (synchronous version).
///
public static void ShowSignIn(int paneCount, bool onlineOnly)
{
// Mock implementation
}
///
/// Shows the marketplace.
///
public static void ShowMarketplace(PlayerIndex playerIndex)
{
// Mock implementation
}
}
}