public bool SerializeFrom(UnityUtility.CStream msgStream) { UInt32 questionCount = msgStream.ReadUInt(); for (UInt32 i = 0; i < questionCount; ++i) { CTalkItem item = new CTalkItem(); item.SerializeFrom(msgStream); m_questionList.Add(item); } return(true); }
public bool SerializeFrom(UnityUtility.CStream msgStream) { m_answerID = msgStream.ReadUInt(); m_answer = msgStream.ReadString(); UInt32 answerCount = msgStream.ReadUInt(); for (UInt32 i = 0; i < answerCount; ++i) { CTalkItem item = new CTalkItem(); item.SerializeFrom(msgStream); m_answerSubList.Add(item); } return(true); }
public string getLogString() { string lg = ""; lg += "\r\n"; UInt32 questionCount = (UInt32)m_questionList.Count; for (UInt32 i = 0; i < questionCount; ++i) { CTalkItem item = m_questionList[(int)i]; lg += item.getLogString(); } lg += "\r\n"; return(lg); }
public string getLogString() { string lg = ""; lg += "m_answerID=" + m_answerID + " "; lg += "m_answer=" + m_answer + " "; lg += "\r\n"; UInt32 count = (UInt32)m_answerSubList.Count; for (UInt32 i = 0; i < count; ++i) { CTalkItem item = m_answerSubList[(int)i]; lg += item.getLogString(); } lg += "\r\n"; return(lg); }