Beispiel #1
0
        public void Read(format_tsf stream)
        {
            this.test_name       = stream.ReadString();
            this.test_message    = stream.ReadString();
            this.test_level      = stream.ReadString();
            this.test_start_time = new DateTime(stream.ReadLong());
            this.result          = stream.ReadInt();
            int num = stream.ReadInt();

            this.question_results.Clear();
            for (int i = 0; i < num; i++)
            {
                test_question_result item = new test_question_result {
                    themeId    = stream.ReadShort(),
                    questionId = stream.ReadShort()
                };
                item.answerId.Clear();
                byte num3 = stream.ReadByte();
                for (int j = 0; j < num3; j++)
                {
                    item.answerId.Add(stream.ReadByte());
                }
                item.timeSpent = stream.ReadInt();
                this.question_results.Add(item);
            }
        }
Beispiel #2
0
        public void Read(format_tsf stream)
        {
            this.name           = stream.ReadString();
            this.question       = stream.ReadString();
            this.image_filename = stream.ReadString();
            this.max_answers    = stream.ReadInt();
            int num = stream.ReadInt();

            this.answers.Clear();
            for (int i = 0; i < num; i++)
            {
                test_answer item = new test_answer {
                    answer   = stream.ReadString(),
                    is_right = stream.ReadBool()
                };
                this.answers.Add(item);
            }
        }
Beispiel #3
0
        public void Read(format_tsf stream)
        {
            int num2;

            this.name = stream.ReadString();
            int num = stream.ReadInt();

            this.levels.Clear();
            for (num2 = 0; num2 < num; num2++)
            {
                this.levels.Add(stream.ReadString());
            }
            int num3 = stream.ReadInt();

            this.questions.Clear();
            for (num2 = 0; num2 < num3; num2++)
            {
                test_question item = new test_question();
                item.Read(stream);
                this.questions.Add(item);
            }
        }