GamePage.xaml.cs 910 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Runtime.InteropServices.WindowsRuntime;
  6. using Windows.Foundation;
  7. using Windows.Foundation.Collections;
  8. using Windows.UI.Xaml;
  9. using Windows.UI.Xaml.Controls;
  10. using Windows.UI.Xaml.Controls.Primitives;
  11. using Windows.UI.Xaml.Data;
  12. using Windows.UI.Xaml.Input;
  13. using Windows.UI.Xaml.Media;
  14. using Windows.UI.Xaml.Navigation;
  15. namespace UWP
  16. {
  17. public sealed partial class GamePage : Page
  18. {
  19. readonly GameStateManagementSample.GameStateManagementGame _game;
  20. public GamePage()
  21. {
  22. this.InitializeComponent();
  23. // Create the game.
  24. var launchArguments = string.Empty;
  25. _game = MonoGame.Framework.XamlGame<GameStateManagementSample.GameStateManagementGame>.Create(launchArguments, Window.Current.CoreWindow, swapChainPanel);
  26. }
  27. }
  28. }