示例#1
0
 static void Main()
 {
     using (NetworkStateManagementGame game = new NetworkStateManagementGame())
     {
         game.Run();
     }
 }
示例#2
0
 static void Main(string[] args)
 {
     using (NetworkStateManagementGame game = new NetworkStateManagementGame())
     {
         game.Run();
     }
 }
示例#3
0
        /// <summary>
        /// The main game constructor.
        /// </summary>
        public NetworkStateManagementGame()
        {
            Content.RootDirectory = "Content";

            graphics = new GraphicsDeviceManager(this);

            
            // Create components.
            screenManager = new ScreenManager(this);

            Components.Add(screenManager);
            Components.Add(new MessageDisplayComponent(this));
            Components.Add(new GamerServicesComponent(this));

            // Activate the first screens.
            screenManager.AddScreen(new BackgroundScreen(), null);
            screenManager.AddScreen(new MainMenuScreen(), null);

            // Listen for invite notification events.
            NetworkSession.InviteAccepted += (sender, e) => NetworkSessionComponent.InviteAccepted(screenManager, e);

            // To test the trial mode behavior while developing your game,
            // uncomment this line:

            // Guide.SimulateTrialMode = true;

            if (NetworkStateManagementGame.MainGame == null) NetworkStateManagementGame.MainGame = this;
        }
示例#4
0
        /// <summary>
        /// The main game constructor.
        /// </summary>
        public NetworkStateManagementGame()
        {
            Content.RootDirectory = "Content";

            graphics = new GraphicsDeviceManager(this);

            // Create components.
            screenManager = new ScreenManager(this);

            Components.Add(screenManager);
            Components.Add(new MessageDisplayComponent(this));
            Components.Add(new GamerServicesComponent(this));

            // Activate the first screens.
            screenManager.AddScreen(new BackgroundScreen(), null);
            screenManager.AddScreen(new MainMenuScreen(), null);

            // Listen for invite notification events.
            NetworkSession.InviteAccepted += (sender, e) => NetworkSessionComponent.InviteAccepted(screenManager, e);

            // To test the trial mode behavior while developing your game,
            // uncomment this line:

            // Guide.SimulateTrialMode = true;

            if (NetworkStateManagementGame.MainGame == null) NetworkStateManagementGame.MainGame = this;
        }
示例#5
0
        public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
        {
            NetworkStateManagementGame game = new NetworkStateManagementGame();

            game.Run();
        }
示例#6
0
		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
		{
			NetworkStateManagementGame game = new NetworkStateManagementGame ();
			game.Run ();
		}