コード例 #1
0
 public GameState(QuizCommand command)
 {
     _command   = command;
     _questions = Resources.Quiz.Questions.Split(new[] { "\n" }, StringSplitOptions.RemoveEmptyEntries)
                  .Select(q => q.Split('|'))
                  .Select(q => new Question
     {
         Text   = q[0],
         Answer = q[1]
     })
                  .ToList();
 }
コード例 #2
0
 public BeginGameState(QuizCommand command)
 {
     _command = command;
 }