bool AuctionGoodsInfo::SaveToFile(CFileStream &file) { if (0 == m_uSerializeID || m_uAddPercent > 100 || !m_cGoodsInfo.SaveToFile(file)) return false; file.WriteUShort(m_uSerializeID); file.WriteUShort(m_uAddPercent); file.WriteUInt(m_uMinAdd); file.WriteFloat(m_fCountDown); file.WriteUInt(m_uCurPrice); file.WriteUInt(m_uRoleID); file.WriteString2(m_strRoleName); return true; }
bool CParcloseConfig::Save(CFileStream&file) { file.WriteUInt( m_nParcloseID ); file.WriteUShort((unsigned short)m_strParcloseName.size()); file.WriteString(m_strParcloseName); file.WriteUInt( m_nBeginStoryID ); file.WriteUInt( m_nEndStoryID ); file.WriteUInt( m_nCostCrystal ); file.WriteUInt( m_nSceneID ); file.WriteUInt( m_nMusicID ); file.WriteUShort((unsigned short)m_strMusicName.size()); file.WriteString(m_strMusicName); file.WriteUInt( m_nMusicMode ); file.WriteUInt( m_nMusicLevel ); file.WriteFloat(m_fPosX); file.WriteFloat(m_fPosY); file.WriteUShort( (unsigned short)m_Targets.size() ); for ( size_t i = 0; i < m_Targets.size(); ++i) { file.WriteUInt( m_Targets[i]); } file.WriteUShort( (unsigned short)m_BossIDList.size() ); for ( size_t i = 0; i < m_BossIDList.size(); ++i) { file.WriteUInt( m_BossIDList[i]); } file.WriteUShort( (unsigned short)m_BossScoreList.size() ); for ( size_t i = 0; i < m_BossScoreList.size(); ++i) { file.WriteUInt( m_BossScoreList[i].m_nMinScore ); file.WriteUInt( m_BossScoreList[i].m_nMaxScore ); } file.WriteUInt(m_nDailyQuickFinishNum); return true; }