コード例 #1
0
        public void Undo()
        {
            UnselectAllObjects();
            ThreeLetterFunSaveInfo saveroot = cons !.Resolve <ThreeLetterFunSaveInfo>(); //to stop the overflow issues by requiring reference to game class

            saveroot.TileList.ForEach(x => x.Visible = true);
        }
コード例 #2
0
        async Task IFirstOptionProcesses.BeginningOptionSelectedAsync(EnumFirstOption firstOption)
        {
            if (_basicData.Client == false)
            {
                //send message to client so they can process.
                await _network !.SendAllAsync("firstoption", firstOption);
            }
            else if (_test.NoAnimations == false)
            {
                await _delayer.DelayMilli(300);
            }
            //this needs to send message to shell view model to do the next part.
            if (firstOption == EnumFirstOption.Beginner)
            {
                ThreeLetterFunSaveInfo saveRoot = _resolver.Resolve <ThreeLetterFunSaveInfo>();
                saveRoot.Level = EnumLevel.Easy;
                await _aggregator.PublishAsync(new NextScreenEventModel(EnumNextScreen.Cards));

                if (_basicData.Client == true)
                {
                    _checker !.IsEnabled = true;
                }
                return;
            }
            await _aggregator.PublishAsync(new NextScreenEventModel(EnumNextScreen.Advanced));

            if (_basicData.Client == true)
            {
                _checker !.IsEnabled = true;
            }
        }
コード例 #3
0
        public void UpdateBoard()
        {
            ThreeLetterFunSaveInfo saveroot = cons !.Resolve <ThreeLetterFunSaveInfo>();

            if (saveroot.TileList.Count == 0)
            {
                HandList.Clear();
                return;
            }
            CustomBasicList <TileInformation> ThisList = new CustomBasicList <TileInformation>
            {
                saveroot.TileList.First(), saveroot.TileList[1]
            };

            HandList.ReplaceRange(ThisList);
        }