summaryrefslogtreecommitdiff
path: root/src/char_sql/int_homun.h
blob: 8ff30f9764a3099968dac027f162896f3b4dd017 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder

#ifndef _INT_HOMUN_SQL_H_
#define _INT_HOMUN_SQL_H_

struct s_homunculus;
struct s_mercenary;

int inter_homunculus_sql_init(void);
void inter_homunculus_sql_final(void);
int inter_homunculus_parse_frommap(int fd);

bool mapif_homunculus_save(struct s_homunculus* hd);
bool mapif_homunculus_load(int homun_id, struct s_homunculus* hd);
bool mapif_homunculus_delete(int homun_id);
bool mapif_homunculus_rename(char *name);

bool mapif_mercenary_delete(int merc_id);

#endif /* _INT_HOMUN_SQL_H_ */