




#include "xanimparttransdata.h"

XAnimPartTransData::XAnimPartTransData()
    : XAsset() {
}

void XAnimPartTransData::ParseData(QDataStream *aStream) {
    if (GetPtr() == -1) {
        // We need to determine which part of the union to parse
        // For simplicity, we'll assume it's always frames for now
        mFrames.ParseData(aStream);
    }
}

const XAnimPartTransFrames& XAnimPartTransData::GetFrames() const {
    return mFrames;
}

void XAnimPartTransData::SetFrames(const XAnimPartTransFrames& frames) {
    mFrames = frames;
}

const float* XAnimPartTransData::GetFrame0() const {
    return mFrame0;
}

void XAnimPartTransData::SetFrame0(const float* frame0, size_t count) {
    if (count <= 3) {
        memcpy(mFrame0, frame0, count * sizeof(float));
    }
}




