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()); }
public override PhaseSet FilterPhases(PhaseSet phases) { if (!_native) { return(phases & ~new PhaseSet(Phase.Backend)); } return(phases); }
public override PhaseSet FilterPhases(PhaseSet phases) => phases & PossiblePhases;