From 168ad9d6c730e93d76c801da607df84355187a39 Mon Sep 17 00:00:00 2001 From: Micksha Date: Fri, 4 Jan 2019 21:37:34 +0100 Subject: update saedit to saedit2 --- saedit/context.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 saedit/context.h (limited to 'saedit/context.h') 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 -- cgit v1.2.3-70-g09d2