Пример #1
0
        internal Question <TState> MakeQuestion(GuideParser <TState> guideParser)
        {
            var q = new Question <TState>(Id,
                                          Title,
                                          guideParser.MakeEvaluator(Discovered),
                                          guideParser.MakeEvaluator(Solveable),
                                          guideParser.MakeEvaluator(Solved)
                                          );

            q.HintChain = MakeHintChain(guideParser);

            return(q);
        }
Пример #2
0
        internal override BaseHintChainNode <TState> MakeHintChain(GuideParser <TState> guideParser)
        {
            var c = new ConditionNode <TState>(
                guideParser.MakeEvaluator(Condition),
                base.MakeHintChain(guideParser),
                Id
                );

            guideParser.AddHintNode(c);
            return(c);
        }