コード例 #1
0
        private void EvolveAdventure()
        {
            _adventure.Stop();

            if (_mogwai.CanEvolveAdventure)
            {
                _mogwai.EvolveAdventure();
            }

            if (_adventure != null)
            {
                SetCustomWindowState(PlayScreenState.AdventureStats);
                return;
            }
        }
コード例 #2
0
        public async Task EvolveMogwai()
        {
            await Task.Run(() =>
            {
                if (CurrentMogwai == null)
                {
                    return;
                }

                CurrentMogwaiKeys.IsLocked = true;

                Mogwai mogwai = CurrentMogwai;
                while (mogwai.Evolve())
                {
                    while (mogwai.CanEvolveAdventure)
                    {
                        mogwai.EvolveAdventure();
                    }
                }

                CurrentMogwaiKeys.IsLocked = false;
            });
        }