static void Main() { using (NetworkStateManagementGame game = new NetworkStateManagementGame()) { game.Run(); } }
static void Main(string[] args) { using (NetworkStateManagementGame game = new NetworkStateManagementGame()) { game.Run(); } }
/// <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; }
public override void FinishedLaunching(MonoMac.Foundation.NSObject notification) { NetworkStateManagementGame game = new NetworkStateManagementGame(); game.Run(); }
public override void FinishedLaunching (MonoMac.Foundation.NSObject notification) { NetworkStateManagementGame game = new NetworkStateManagementGame (); game.Run (); }