Beispiel #1
0
        public bool SerializeFrom(UnityUtility.CStream msgStream)
        {
            m_achieveType  = (EAchieveType)msgStream.ReadUInt();
            m_achieveCount = msgStream.ReadUInt();
            for (int i = 0; i < m_achieveCount; ++i)
            {
                CAchieveItem item = new CAchieveItem();
                item.SerializeFrom(msgStream);
                m_achieveList.Add(item);
            }

            return(true);
        }
Beispiel #2
0
        public string getAllAchieveToLogString()
        {
            string lg = "[type=" + m_achieveType.ToString() + "]";

            lg += "[count=" + m_achieveCount + "]";
            lg += "\r\n";
            for (int i = 0; i < m_achieveList.Count; ++i)
            {
                CAchieveItem item = m_achieveList[i];
                lg += "[AchieveID=" + item.AchieveID + "]";
                lg += "[AchieveProgress=" + item.AchieveProgress + "]";
                lg += "[AchieveSubType=" + item.AchieveSubType + "]";
                lg += "[AchieveStatus=" + item.AchieveStatus + "]";
                lg += "\r\n";
            }
            return(lg);
        }