Ejemplo n.º 1
0
bool CTargetConfig::Load(CFileStream&file)
{
    file.ReadUInt( m_nTargetID );

    short nCount = 0;
    file.ReadShort(nCount) ;
    file.ReadString(m_strDesc, nCount);

    file.ReadUInt( m_nFlag );

    nCount = 0;
    file.ReadShort(nCount) ;
    file.ReadString(m_strValue, nCount);

    unsigned short nStarValueCount = 0;
    file.ReadUShort(nStarValueCount);
    for (unsigned short i = 0 ; i < nStarValueCount; ++i)
    {
        unsigned short nStarCount = 0;
        unsigned int nStarValue = 0;

        file.ReadUShort(nStarCount);
        file.ReadUInt(nStarValue);

        m_mapStarValue[nStarCount] = nStarValue;
    }

    return true;
}
Ejemplo n.º 2
0
bool CThemeConfig::Load(CFileStream & file)
{
    file.ReadUInt( m_nThemeID );

    short nCount = 0;
    file.ReadShort(nCount) ;
    file.ReadString(m_strName, nCount);

    file.ReadUInt( m_nOpenTime);
    file.ReadUInt( m_nEndTime );

    file.ReadShort(nCount) ;
    file.ReadString(m_strThemeIcon, nCount);

    file.ReadShort(nCount) ;
    file.ReadString(m_strThemeAtlas, nCount);

    file.ReadShort(nCount) ;
    file.ReadString(m_strSceneIcon, nCount);

    file.ReadShort(nCount) ;
    file.ReadString(m_strSceneAtlas, nCount);

    file.ReadUInt(m_nStoryID);

    return true;
}
Ejemplo n.º 3
0
bool CDungeonConfig::Load(CFileStream&file)
{
    file.ReadUInt( m_nDungeonID );

    short nCount = 0;
    file.ReadShort(nCount) ;
    file.ReadString(m_strDungeonName, nCount);

    file.ReadShort(nCount) ;
    file.ReadString(m_strIconName, nCount);

    file.ReadShort(nCount) ;
    file.ReadString(m_strIconAtlas, nCount);

    file.ReadUInt(m_nStoryID);
    unsigned short nParcloseCount = 0;
    file.ReadUShort( nParcloseCount );
    for ( unsigned int i  = 0 ;i <  nParcloseCount; ++i )
    {
        unsigned int nParcloseID = 0;
        file.ReadUInt( nParcloseID );
        m_ParcloseList.push_back( nParcloseID );
    }

    return true;
}
Ejemplo n.º 4
0
bool CParcloseConfig::Load(CFileStream&file)
{
    file.ReadUInt( m_nParcloseID );

    short nCount = 0;
    file.ReadShort(nCount) ;
    file.ReadString(m_strParcloseName, nCount);
    file.ReadUInt(m_nBeginStoryID);
    file.ReadUInt(m_nEndStoryID);
    file.ReadUInt(m_nCostCrystal);
    file.ReadUInt(m_nSceneID);
    file.ReadUInt(m_nMusicID);
    file.ReadShort(nCount) ;
    file.ReadString(m_strMusicName, nCount);
    file.ReadUInt(m_nMusicMode);
    file.ReadUInt(m_nMusicLevel);
    file.ReadFloat(m_fPosX);
    file.ReadFloat(m_fPosY);

    unsigned short nTargetCount = 0;
    file.ReadUShort( nTargetCount );
    for ( unsigned int i  = 0 ;i <  nTargetCount; ++i )
    {
        unsigned int nTargetID = 0;
        file.ReadUInt( nTargetID );
        m_Targets.push_back( nTargetID );
    }

    unsigned short nBossCount = 0;
    file.ReadUShort( nBossCount );
    for ( unsigned int i  = 0 ;i <  nBossCount; ++i )
    {
        unsigned int nBossID = 0;
        file.ReadUInt( nBossID );
        m_BossIDList.push_back( nBossID );
    }

    unsigned short nBossScoreCount = 0;
    file.ReadUShort( nBossScoreCount );
    for ( unsigned int i  = 0 ;i <  nBossScoreCount; ++i )
    {
        CBossScoreRange range;
        file.ReadUInt( range.m_nMinScore );
        file.ReadUInt( range.m_nMaxScore );
        m_BossScoreList.push_back( range );
    }

    file.ReadUInt(m_nDailyQuickFinishNum);
    return true;
}
Ejemplo n.º 5
0
bool CStoryConfig::Load(CFileStream&file)
{
    file.ReadUInt( m_nStoryID );

    unsigned short nNPCListCount = 0;
    file.ReadUShort( nNPCListCount );
    for ( unsigned int i  = 0 ;i <  nNPCListCount; ++i )
    {
        unsigned int nNPCID = 0;
        file.ReadUInt( nNPCID );
        m_NPCList.push_back( nNPCID );
    }

    unsigned short nContentCount = 0;
    file.ReadUShort( nContentCount );
    for ( unsigned int i  = 0 ;i <  nContentCount; ++i )
    {
        CStoryContent content;
        file.ReadUInt( content.m_nNPCID );

        short nCount = 0;
        file.ReadShort(nCount) ;
        file.ReadString(content.m_strContent, nCount);

        m_ContentList.push_back( content );
    }

    return true;
}
Ejemplo n.º 6
0
bool CDebrisConfig::Load(CFileStream&file)
{
    file.ReadUInt( m_nDebrisID );

    short nCount = 0;
    file.ReadShort(nCount) ;
    file.ReadString(m_strName, nCount);

    file.ReadShort(nCount) ;
    file.ReadString(m_strIconName, nCount);

    file.ReadShort(nCount) ;
    file.ReadString(m_strAtlasName, nCount);

    file.ReadUInt( m_nNeedNum );
    file.ReadUInt( m_nCurrencyType );
    file.ReadUInt( m_nCurrencyCount );

    unsigned short nMaleItemCount = 0;
    file.ReadUShort( nMaleItemCount );
    for ( unsigned short i = 0; i < nMaleItemCount; ++i )
    {
        CItem item;
        file.ReadUInt( item.m_nItemType );
        file.ReadUShort( item.m_nItemCount );
        file.ReadInt( item.m_nValidTime );

        m_MaleExchangeItem.push_back( item );
    }

    unsigned short nFemaleItemCount = 0;
    file.ReadUShort( nFemaleItemCount );
    for ( unsigned short i = 0; i < nFemaleItemCount; ++i )
    {
        CItem item;
        file.ReadUInt( item.m_nItemType );
        file.ReadUShort( item.m_nItemCount );
        file.ReadInt( item.m_nValidTime );

        m_FemaleExchangeItem.push_back( item );
    }

    return true;
}