コード例 #1
0
ファイル: test_theme.cs プロジェクト: SnipGhost/cstsproj
        public void Save(format_tsf stream)
        {
            int num;

            stream.Write(this.name);
            stream.Write(this.levels.Count);
            for (num = 0; num < this.levels.Count; num++)
            {
                stream.Write(this.levels[num]);
            }
            stream.Write(this.questions.Count);
            for (num = 0; num < this.questions.Count; num++)
            {
                this.questions[num].Save(stream);
            }
        }
コード例 #2
0
 public void Save(format_tsf stream)
 {
     stream.Write(this.name);
     stream.Write(this.question);
     stream.Write(this.image_filename);
     stream.Write(this.max_answers);
     stream.Write(this.answers.Count);
     for (int i = 0; i < this.answers.Count; i++)
     {
         stream.Write(this.answers[i].answer);
         stream.Write(this.answers[i].is_right);
     }
 }
コード例 #3
0
ファイル: test_result.cs プロジェクト: SnipGhost/cstsproj
 public void Save(format_tsf stream)
 {
     stream.Write(this.test_name);
     stream.Write(this.test_message);
     stream.Write(this.test_level);
     stream.Write(this.test_start_time.Ticks);
     stream.Write(this.result);
     stream.Write(this.question_results.Count);
     for (int i = 0; i < this.question_results.Count; i++)
     {
         stream.Write(this.question_results[i].themeId);
         stream.Write(this.question_results[i].questionId);
         stream.Write((byte)this.question_results[i].answerId.Count);
         for (int j = 0; j < this.question_results[i].answerId.Count; j++)
         {
             stream.Write(this.question_results[i].answerId[j]);
         }
         stream.Write(this.question_results[i].timeSpent);
     }
 }