Esempio n. 1
0
        public bool AskForFloatAnswer(GrammarBlock question, AnswerListener <float> listener)
        {
            var lisBridge = new FloatAnswerListenerBridge(listener);

            floatAnswerListeners.Add(lisBridge);
            return(AskForNumericAnswer(helperFactory.implPtr, implPtr, helperFactory.GBlockToGBlockPtr(question), lisBridge.callback));
        }
Esempio n. 2
0
 public FloatAnswerListenerBridge(AnswerListener <float> _listener)
 {
     listener = _listener;
     callback = (float answer) => {
         _listener.OnAnswerUpdate(answer);
     };
 }
Esempio n. 3
0
 bool BehaviorAnalyzer.AskForFloatAnswer(GrammarBlock question, AnswerListener <float> listener)
 {
     return(false);           //stub
 }