本文整理汇总了C++中LLDataPacker::unpackFixed方法的典型用法代码示例。如果您正苦于以下问题:C++ LLDataPacker::unpackFixed方法的具体用法?C++ LLDataPacker::unpackFixed怎么用?C++ LLDataPacker::unpackFixed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLDataPacker
的用法示例。
在下文中一共展示了LLDataPacker::unpackFixed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: unpack
BOOL LLPartSysData::unpack(LLDataPacker &dp)
{
dp.unpackU32(mCRC, "pscrc");
dp.unpackU32(mFlags, "psflags");
dp.unpackU8(mPattern, "pspattern");
dp.unpackFixed(mMaxAge, "psmaxage", FALSE, 8, 8);
dp.unpackFixed(mStartAge, "psstartage", FALSE, 8, 8);
dp.unpackFixed(mInnerAngle, "psinnerangle", FALSE, 3, 5);
dp.unpackFixed(mOuterAngle, "psouterangle", FALSE, 3, 5);
dp.unpackFixed(mBurstRate, "psburstrate", FALSE, 8, 8);
mBurstRate = llmax(0.01f, mBurstRate);
dp.unpackFixed(mBurstRadius, "psburstradius", FALSE, 8, 8);
dp.unpackFixed(mBurstSpeedMin, "psburstspeedmin", FALSE, 8, 8);
dp.unpackFixed(mBurstSpeedMax, "psburstspeedmax", FALSE, 8, 8);
dp.unpackU8(mBurstPartCount, "psburstpartcount");
dp.unpackFixed(mAngularVelocity.mV[0], "psangvelx", TRUE, 8, 7);
dp.unpackFixed(mAngularVelocity.mV[1], "psangvely", TRUE, 8, 7);
dp.unpackFixed(mAngularVelocity.mV[2], "psangvelz", TRUE, 8, 7);
dp.unpackFixed(mPartAccel.mV[0], "psaccelx", TRUE, 8, 7);
dp.unpackFixed(mPartAccel.mV[1], "psaccely", TRUE, 8, 7);
dp.unpackFixed(mPartAccel.mV[2], "psaccelz", TRUE, 8, 7);
dp.unpackUUID(mPartImageID, "psuuid");
dp.unpackUUID(mTargetUUID, "pstargetuuid");
mPartData.unpack(dp);
return TRUE;
}