Mercurial > molko
comparison libmlk-adventure/adventure/assets.h @ 292:08ab73b32832
misc: add extern "C" {} blocks for C++ friends
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 05 Mar 2021 10:08:09 +0100 |
parents | 63d9fb56c609 |
children | d01e83210ca2 |
comparison
equal
deleted
inserted
replaced
291:5d8700074dd7 | 292:08ab73b32832 |
---|---|
17 */ | 17 */ |
18 | 18 |
19 #ifndef MOLKO_ADVENTURE_ASSETS_H | 19 #ifndef MOLKO_ADVENTURE_ASSETS_H |
20 #define MOLKO_ADVENTURE_ASSETS_H | 20 #define MOLKO_ADVENTURE_ASSETS_H |
21 | 21 |
22 #include <core/core.h> | |
22 #include <core/sound.h> | 23 #include <core/sound.h> |
23 #include <core/sprite.h> | 24 #include <core/sprite.h> |
24 | 25 |
25 enum assets_sprite { | 26 enum assets_sprite { |
26 /* UI elements. */ | 27 /* UI elements. */ |
48 ASSETS_SOUND_ITEM_POTION, | 49 ASSETS_SOUND_ITEM_POTION, |
49 | 50 |
50 ASSETS_SOUND_NUM | 51 ASSETS_SOUND_NUM |
51 }; | 52 }; |
52 | 53 |
54 CORE_BEGIN_DECLS | |
55 | |
53 extern struct sprite assets_sprites[ASSETS_SPRITE_NUM]; | 56 extern struct sprite assets_sprites[ASSETS_SPRITE_NUM]; |
54 extern struct sound assets_sounds[ASSETS_SOUND_NUM]; | 57 extern struct sound assets_sounds[ASSETS_SOUND_NUM]; |
55 | 58 |
56 void | 59 void |
57 assets_init(void); | 60 assets_init(void); |
58 | 61 |
59 void | 62 void |
60 assets_finish(void); | 63 assets_finish(void); |
61 | 64 |
65 CORE_END_DECLS | |
66 | |
62 #endif /* !MOLKO_ADVENTURE_ASSETS_H */ | 67 #endif /* !MOLKO_ADVENTURE_ASSETS_H */ |