summaryrefslogtreecommitdiff
path: root/saedit/context.h
blob: 9d41fde88eb08e607066413f683ab636ba8a1ddc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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