summaryrefslogtreecommitdiff
path: root/lyt/animation.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
committerTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
commit3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10 (patch)
treed10e8cd4e462db28dd3c2f995905c4df57a20fed /lyt/animation.h
parentbe8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (diff)
downloadLayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.tar.gz
LayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.zip
initial un-exporter version
Diffstat (limited to 'lyt/animation.h')
-rw-r--r--lyt/animation.h68
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