Make buildable with all those assets.

This commit is contained in:
njohnson 2025-09-07 13:13:27 -04:00
parent 6211ea3c77
commit 1eb340aaea
10 changed files with 53 additions and 58 deletions

View File

@ -6,7 +6,7 @@
class XCardMemory : public XAsset
{
public:
XCardMemory();
explicit XCardMemory();
~XCardMemory();
quint32 GetPlatform() const;

View File

@ -13,6 +13,11 @@ XCLeaf::XCLeaf()
{
}
XCLeaf::~XCLeaf()
{
}
void XCLeaf::ParseData(QDataStream *aStream) {
if (GetPtr() == -1) {
*aStream

View File

@ -9,6 +9,7 @@ class XCLeaf : public XAsset
{
public:
explicit XCLeaf();
~XCLeaf();
void ParseData(QDataStream *aStream) override;

View File

@ -15,3 +15,8 @@ void XCLeafBrushNodeLeaf::ParseData(QDataStream *aStream) {
// We would parse brushes here, but we're using a placeholder
}
}
void XCLeafBrushNodeLeaf::Clear()
{
}

View File

@ -236,26 +236,24 @@ void XClipMap::ParseData(QDataStream *aStream)
}
}
mLeafbrushNodes()
mLeafsurfaces()
mVerts()
mTriIndices()
mTriEdgeIsWalkable()
mBorders()
mPartitions()
mAabbTrees()
mCodels()
mBrushes()
mVisibility()
mMapEnts()
mBoxBrush()
mBoxModel()
mDynEntCount(0)
mDynEntDefList()
mDynEntPoseList()
mDynEntClientList()
mDynEntCollList()
(0)
// mLeafsurfaces()
// mVerts()
// mTriIndices()
// mTriEdgeIsWalkable()
// mBorders()
// mPartitions()
// mAabbTrees()
// mCodels()
// mBrushes()
// mVisibility()
// mMapEnts()
// mBoxBrush()
// mBoxModel()
// mDynEntCount(0)
// mDynEntDefList()
// mDynEntPoseList()
// mDynEntClientList()
// mDynEntCollList()
}
}

View File

@ -3,7 +3,7 @@
XCStaticModel::XCStaticModel()
: XAsset()
, mWritable()
, mModel(new XModel())
, mModel()
, mOrigin()
, mInvScaledAxis()
, mAbsmin()
@ -11,6 +11,11 @@ XCStaticModel::XCStaticModel()
{
}
XCStaticModel::~XCStaticModel()
{
}
void XCStaticModel::ParseData(QDataStream *aStream) {
if (GetPtr() == -1) {
// Parse writable

View File

@ -5,6 +5,11 @@ XDMaterial::XDMaterial()
: XAsset() {
}
XDMaterial::~XDMaterial()
{
}
void XDMaterial::ParseData(QDataStream *aStream) {
if (GetPtr() == -1) {
mMaterial = XString::ParseCustom(aStream);

View File

@ -1,23 +1,21 @@
#include "xgfxstatebits.h"
#include "xgfxsurface.h"
XGfxStateBits::XGfxStateBits()
: XAsset()
, mLoadBits()
XGfxSurface::XGfxSurface()
{
}
XGfxStateBits::~XGfxStateBits()
XGfxSurface::~XGfxSurface()
{
}
void XGfxStateBits::ParseData(QDataStream *aStream)
void XGfxSurface::ParseData(QDataStream *aStream)
{
}
void XGfxStateBits::Clear()
void XGfxSurface::Clear()
{
mLoadBits = QVector<quint32>();
}

View File

@ -1,23 +1 @@
#include "xcardmemory.h"
XCardMemory::XCardMemory()
: XAsset()
, mPlatform(0)
{
}
XCardMemory::~XCardMemory()
{
}
void XCardMemory::ParseData(QDataStream *aStream)
{
*aStream >> mPlatform;
}
void XCardMemory::Clear()
{
mPlatform = 0;
}
#include "xgputexturefetchconstant.h"

View File

@ -4,7 +4,7 @@ XMaterialShaderArgument::XMaterialShaderArgument()
: XAsset()
, mType(0)
, mDest(0)
, mDef()
, mDef(*this)
{
SetName("Material Shader Argument");
}
@ -22,7 +22,7 @@ void XMaterialShaderArgument::ParseData(QDataStream *aStream)
>> mType
>> mDest;
mDef.ParseData(aStream, mType);
mDef.ParseData(aStream);
}
quint16 XMaterialShaderArgument::GetType() const