XPlor/libs/xassets/xgfxlightdef.cpp
2025-09-05 18:35:17 -04:00

36 lines
632 B
C++

#include "xgfxlightdef.h"
XGfxLightDef::XGfxLightDef()
: XAsset()
, mName(new XString())
, mAttenuation(new XGfxLightImage())
, mLmapLookupStart(0)
{
SetType(ASSET_TYPE_LIGHT_DEF);
SetName("Light Def");
}
XGfxLightDef::~XGfxLightDef()
{
delete mName;
delete mAttenuation;
}
void XGfxLightDef::Clear()
{
mName->Clear();
mAttenuation->Clear();
mLmapLookupStart = 0;
}
void XGfxLightDef::ParseData(QDataStream *aStream)
{
mName->ParsePtr(aStream, false);
mAttenuation->ParseData(aStream);
*aStream >> mLmapLookupStart;
mName->ParseData(aStream);
//mAttenuation->
}