예제 #1
0
 public ContextManager(ContentManager content, GraphicsDevice graphicsDevice, SpriteBatch spriteBatch)
 {
     assets = new AssetManager();
     assets.LoadContent(content, graphicsDevice);
     canvas = new Canvas(assets, graphicsDevice, spriteBatch);
     input = new InputController(assets);
     storage = new StorageManager();
     LayoutTree layoutTree = LayoutEngine.BuildLayout(content.Load<Text>("master"));
     Integrate(assets, layoutTree.Root);
     assets.GetLevel("Level1");
 }