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; }
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); }
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; } } }
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); }
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; }
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; } } }
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); }
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); }