コード例 #1
0
ファイル: TriviaManager.cs プロジェクト: KahVille/flagworld
    // for testing purposes only
    private QuestionData[] SetDummyRoundData()
    {
        QuestionData dummyQuestionData1 = new QuestionData();

        dummyQuestionData1.SetQuestionData(0, "What is the capital city of Finland", QuestionData.QuestionType.Textonly, ("Helsinki", true), ("Oulu", false), ("Kuopio", false), ("Kotka", false));
        QuestionData dummyQuestionData3 = new QuestionData();

        dummyQuestionData3.SetQuestionData(1, "Does Denmark belong to Nordic Countries", QuestionData.QuestionType.TrueFalse, ("FALSE", false), ("TRUE", true));
        QuestionData dummyQuestionData2 = new QuestionData();

        dummyQuestionData2.SetQuestionData(2, "Press the flag of Finland", QuestionData.QuestionType.Images, ("Finland", true), ("Sweden", false), ("Norway", false), ("Russia", false));
        QuestionData dummyQuestionData4 = new QuestionData();

        dummyQuestionData4.SetQuestionData(3, "Press the flag of Sweden", QuestionData.QuestionType.TrueFalseImage, ("Finland", false), ("Sweden", true));

        return(new QuestionData[4] {
            dummyQuestionData1, dummyQuestionData2, dummyQuestionData3, dummyQuestionData4
        });
    }