private void WireLogicInjector(ILogicInjector injector, IQuestionGenerator generator) { IQuestion question = generator.GetNextQuestion(); Answer[] answers = generator.GetNextAnswers(); injector.Wire(question, answers); }
public Assessment(IAnswerPlacer answ_placer, IQuestionPlacer question_placer, IQuestionGenerator question_generator, ILogicInjector logic_injector, IAssessmentConfiguration game_conf, AssessmentAudioManager dialogues) { AnswerPlacer = answ_placer; QuestionGenerator = question_generator; QuestionPlacer = question_placer; LogicInjector = logic_injector; Configuration = game_conf; Dialogues = dialogues; }
public DefaultAssessment(IAnswerPlacer answ_placer, IQuestionPlacer question_placer, IQuestionGenerator question_generator, ILogicInjector logic_injector, IAssessmentConfiguration game_conf, IGameContext game_context, IDialogueManager dialogues, Db.LocalizationDataId gameDescription) { AnswerPlacer = answ_placer; QuestionGenerator = question_generator; QuestionPlacer = question_placer; LogicInjector = logic_injector; Configuration = game_conf; GameContext = game_context; Dialogues = dialogues; GameDescription = gameDescription; }