public static void Main(string[] args) { var kernel = new StandardKernel(); kernel.Load <Protogame2DIoCModule>(); kernel.Load <ProtogameAssetIoCModule>(); AssetManagerClient.AcceptArgumentsAndSetup <GameAssetManagerProvider>(kernel, args); using (var game = new GeneratedGame(kernel)) { game.Run(); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var kernel = new StandardKernel(); kernel.Load <Protogame2DIoCModule>(); kernel.Load <ProtogameAssetIoCModule>(); AssetManagerClient.AcceptArgumentsAndSetup <GameAssetManagerProvider>(kernel, null); // Create our OpenGL view, and display it var g = new GeneratedGame(kernel); SetContentView(g.AndroidGameView); g.Run(); }