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