






#include "xcollisionpartition.h"

XCollisionPartition::XCollisionPartition()
    : XAsset() {
}

void XCollisionPartition::ParseData(QDataStream *aStream) {
    if (GetPtr() == -1) {
        aStream->read((char*)&mTriCount, sizeof(quint8));
        aStream->read((char*)&mBorderCount, sizeof(quint8));
        aStream->read((char*)&mFirstTri, sizeof(int));

        // We would parse borders here, but we're using a placeholder
    }
}

quint8 XCollisionPartition::GetTriCount() const {
    return mTriCount;
}

void XCollisionPartition::SetTriCount(quint8 count) {
    mTriCount = count;
}

quint8 XCollisionPartition::GetBorderCount() const {
    return mBorderCount;
}

void XCollisionPartition::SetBorderCount(quint8 count) {
    mBorderCount = count;
}

int XCollisionPartition::GetFirstTri() const {
    return mFirstTri;
}

void XCollisionPartition::SetFirstTri(int firstTri) {
    mFirstTri = firstTri;
}

void* XCollisionPartition::GetBorders() const {
    return mBorders;
}

void XCollisionPartition::SetBorders(void* borders) {
    mBorders = borders;
}




