





#ifndef XCOLLISIONPARTITION_H
#define XCOLLISIONPARTITION_H

#include "xasset.h"

class CollisionBorder; // Forward declaration

class XCollisionPartition : public XAsset
{
public:
    explicit XCollisionPartition();

    void ParseData(QDataStream *aStream) override;

    quint8 GetTriCount() const;
    void SetTriCount(quint8 count);

    quint8 GetBorderCount() const;
    void SetBorderCount(quint8 count);

    int GetFirstTri() const;
    void SetFirstTri(int firstTri);

    // Note: In a real implementation, we would have proper handling for borders pointer
    // For now, we'll just use a placeholder
    void* GetBorders() const;
    void SetBorders(void* borders);

private:
    quint8 mTriCount = 0;
    quint8 mBorderCount = 0;
    int mFirstTri = 0;
    void* mBorders = nullptr; // Placeholder for CollisionBorder*
};

#endif // XCOLLISIONPARTITION_H





