Update XGfxLightDef parsing logic
This commit is contained in:
parent
e416d47df4
commit
e06fe64311
@ -2,8 +2,8 @@
|
||||
|
||||
XGfxLightDef::XGfxLightDef()
|
||||
: XAsset()
|
||||
, mName(new XString())
|
||||
, mAttenuation(new XGfxLightImage())
|
||||
, mName()
|
||||
, mAttenuation()
|
||||
, mLmapLookupStart(0)
|
||||
{
|
||||
SetType(ASSET_TYPE_LIGHT_DEF);
|
||||
@ -12,24 +12,22 @@ XGfxLightDef::XGfxLightDef()
|
||||
|
||||
XGfxLightDef::~XGfxLightDef()
|
||||
{
|
||||
delete mName;
|
||||
delete mAttenuation;
|
||||
|
||||
}
|
||||
|
||||
void XGfxLightDef::Clear()
|
||||
{
|
||||
mName->Clear();
|
||||
mAttenuation->Clear();
|
||||
mName.Clear();
|
||||
mAttenuation.Clear();
|
||||
mLmapLookupStart = 0;
|
||||
}
|
||||
|
||||
void XGfxLightDef::ParseData(QDataStream *aStream)
|
||||
{
|
||||
mName->ParsePtr(aStream, false);
|
||||
mAttenuation->ParseData(aStream);
|
||||
mName.ParsePtr(aStream, false);
|
||||
mAttenuation.ParseData(aStream);
|
||||
*aStream >> mLmapLookupStart;
|
||||
|
||||
mName->ParseData(aStream);
|
||||
|
||||
//mAttenuation->
|
||||
mName.ParseData(aStream);
|
||||
mAttenuation.ParseData(aStream);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user