132 lines
3.6 KiB
C#
132 lines
3.6 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class DataManager : SingleTon<DataManager>
|
|
{
|
|
public List<RowsItem> peoples = new List<RowsItem>();
|
|
public RowsItem currentSelectPeople = null;
|
|
|
|
public List<DataItem> currentPeoplesProgress = new List<DataItem>();
|
|
|
|
public Dictionary<int,bool> currentDisDistance = new Dictionary<int,bool>();
|
|
|
|
public List<DataItem2> currentPeoplesQuestion = new List<DataItem2>();
|
|
public QuestionType currentQuesitionType;
|
|
|
|
private GameData gameData = null;
|
|
|
|
public DataItem2 currentQuitQuestion = null;
|
|
|
|
public Dictionary<int, List<QuestionItem>> currentAllQuestion = new Dictionary<int, List<QuestionItem>>();
|
|
|
|
public List<AnswerQuestionData> currentAllDoneQuestion = new List<AnswerQuestionData>();
|
|
|
|
public List<BodyPosInfoDataItem> bodyPosInfos = new List<BodyPosInfoDataItem>();
|
|
public List<DataItem3> currentTalk = null;
|
|
/// <summary>
|
|
/// 当前诊断数据
|
|
/// </summary>
|
|
public DataItem currentData = null;
|
|
public PeopleStyle currentPeopleStyle = PeopleStyle.sit_front;
|
|
public StylePosType currentStylePos = StylePosType.JZX1;
|
|
public CheckToolType currentCheckTool = CheckToolType.Look;
|
|
|
|
public int currentBGType = 1;
|
|
public List<DataItem2> currentAnswerQuestion = new List<DataItem2>();
|
|
public List<DataItem2> checkBodyQuestion = new List<DataItem2>();
|
|
|
|
public string currentHistoryChoose = "";
|
|
|
|
public HistoryType currentHistoryType;
|
|
|
|
public bool isAddEventRTVoice = false;
|
|
|
|
public int CurrentHistoryUIID = -1;
|
|
|
|
public Dictionary<int, List<int>> peopleDisProgress = new Dictionary<int, List<int>>();
|
|
|
|
/// <summary>
|
|
/// 全部病人的个人资料
|
|
/// </summary>
|
|
public List<RowsItem2> rowitems2 = new List<RowsItem2>();
|
|
|
|
/// <summary>
|
|
/// 当前病人的个人资料
|
|
/// </summary>
|
|
public RowsItem2 peopleInfo = new RowsItem2();
|
|
|
|
/// <summary>
|
|
/// 全部病人的咨询理由
|
|
/// </summary>
|
|
public List<AskItem> askItems = new List<AskItem>();
|
|
|
|
/// <summary>
|
|
/// 当前姿势部位数据
|
|
/// </summary>
|
|
public List<BodyInfoDataItem> bodyInfoData = new List<BodyInfoDataItem>();
|
|
|
|
public List<HistoryInfoItem> historyInfoItems = new List<HistoryInfoItem>();
|
|
|
|
|
|
public List<LifeTypeItem> lifeItems = new List<LifeTypeItem>();
|
|
|
|
public List<HealingItem> healingItems = new List<HealingItem>();
|
|
|
|
public List<CheckReasonItem> checkReasonItems = new List<CheckReasonItem>();
|
|
|
|
public List<OtherInfo1Data> otherInfoItem = new List<OtherInfo1Data>();
|
|
|
|
public List<AllStyleItem> currentStyleItem = new List<AllStyleItem>();
|
|
|
|
public List<BodyNumItem> bodyNum = new List<BodyNumItem>();
|
|
|
|
public GameData GetGameData()
|
|
{
|
|
if (gameData == null)
|
|
{
|
|
gameData = GameObject.Find("GameData").GetComponent<GameData>();
|
|
}
|
|
return gameData;
|
|
}
|
|
}
|
|
public class AnswerQuestionData
|
|
{
|
|
public int questionID;
|
|
|
|
public DataItem2 question;
|
|
|
|
/// <summary>
|
|
/// 1 单选 2多选 3开放
|
|
/// </summary>
|
|
public int type;
|
|
|
|
public int chooseOne;
|
|
|
|
public List<int> choose;
|
|
|
|
public string hint;
|
|
}
|
|
public enum QuestionType
|
|
{
|
|
/// <summary>
|
|
/// 临床检查问题 code=1
|
|
/// </summary>
|
|
CLINICAL_PROBLEM = 1,
|
|
/// <summary>
|
|
/// 诊断问题 code =2
|
|
/// </summary>
|
|
DIAGNOSE_PROBLEM = 2,
|
|
/// <summary>
|
|
/// 建议问题 code=3
|
|
/// </summary>
|
|
SUGGEST_PROBLEM = 3,
|
|
/// <summary>
|
|
/// 咨询结束 code=4
|
|
/// </summary>
|
|
TALK_OVER = 4,
|
|
/// <summary>
|
|
/// 退出检查问题 code=4
|
|
/// </summary>
|
|
EXIT_PROBLEM = 5
|
|
} |