分离题库数据以便开发题库编辑工具

pull/1/head
zc 2024-10-27 23:11:29 +08:00
parent 18275fb076
commit 5037898610
4 changed files with 38 additions and 24 deletions

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 4bc9670fa7014130a180ddedb93dffb5
timeCreated: 1730041828

View File

@ -0,0 +1,31 @@
using System.Collections.Generic;
using UnityEngine;
namespace ZC
{
[System.Serializable]
public class QuestionBankData : ScriptableObject
{
public string questionName;
public List<AnswerData> AnswerDatas = new List<AnswerData>();
}
[System.Serializable]
public class AnswerData
{
public int index;
public string title;
public List<OptionData> options = new List<OptionData>();
public string trueOption;
public string analyze;
}
[System.Serializable]
public class OptionData
{
public string content;
public bool isTrue;
// public string analyze;
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d756517b2bde43b68b5ed56251a48a9b
timeCreated: 1730041548

View File

@ -1,5 +1,4 @@
using System.Collections.Generic; using TMPro;
using TMPro;
using UnityEngine.UI; using UnityEngine.UI;
namespace ZC namespace ZC
@ -120,26 +119,4 @@ namespace ZC
} }
} }
} }
public class QuestionBankData
{
public List<AnswerData> AnswerDatas = new List<AnswerData>();
}
public class AnswerData
{
public int index;
public string title;
public List<OptionData> options = new List<OptionData>();
public string trueOption;
public string analyze;
}
public class OptionData
{
public string content;
public bool isTrue;
// public string analyze;
}
} }