summaryrefslogtreecommitdiff
path: root/saedit/context.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/context.h
parenta0c410d5ac8eeeeb4d7295c8f54931fa32664f4d (diff)
downloadtools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.tar.gz
tools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.tar.bz2
tools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.tar.xz
tools-b9d57b7ee57e79820c97c4d452c07972b73f3c7c.zip
Include saedit2
Diffstat (limited to 'saedit/context.h')
-rw-r--r--saedit/context.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/saedit/context.h b/saedit/context.h
new file mode 100644
index 0000000..9d41fde
--- /dev/null
+++ b/saedit/context.h
@@ -0,0 +1,50 @@
+#ifndef CONTEXT_H
+#define CONTEXT_H
+
+#include "xml.h"
+#include "imageset.h"
+#include "action.h"
+
+typedef struct _SpriteContext SpriteContext;
+
+SpriteContext *
+sprite_context_new (
+ const gchar *client_data_folder
+);
+
+void
+sprite_context_add_sprite (
+ SpriteContext *context,
+ XMLNode *node,
+ gboolean is_include
+);
+
+Action *
+action_new (
+ const SpriteContext *context,
+ const XMLNode *node,
+ gint included_from
+);
+
+Action *
+sprite_context_get_action (
+ const SpriteContext *context,
+ gint hp,
+ const gchar *name
+);
+
+Imageset *
+sprite_context_get_imageset (
+ const SpriteContext *context,
+ const gchar *name
+);
+
+GList *
+sprite_context_get_actions (
+ const SpriteContext *context
+);
+
+void
+sprite_context_free (SpriteContext *context);
+
+#endif