本文整理汇总了C++中CDataReader::readTokenVector3D方法的典型用法代码示例。如果您正苦于以下问题:C++ CDataReader::readTokenVector3D方法的具体用法?C++ CDataReader::readTokenVector3D怎么用?C++ CDataReader::readTokenVector3D使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDataReader
的用法示例。
在下文中一共展示了CDataReader::readTokenVector3D方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void CIPLEntry_PATH_Node::unserialize(void)
{
CDataReader *pDataReader = CDataReader::getInstance();
if (getLatestPathGroup() == nullptr)
{
// path node found before path group
throw EXCEPTION_INVALID_DATA_ORDER;
}
switch (pDataReader->getLineTokens().size())
{
case 12:
CIPLEntry_PATH::unserialize();
setFormatType(0);
setFormatGames(GAME_FLAG_GTA_VC);
m_uiNodeType = pDataReader->readTokenUint32();
m_uiNextNode = pDataReader->readTokenUint32();
m_uiIsCrossRoad = pDataReader->readTokenUint32();
m_vecPosition = pDataReader->readTokenVector3D() / 16.0f;
m_fMedian = pDataReader->readTokenFloat32();
m_uiLeftLaneCount = pDataReader->readTokenUint32();
m_uiRightLaneCount = pDataReader->readTokenUint32();
m_uiSpeedLimit = pDataReader->readTokenUint32();
m_uiFlags = pDataReader->readTokenUint32();
m_fSpawnRate = pDataReader->readTokenFloat32();
break;
}
getLatestPathGroup()->addEntry(this);
}
示例2: switch
void CIPLEntry_JUMP::unserialize(void)
{
CDataReader *pDataReader = CDataReader::getInstance();
switch (pDataReader->getLineTokens().size())
{
case 16:
setFormatType(0);
setFormatGames(GAME_FLAG_GTA_SA);
m_vecStartLowerPosition = pDataReader->readTokenVector3D();
m_vecStartUpperPosition = pDataReader->readTokenVector3D();
m_vecTargetLowerPosition = pDataReader->readTokenVector3D();
m_vecTargetUpperPosition = pDataReader->readTokenVector3D();
m_vecCameraPosition = pDataReader->readTokenVector3D();
m_uiReward = pDataReader->readTokenUint32();
break;
default:
throw EXCEPTION_UNKNOWN_FORMAT_TYPE;
}
}
示例3:
void CIPLEntry_PICK::unserialize(void)
{
CDataReader *pDataReader = CDataReader::getInstance();
switch (pDataReader->getLineTokens().size())
{
case 4:
setFormatType(0);
setFormatGames(GAME_FLAG_GTA_SA);
m_uiWeaponId = pDataReader->readTokenUint32();
m_vecPosition = pDataReader->readTokenVector3D();
break;
default:
throw EXCEPTION_UNKNOWN_FORMAT_TYPE;
}
}
示例4:
void CIPLEntry_TCYC::unserialize(void)
{
CDataReader *pDataReader = CDataReader::getInstance();
switch (pDataReader->getLineTokens().size())
{
case 11:
setFormatType(0);
setFormatGames(GAME_FLAG_GTA_SA);
m_vecPositionLower = pDataReader->readTokenVector3D();
m_vecPositionUpper = pDataReader->readTokenVector3D();
m_uiUnknown1 = pDataReader->readTokenUint32();
m_uiWeatherId = pDataReader->readTokenUint32();
m_iBrightness = pDataReader->readTokenInt32();
m_uiTime = pDataReader->readTokenUint32();
m_uiDrawDistance = pDataReader->readTokenUint32();
break;
default:
throw EXCEPTION_UNKNOWN_FORMAT_TYPE;
}
}