Exemple #1
0
 public void addRole(CRoleBaseInfo role)
 {
     if (m_roleList == null)
     {
         m_roleList = new List <CRoleBaseInfo>();
     }
     m_roleList.Add(role);
 }
Exemple #2
0
 public bool SerializeFrom(UnityUtility.CStream msgStream)
 {
     m_accountName = msgStream.ReadString();
     m_vipScore    = msgStream.ReadUInt();
     m_roleCount   = msgStream.ReadUInt();
     m_roleList.Clear();
     for (UInt32 i = 0; i < m_roleCount; i++)
     {
         UnityUtility.CStream roleStream = msgStream;
         CRoleBaseInfo        role       = new CRoleBaseInfo();
         role.SerializeFrom(msgStream);
         addRole(role);
     }
     return(true);
 }