Esempio n. 1
0
        private void SendWork(string workerInboxPath, Individual cur)
        {
            var deckParams = new DeckParams();

            deckParams.ClassName = _heroClass.ToString().ToLower();
            deckParams.CardList  = cur.GetCards();

            var msg = new PlayMatchesMessage();

            msg.Deck = deckParams;

            Toml.WriteFile <PlayMatchesMessage>(msg, workerInboxPath);
        }
Esempio n. 2
0
        private void SendWork(string workerInboxPath, Individual cur)
        {
            var deckParams = new DeckParams();

            deckParams.ClassName = _playerDeck.DeckClass.ToString();
            deckParams.CardList  = _playerDeck.GetCardNames();
            CustomStratWeights weights = cur.GetWeights();

            var msg = new PlayMatchesMessage();

            msg.Deck     = deckParams;
            msg.Strategy = weights;

            Toml.WriteFile <PlayMatchesMessage>(msg, workerInboxPath);
        }