Exemple #1
0
bool CRubbishDropConfig::Load(CFileStream&file)
{
    file.ReadUInt( m_nRubbishDropID );

    unsigned short nNum = 0;
    file.ReadUShort( nNum );
    for ( unsigned short i = 0; i < nNum; ++i )
    {
        CDropItemInfo info;
        file.ReadUInt(info.m_itemInfo.m_nItemType);
        file.ReadUShort(info.m_itemInfo.m_nItemCount);
        file.ReadInt(info.m_itemInfo.m_nValidTime);
        file.ReadUInt(info.m_nRate);

        m_MaleDrop.push_back( info );
    }

    file.ReadUShort( nNum );
    for ( unsigned short i = 0; i < nNum; ++i )
    {
        CDropItemInfo info;
        file.ReadUInt(info.m_itemInfo.m_nItemType);
        file.ReadUShort(info.m_itemInfo.m_nItemCount);
        file.ReadInt(info.m_itemInfo.m_nValidTime);
        file.ReadUInt(info.m_nRate);

        m_FemaleDrop.push_back( info );
    }

    return true;
}
Exemple #2
0
bool BigMamaExchange::Load(CFileStream & fs)
{
    fs.ReadUChar(m_nSex);
    fs.ReadUInt(m_nTargetItemID);
    fs.ReadInt(m_nTargetMatune);
    fs.ReadUInt(m_nTargetCount);

    fs.ReadUInt(m_nM1ItemID);
    fs.ReadInt(m_nM1Matune);
    fs.ReadUInt(m_nM1Count);

    fs.ReadUInt(m_nM2ItemID);
    fs.ReadInt(m_nM2Matune);
    fs.ReadUInt(m_nM2Count);

    fs.ReadUInt(m_nM3ItemID);
    fs.ReadInt(m_nM3Matune);
    fs.ReadUInt(m_nM3Count);

    fs.ReadUInt(m_nDanceGroupContibute);

    fs.ReadUInt(m_nMoneyCount);
    fs.ReadUInt(m_nBindMCoinCount);
    fs.ReadUInt(m_nMCoinCount);

    return true;
}
Exemple #3
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;
}
Exemple #4
0
bool CMainlineDropConfig::Load(CFileStream&file)
{
    file.ReadUInt( m_nParcloseID );
    file.ReadUInt( m_nMustDropNum );

    unsigned short nNum = 0;
    file.ReadUShort( nNum );
    for ( unsigned short i = 0; i < nNum; ++i )
    {
        CDropItemInfo info;
        file.ReadUInt(info.m_itemInfo.m_nItemType);
        file.ReadUShort(info.m_itemInfo.m_nItemCount);
        file.ReadInt(info.m_itemInfo.m_nValidTime);
        file.ReadUInt(info.m_nRate);

        m_MustMaleDrop.push_back( info );
    }

    file.ReadUShort( nNum );
    for ( unsigned short i = 0; i < nNum; ++i )
    {
        CDropItemInfo info;
        file.ReadUInt(info.m_itemInfo.m_nItemType);
        file.ReadUShort(info.m_itemInfo.m_nItemCount);
        file.ReadInt(info.m_itemInfo.m_nValidTime);
        file.ReadUInt(info.m_nRate);

        m_MustFemaleDrop.push_back( info );
    }

    file.ReadUShort( nNum );
    for ( unsigned short i = 0; i < nNum; ++i )
    {
        CDebrisDropInfo info;
        file.ReadUInt( info.m_nDebrisID );
        file.ReadUInt( info.m_nDebrisCount );
        file.ReadUInt( info.m_nDropRate );

        m_MustDebrisDrop.push_back( info );
    }

    file.ReadUInt( m_nOptionalRate );
    file.ReadUInt( m_nOptionalNum );

    file.ReadUShort( nNum );
    for ( unsigned short i = 0; i < nNum; ++i )
    {
        CDropItemInfo info;
        file.ReadUInt(info.m_itemInfo.m_nItemType);
        file.ReadUShort(info.m_itemInfo.m_nItemCount);
        file.ReadInt(info.m_itemInfo.m_nValidTime);
        file.ReadUInt(info.m_nRate);

        m_OptionalMaleDrop.push_back( info );
    }

    file.ReadUShort( nNum );
    for ( unsigned short i = 0; i < nNum; ++i )
    {
        CDropItemInfo info;
        file.ReadUInt(info.m_itemInfo.m_nItemType);
        file.ReadUShort(info.m_itemInfo.m_nItemCount);
        file.ReadInt(info.m_itemInfo.m_nValidTime);
        file.ReadUInt(info.m_nRate);

        m_OptionalFemaleDrop.push_back( info );
    }

    file.ReadUShort( nNum );
    for ( unsigned short i = 0; i < nNum; ++i )
    {
        CDebrisDropInfo info;
        file.ReadUInt( info.m_nDebrisID );
        file.ReadUInt( info.m_nDebrisCount );
        file.ReadUInt( info.m_nDropRate );

        m_OptionalDebrisDrop.push_back( info );
    }

    return true;
}
Exemple #5
0
bool ExpConfig::Load(CFileStream&file)
{
    file.ReadUShort(m_nLev) ;
    file.ReadInt(m_nExp) ;
    return true ;
}