本文整理汇总了C++中CFileStream::ReadChar方法的典型用法代码示例。如果您正苦于以下问题:C++ CFileStream::ReadChar方法的具体用法?C++ CFileStream::ReadChar怎么用?C++ CFileStream::ReadChar使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFileStream
的用法示例。
在下文中一共展示了CFileStream::ReadChar方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Load
bool CBossConfig::Load(CFileStream&file)
{
char cBossId = 0;
file.ReadChar( cBossId);
m_nBossID = cBossId;
unsigned short nNameLength = 0;
file.ReadUShort(nNameLength) ;
file.ReadString(m_strName, nNameLength) ;
file.ReadChar( m_cSex );
unsigned int cColor = 0;
file.ReadUInt( cColor );
m_cSKinColor = cColor;
itemtype_t nItemType = 0;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Hair ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Face ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Body ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Glove ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Leg ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Cap ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_FacialContent ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Shoulder ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Wing ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_LeftHand ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_RightHand ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Wrist ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Hip ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Sock ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_Feet ] = nItemType;
file.ReadUInt( nItemType );
m_Equips[ eItemClothType_All ] = nItemType;
return true;
}