Exemplo n.º 1
0
        public DataAccess(GraphicsDevice graphicsDevice, SpriteBatch spriteBatch, Input input, StateManager stateManager, Keymap keymap, GuiThread guiThread, ContentHelper contentHelper)
        {
            this.graphicsDevice = graphicsDevice;
            this.spriteBatch = spriteBatch;
            this.input = input;
            this.stateManager = stateManager;
            this.keymap = keymap;
            this.guiThread = guiThread;
            this.contentHelper = contentHelper;

            random = new Random();
        }
Exemplo n.º 2
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            contentHelper = new ContentHelper(GraphicsDevice, Content);
            LoadContentHelperData();

            Keymap keymap = new Keymap();
            RegisterKeyCombinations(keymap);

            dataAccess = new DataAccess(GraphicsDevice, spriteBatch, input, stateManager, keymap, guiThread, contentHelper);

            CollageEditState editState = new CollageEditState(dataAccess);
            stateManager.SetCurrentState(editState);
        }