Ejemplo n.º 1
0
        public static void Create(CCApplicationDelegate appDelegate, string launchParameters, PhoneApplicationPage page)
        {
            var game = XamlGame <CCGame> .Create(launchParameters, page);

            var instance = new CCApplication(game);

            instance.ApplicationDelegate = appDelegate;
        }
Ejemplo n.º 2
0
        public static void Create(CCApplicationDelegate appDelegate)
        {
            Action <CCGame, Windows.ApplicationModel.Activation.IActivatedEventArgs> initAction =
                delegate(CCGame game, Windows.ApplicationModel.Activation.IActivatedEventArgs args)
            {
                var instance = new CCApplication(game);
                instance.ApplicationDelegate = appDelegate;
            };
            var factory = new MonoGame.Framework.GameFrameworkViewSource <CCGame>(initAction);

            Windows.ApplicationModel.Core.CoreApplication.Run(factory);
        }
Ejemplo n.º 3
0
        public static void Create(CCApplicationDelegate appDelegate, LaunchActivatedEventArgs args, Windows.UI.Core.CoreWindow coreWindow, SwapChainBackgroundPanel swapChainBackgroundPanel)
        {
            var game = MonoGame.Framework.XamlGame <CCGame> .Create(args, coreWindow, swapChainBackgroundPanel);

            foreach (var component in game.Components)
            {
                if (component is CCApplication)
                {
                    var instance = component as CCApplication;
                    instance.ApplicationDelegate = appDelegate;
                }
            }
        }
Ejemplo n.º 4
0
        public static void Create(CCApplicationDelegate appDelegate)
        {
            Action <CCGame, Windows.ApplicationModel.Activation.IActivatedEventArgs> initAction =
                delegate(CCGame game, Windows.ApplicationModel.Activation.IActivatedEventArgs args)
            {
                foreach (var component in game.Components)
                {
                    if (component is CCApplication)
                    {
                        var instance = component as CCApplication;
                        instance.ApplicationDelegate = appDelegate;
                    }
                }
            };
            var factory = new MonoGame.Framework.GameFrameworkViewSource <CCGame>(initAction);

            Windows.ApplicationModel.Core.CoreApplication.Run(factory);
        }
Ejemplo n.º 5
0
        public static void Create(CCApplicationDelegate appDelegate, string launchParameters, PhoneApplicationPage page)
        {
        var game = XamlGame<CCGame>.Create(launchParameters, page);
        var instance = new CCApplication(game, page);

        instance.ApplicationDelegate = appDelegate;
        }
Ejemplo n.º 6
0
        public static void Create(CCApplicationDelegate appDelegate, string launchArguments, Windows.UI.Core.CoreWindow coreWindow, SwapChainBackgroundPanel swapChainBackgroundPanel)
        {
            var game = MonoGame.Framework.XamlGame<CCGame>.Create(launchArguments, coreWindow, swapChainBackgroundPanel);
            foreach (var component in game.Components)
            {
                if (component is CCApplication)
                {
                    var instance = component as CCApplication;
                    instance.ApplicationDelegate = appDelegate;
                }
            }

        }
Ejemplo n.º 7
0
        public static void Create(CCApplicationDelegate appDelegate)
        {
            Action<CCGame, Windows.ApplicationModel.Activation.IActivatedEventArgs> initAction =
            delegate(CCGame game, Windows.ApplicationModel.Activation.IActivatedEventArgs args)
            {
                foreach (var component in game.Components)
                {
                    if (component is CCApplication)
                    {
                        var instance = component as CCApplication;
                        instance.ApplicationDelegate = appDelegate;
                    }
                }
            };
            var factory = new MonoGame.Framework.GameFrameworkViewSource<CCGame>(initAction);
            Windows.ApplicationModel.Core.CoreApplication.Run(factory);

        }
Ejemplo n.º 8
0
		public static void Create(CCApplicationDelegate appDelegate)
		{
			Action<CCGame, Windows.ApplicationModel.Activation.IActivatedEventArgs> initAction =
			   delegate(CCGame game, Windows.ApplicationModel.Activation.IActivatedEventArgs args)
			   {

				   var instance = new CCApplication(game);
				   instance.ApplicationDelegate = appDelegate;
			   };
			var factory = new MonoGame.Framework.GameFrameworkViewSource<CCGame>(initAction);
			Windows.ApplicationModel.Core.CoreApplication.Run(factory);

		}