





#include "xclipmap.h"

XClipMap::XClipMap()
    : XAsset() {
}

void XClipMap::ParseData(QDataStream *aStream) {
    if (GetPtr() == -1) {
        char name[64];
        aStream->read(name, 64);
        mName = QString::fromUtf8(name);

        aStream->read((char*)&mChecksum, sizeof(int));

        // We would parse arrays here, but we're using placeholders
    }
}

const QString& XClipMap::GetName() const {
    return mName;
}

void XClipMap::SetName(const QString& name) {
    mName = name;
}

int XClipMap::GetChecksum() const {
    return mChecksum;
}

void XClipMap::SetChecksum(int checksum) {
    mChecksum = checksum;
}

void* XClipMap::GetStaticModels() const {
    return mStaticModels;
}

void XClipMap::SetStaticModels(void* staticModels) {
    mStaticModels = staticModels;
}

int XClipMap::GetNumStaticModels() const {
    return mNumStaticModels;
}

void XClipMap::SetNumStaticModels(int count) {
    mNumStaticModels = count;
}

void* XClipMap::GetCollisionAabbTrees() const {
    return mCollisionAabbTrees;
}

void XClipMap::SetCollisionAabbTrees(void* trees) {
    mCollisionAabbTrees = trees;
}

int XClipMap::GetNumCollisionAabbTrees() const {
    return mNumCollisionAabbTrees;
}

void XClipMap::SetNumCollisionAabbTrees(int count) {
    mNumCollisionAabbTrees = count;
}

void* XClipMap::GetMaterials() const {
    return mMaterials;
}

void XClipMap::SetMaterials(void* materials) {
    mMaterials = materials;
}

int XClipMap::GetNumMaterials() const {
    return mNumMaterials;
}

void XClipMap::SetNumMaterials(int count) {
    mNumMaterials = count;
}

void* XClipMap::GetLeafBrushNodes() const {
    return mLeafBrushNodes;
}

void XClipMap::SetLeafBrushNodes(void* nodes) {
    mLeafBrushNodes = nodes;
}

int XClipMap::GetNumLeafBrushNodes() const {
    return mNumLeafBrushNodes;
}

void XClipMap::SetNumLeafBrushNodes(int count) {
    mNumLeafBrushNodes = count;
}

