Example #1
0
 public void LoadSavedGame(DominosRegularSaveInfo saveRoot)
 {
     _saveRoot = saveRoot;
     DominoList.ReplaceRange(new CustomBasicList <SimpleDominoInfo> {
         FirstDomino, CenterDomino, SecondDomino
     });
 }
Example #2
0
 public void ClearBoard(DominosRegularSaveInfo saveRoot)
 {
     _saveRoot         = saveRoot;
     FirstDomino       = new SimpleDominoInfo();
     FirstDomino.Deck  = -1;
     SecondDomino      = new SimpleDominoInfo();
     SecondDomino.Deck = -2;
     CenterDomino      = new SimpleDominoInfo();
     CenterDomino.Deck = -3;
     DominoList.ReplaceRange(new CustomBasicList <SimpleDominoInfo> {
         FirstDomino, CenterDomino, SecondDomino
     });
 }
Example #3
0
        Task IHandleAsync <LoadEventModel> .HandleAsync(LoadEventModel message)
        {
            GamePackageViewModelBinder.ManuelElements.Clear();                       //often times i have to add manually.

            DominosRegularSaveInfo save = cons !.Resolve <DominosRegularSaveInfo>(); //usually needs this part for multiplayer games.

            _score !.LoadLists(save.PlayerList);
            _playerHandXF !.LoadList(_model.PlayerHand1, ts.TagUsed);
            _model.BoneYard.MaxSize = new SKSize(600, 600);
            _model.BoneYard.ScatterPieces();
            _bone !.LoadList(_model.BoneYard, ts.TagUsed);
            _gameBoard1 !.LoadList(_model, _resolver);
            return(this.RefreshBindingsAsync(_aggregator));
        }