コード例 #1
0
        protected override async Task <bool> ApplyOption1(IGameState gameState)
        {
            var clone            = gameState.Clone();
            var firstPlantResult = await PlantVine.OnExecute();

            if (!firstPlantResult)
            {
                gameState.SetFromClone(clone);
                return(false);
            }

            var secondPlantResult = await PlantVine.OnExecute();

            if (!secondPlantResult)
            {
                gameState.SetFromClone(clone);
                return(false);
            }

            return(true);
        }
コード例 #2
0
 protected override Task <bool> ApplyOption1(IGameState gameState)
 {
     PlantVine.IgnoreRequirements = true;
     return(PlantVine.OnExecute());
 }