Exemplo n.º 1
0
 protected override bool _SerializeFrom(UnityUtility.CStream msgStream)
 {
     m_retCode = msgStream.ReadUInt();
     if (m_retCode != (UInt32)ECreateRoleResult.ECREATEROLE_RESUlT_SUCCESS)
     {
         return(true);
     }
     m_currentRoleIndex = msgStream.ReadUInt();
     m_role.SerializeFrom(msgStream);
     return(true);
 }
Exemplo n.º 2
0
 protected override bool _SerializeFrom(UnityUtility.CStream msgStream)
 {
     m_retCode = msgStream.ReadUInt();
     if (m_retCode != (UInt32)EInitRoleDataResult.EINITROLEDATA_RESUlT_SUCCESS)
     {
         return(true);
     }
     m_currentRoleIndex = msgStream.ReadUInt();
     m_sceneTypeID      = msgStream.ReadUInt();
     if (m_retCode == (UInt32)EInitRoleDataResult.EINITROLEDATA_RESUlT_SUCCESS)
     {
         m_role.SerializeFrom(msgStream);
     }
     return(true);
 }