Exemplo n.º 1
0
        public void Unload()
        {
            foreach (var m in CommonDrawables)
            {
                m.Dispose();
            }
            CommonDrawables.Clear();
            foreach (var t in m_Textures)
            {
                t.Value.Dispose();
            }

            m_Textures.Clear();
            Effect.Dispose();
            BlendStateManager.Dispose();
        }
Exemplo n.º 2
0
        public GameWindowGui(IGameWindowView gameWindowView)
        {
            _view = gameWindowView;

            _boardDrawable = new BoardDrawable(new Point(0, 0));
            _view.AddDrawable(_boardDrawable);

            var diceDrawable = new DiceDrawable(new Point(724 / 2, 724 / 2));

            diceDrawable.Clicked += DiceDrawableOnClicked;
            _view.AddDrawable(diceDrawable);

            /*var boardPositionsDrawables = CommonDrawables.GetBoardPlacePositions(BoardPositionClicked);
             * _view.AddDrawables(boardPositionsDrawables);*/

            var boardIconsDrawables = CommonDrawables.GetBoardIconPositions(BoardIconClicked);

            _view.AddDrawables(boardIconsDrawables);
        }