当前位置: 首页>>代码示例>>C++>>正文


C++ CFileStream::WriteFloat方法代码示例

本文整理汇总了C++中CFileStream::WriteFloat方法的典型用法代码示例。如果您正苦于以下问题:C++ CFileStream::WriteFloat方法的具体用法?C++ CFileStream::WriteFloat怎么用?C++ CFileStream::WriteFloat使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CFileStream的用法示例。


在下文中一共展示了CFileStream::WriteFloat方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: SaveToFile

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;
}
开发者ID:yzfrs,项目名称:ddianle_d1,代码行数:15,代码来源:AuctionGoodsInfo.cpp

示例2: Save

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;
}
开发者ID:yzfrs,项目名称:ddianle_d1,代码行数:42,代码来源:MagicLampConfig.cpp


注:本文中的CFileStream::WriteFloat方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。