Esempio n. 1
0
        private void Init()
        {
            this.Selected     = new List <Card>();
            this.Mouse        = new MouseState(this);
            this.Touch        = new TouchState(this);
            this.Keyboard     = new KeyboardState(this);
            this.InteropQueue = new InteropQueueState(this);
            this.Storage      = new StorageState(this);

            this.Selector         = RectFactory.CreateSelector(Vector2f.Zero);
            this.Selector.Visible = false;
        }
Esempio n. 2
0
        public void Select(Card[] cards, IJSRuntime runtime)
        {
            foreach (var card in this.Selected)
            {
                card.Deselect();
            }

            this.Selected.Clear();

            foreach (var card in cards)
            {
                this.Selected.Add(card);
            }

            this.Highlighter = RectFactory.CreateHighlighter(this.Selected);
            this.InteropQueue.Flush(runtime);
        }