Refactor: Parse data for XBoneInfo
This commit is contained in:
parent
39a5a75333
commit
3bf4e8b0e5
@ -6,7 +6,7 @@ XBoneInfo::XBoneInfo()
|
|||||||
, mOffset()
|
, mOffset()
|
||||||
, mRadiusSquared(0)
|
, mRadiusSquared(0)
|
||||||
{
|
{
|
||||||
|
SetName("Bone Info");
|
||||||
}
|
}
|
||||||
|
|
||||||
XBoneInfo::~XBoneInfo()
|
XBoneInfo::~XBoneInfo()
|
||||||
@ -14,21 +14,29 @@ XBoneInfo::~XBoneInfo()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void XBoneInfo::ParseData(QDataStream *aStream)
|
void XBoneInfo::ParseData(XDataStream *aStream)
|
||||||
{
|
{
|
||||||
if (GetPtr() == -1)
|
if (GetPtr() == -1)
|
||||||
{
|
{
|
||||||
*aStream
|
for (int i = 0; i < 2; i++)
|
||||||
>> mBounds[0][0]
|
{
|
||||||
>> mBounds[0][1]
|
for (int j = 0; j < 3; j++)
|
||||||
>> mBounds[0][2]
|
{
|
||||||
>> mBounds[1][0]
|
mBounds[i][j] = aStream->ParseSingle(QString("%1 bound (%2, %3)")
|
||||||
>> mBounds[1][1]
|
.arg(GetName())
|
||||||
>> mBounds[1][2]
|
.arg(i)
|
||||||
>> mOffset[0]
|
.arg(j));
|
||||||
>> mOffset[1]
|
}
|
||||||
>> mOffset[2]
|
}
|
||||||
>> mRadiusSquared;
|
|
||||||
|
for (int i = 0; i < 3; i++)
|
||||||
|
{
|
||||||
|
mOffset[i] = aStream->ParseSingle(QString("%1 offset %2")
|
||||||
|
.arg(GetName())
|
||||||
|
.arg(i));
|
||||||
|
}
|
||||||
|
|
||||||
|
mRadiusSquared = aStream->ParseSingle(QString("%1 radius squared").arg(GetName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user