Пример #1
0
 public void LoadCup(SnakesAndLaddersSaveInfo saveRoot, bool autoResume)
 {
     //decided to let this new one handle the loading of the cup.
     Cup = new DiceCup <SimpleDice>(saveRoot.DiceList, _resolver, _command);
     Cup.SendEnableProcesses(this, () =>
     {
         return(false);                //because you can't click the dice.
     });
     Cup.HowManyDice = 1;
     if (autoResume == true && saveRoot.HasRolled == true)
     {
         Cup.CanShowDice = true;
         Cup.Visible     = true;
     }             //hopefully no need to raise event for clicking dice.
 }