Example #1
0
 public MahJongSolitaireGameBoardCP(MahJongSolitaireSaveInfo saveRoot, BaseMahjongGlobals customGlobal
                                    , MahJongSolitaireModGlobal mainGlobal, IProportionImage thisP, BasicData data)
 {
     _saveRoot     = saveRoot; //if this causes too many problems, has to resolve later.
     _customGlobal = customGlobal;
     _mainGlobal   = mainGlobal;
     _data         = data;
     _sizeUsed     = MahjongSolitaireTileInfo.GetDefaultSize().GetSizeUsed(thisP.Proportion);
     if (saveRoot.BoardList.Count > 0)
     {
         throw new BasicBlankException("The saveroot should have cleared out every game.  Rethink");
     }
     FirstLoad();
 }
Example #2
0
 public MahJongSolitaireMainGameClass(
     IEventAggregator aggregator,
     MahJongSolitaireModGlobal global,
     MahJongSolitaireGameBoardCP board,
     BaseMahjongGlobals baseGlobal,
     MahJongSolitaireSaveInfo saveRoot
     )
 {
     //_thisState = thisState;
     Aggregator    = aggregator;
     _customGlobal = global;
     //_saveRoot = container.ReplaceObject<MahJongSolitaireSaveInfo>(); //can't create new one.  because if doing that, then anything that needs it won't have it.
     GameBoard1  = board; //hopefully no problems with circular references (?)
     _baseGlobal = baseGlobal;
     _saveRoot   = saveRoot;
 }
 public static async Task SaveMoveAsync(MahJongSolitaireSaveInfo Games)
 {
     Games.PreviousList = await GetPreviousListAsync(Games.BoardList);
 }