comparison libmlk-rpg/mlk/rpg/character.h @ 517:6e8f6640e05b

misc: use extern C manually
author David Demelier <markand@malikania.fr>
date Sat, 04 Mar 2023 14:23:59 +0100
parents 91ce23a36143
children
comparison
equal deleted inserted replaced
516:6af0524913b3 517:6e8f6640e05b
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */ 17 */
18 18
19 #ifndef MLK_RPG_CHARACTER_H 19 #ifndef MLK_RPG_CHARACTER_H
20 #define MLK_RPG_CHARACTER_H 20 #define MLK_RPG_CHARACTER_H
21
22 #include <mlk/core/core.h>
23 21
24 #define CHARACTER_SPELL_MAX (64) 22 #define CHARACTER_SPELL_MAX (64)
25 23
26 struct battle; 24 struct battle;
27 struct save; 25 struct save;
82 80
83 void (*reset)(struct character *owner); 81 void (*reset)(struct character *owner);
84 void (*exec)(struct character *owner, struct battle *bt); 82 void (*exec)(struct character *owner, struct battle *bt);
85 }; 83 };
86 84
87 MLK_CORE_BEGIN_DECLS 85 #if defined(__cplusplus)
86 extern "C" {
87 #endif
88 88
89 int 89 int
90 character_ok(const struct character *ch); 90 character_ok(const struct character *ch);
91 91
92 const char * 92 const char *
102 character_save(const struct character *ch, struct save *s); 102 character_save(const struct character *ch, struct save *s);
103 103
104 int 104 int
105 character_load(struct character *, struct save *); 105 character_load(struct character *, struct save *);
106 106
107 MLK_CORE_END_DECLS 107 #if defined(__cplusplus)
108 }
109 #endif
108 110
109 #endif /* !MLK_RPG_CHARACTER_H */ 111 #endif /* !MLK_RPG_CHARACTER_H */