diff options
author | Treeki <treeki@gmail.com> | 2012-09-12 14:57:44 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-12 14:57:44 +0200 |
commit | 3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10 (patch) | |
tree | d10e8cd4e462db28dd3c2f995905c4df57a20fed /lyt/animation.h | |
parent | be8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (diff) | |
download | LayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.tar.gz LayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.zip |
initial un-exporter version
Diffstat (limited to 'lyt/animation.h')
-rw-r--r-- | lyt/animation.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/lyt/animation.h b/lyt/animation.h new file mode 100644 index 0000000..efd626a --- /dev/null +++ b/lyt/animation.h @@ -0,0 +1,68 @@ +#ifndef LYTANIMATION_H +#define LYTANIMATION_H + +#include <QString> +#include <QVector> +#include <QList> +#include <QStringList> + +struct LYTAnimGroupInfo { + QString name; + quint8 unusedFlag; +}; + +struct LYTAnimStepKey { + float frame; + quint16 value; +}; + +struct LYTAnimHermiteKey { + float frame, value, slope; +}; + +struct LYTAnimEntry { + quint8 id, target, curveType; + QVector<LYTAnimHermiteKey> keys; + QVector<LYTAnimStepKey> stepKeys; +}; + +struct LYTAnimPiece { + enum Type { + PaneAnim = 0, + TexSRTAnim, + VisAnim, + VtxClrAnim, + MatClrAnim, + TexPatAnim, + IndTexSRTAnim + }; + + Type type; + QList<LYTAnimEntry> entries; +}; + +struct LYTAnimBlock { + QString name; + bool isMaterial; + QList<LYTAnimPiece> pieces; +}; + +class LYTAnimation { +public: + LYTAnimation(QByteArray data); + ~LYTAnimation(); + + QString name; + quint16 sourceTagNumber; + quint16 sourceStartFrame, sourceEndFrame; + bool recursiveBind; + + QList<LYTAnimGroupInfo> groups; + + quint16 frameSize; + bool loop; + QStringList importedFiles; + QList<LYTAnimBlock> blocks; +}; + +#endif // LYTANIMATION_H |