C# Class Myre.Entities.NinjectKernel

Contains a singleton ninject kernel instance.
ファイルを表示 Open project: TomGillen/Myre

Public Methods

Method Description
BindGame ( Microsoft.Xna.Framework.Game game, IKernel kernel, bool bindGraphicsDevice = true, bool bindContentManager = true, bool bindServiceContainer = true ) : void

Binds the game into the kernel.

BindGame ( Microsoft.Xna.Framework.Game game, bool bindGraphicsDevice = true, bool bindContentManager = true, bool bindServiceContainer = true ) : void

Binds the game into the kernel.

Method Details

BindGame() public static method

Binds the game into the kernel.
public static BindGame ( Microsoft.Xna.Framework.Game game, IKernel kernel, bool bindGraphicsDevice = true, bool bindContentManager = true, bool bindServiceContainer = true ) : void
game Microsoft.Xna.Framework.Game The game.
kernel IKernel The kernel to bind into.
bindGraphicsDevice bool if set to true binds game.GraphicsDevice.
bindContentManager bool if set to true binds game.Content.
bindServiceContainer bool if set to true binds game.Services.
return void

BindGame() public static method

Binds the game into the kernel.
public static BindGame ( Microsoft.Xna.Framework.Game game, bool bindGraphicsDevice = true, bool bindContentManager = true, bool bindServiceContainer = true ) : void
game Microsoft.Xna.Framework.Game The game.
bindGraphicsDevice bool if set to true binds game.GraphicsDevice.
bindContentManager bool if set to true binds game.Content.
bindServiceContainer bool if set to true binds game.Services.
return void