示例#1
0
        public override Task FinishGetSavedAsync()
        {
            _model !.MainSets !.ClearBoard(); //i think because its all gone.
            LoadControls();
            int x = SaveRoot !.SetList.Count; //the first time, actually load manually.

            x.Times(Items =>
            {
                PhaseSet thisSet = new PhaseSet(_command);
                _model.MainSets.CreateNewSet(thisSet);
            });
            PlayerList !.ForEach(thisPlayer =>
            {
                if (thisPlayer.AdditionalCards.Count > 0)
                {
                    thisPlayer.MainHandList.AddRange(thisPlayer.AdditionalCards); //later sorts anyways.
                    thisPlayer.AdditionalCards.Clear();                           //i think.
                }
            });
            SingleInfo = PlayerList.GetSelf();          //hopefully won't cause problems.
            SingleInfo.MainHandList.Sort();             //has to always sort no matter what now.
            _model.MainSets.LoadSets(SaveRoot.SetList); //i think clear board too.
            if (SaveRoot.ImmediatelyStartTurn == false)
            {
                PrepStartTurn(); //i think
            }
            return(base.FinishGetSavedAsync());
        }
示例#2
0
 public override PhaseSet FilterPhases(PhaseSet phases)
 {
     if (!_native)
     {
         return(phases & ~new PhaseSet(Phase.Backend));
     }
     return(phases);
 }
示例#3
0
 public override PhaseSet FilterPhases(PhaseSet phases) => phases & PossiblePhases;