コード例 #1
0
 public QuestionController(IDataProvider dataProvider, IGameRules gameRules)
 {
     GameRules        = gameRules;
     DataProvider     = dataProvider;
     timer.Tick      += new EventHandler(Timer_Tick);
     TimeLeftToAnswer = GameRules.TimeToAnswer;
     questionPack     = new QuestionPack(gameRules);
 }
コード例 #2
0
 public void LoadQuestionPack(string packName)
 {
     questionPack = DataProvider.GetQuestionPack(packName);
 }