summaryrefslogtreecommitdiff
path: root/saedit/animation.h
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-02-22 07:09:31 -0300
committerJesusaves <cpntb1@ymail.com>2022-02-22 07:09:31 -0300
commitb9d57b7ee57e79820c97c4d452c07972b73f3c7c (patch)
tree06a98c67240ee509b19d26ee54d8515f06f37230 /saedit/animation.h
parenta0c410d5ac8eeeeb4d7295c8f54931fa32664f4d (diff)
downloadtools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.tar.gz
tools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.tar.bz2
tools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.tar.xz
tools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.zip
Include saedit2
Diffstat (limited to 'saedit/animation.h')
-rw-r--r--saedit/animation.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/saedit/animation.h b/saedit/animation.h
new file mode 100644
index 0000000..6c4d05f
--- /dev/null
+++ b/saedit/animation.h
@@ -0,0 +1,59 @@
+#ifndef ANIMATION_H
+#define ANIMATION_H
+
+#include <gdk/gdk.h>
+#include <glib.h>
+#include "common.h"
+#include "xml.h"
+#include "imageset.h"
+
+typedef struct {
+ gchar *direction;
+ GList *elements;
+} Animation;
+
+Animation *
+animation_new (
+ const Imageset *imageset,
+ const XMLNode *node,
+ gint included_from
+);
+
+void
+animation_free (Animation *animation);
+
+gint
+animation_compare_by_direction (
+ const Animation *first,
+ const Animation *second
+);
+
+gboolean
+animation_direction_equals (
+ const Animation *animation,
+ const gchar *direction
+);
+
+enum {
+ ELEMENT_END = 0,
+ ELEMENT_FRAME,
+ ELEMENT_JUMP,
+ ELEMENT_GOTO,
+ ELEMENT_PAUSE,
+ ELEMENT_LABEL,
+ ELEMENT_COUNT
+};
+
+typedef struct {
+ gint type;
+ gint delay;
+ gint offsetX, offsetY;
+ gint rand;
+ gchar *str;
+ gint line_no;
+ GdkPixbuf *sprite;
+} AnimElement;
+
+AnimElement *animation_element_new (void);
+
+#endif