1 | // Copyright (c) Athena Dev Teams - Licensed under GNU GPL |
---|
2 | // For more information, see LICENCE in the main folder |
---|
3 | |
---|
4 | #ifndef _MAPINDEX_H_ |
---|
5 | #define _MAPINDEX_H_ |
---|
6 | |
---|
7 | //File in charge of assigning a numberic ID to each map in existance for space saving when passing map info between servers. |
---|
8 | extern char mapindex_cfgfile[80]; |
---|
9 | |
---|
10 | //whether to enable auto-adding of maps during run. Not so secure as the map indexes will vary! |
---|
11 | //#define MAPINDEX_AUTOADD |
---|
12 | |
---|
13 | //Some definitions for the mayor city maps. |
---|
14 | #define MAP_PRONTERA "prontera" |
---|
15 | #define MAP_GEFFEN "geffen" |
---|
16 | #define MAP_MORROC "morocc" |
---|
17 | #define MAP_ALBERTA "alberta" |
---|
18 | #define MAP_PAYON "payon" |
---|
19 | #define MAP_IZLUDE "izlude" |
---|
20 | #define MAP_ALDEBARAN "aldebaran" |
---|
21 | #define MAP_LUTIE "xmas" |
---|
22 | #define MAP_COMODO "comodo" |
---|
23 | #define MAP_YUNO "yuno" |
---|
24 | #define MAP_AMATSU "amatsu" |
---|
25 | #define MAP_GONRYUN "gonryun" |
---|
26 | #define MAP_UMBALA "umbala" |
---|
27 | #define MAP_NIFLHEIM "niflheim" |
---|
28 | #define MAP_LOUYANG "louyang" |
---|
29 | #define MAP_JAWAII "jawaii" |
---|
30 | #define MAP_AYOTHAYA "ayothaya" |
---|
31 | #define MAP_EINBROCH "einbroch" |
---|
32 | #define MAP_LIGHTHALZEN "lighthalzen" |
---|
33 | #define MAP_EINBECH "einbech" |
---|
34 | #define MAP_HUGEL "hugel" |
---|
35 | #define MAP_RACHEL "rachel" |
---|
36 | #define MAP_VEINS "veins" |
---|
37 | #define MAP_JAIL "sec_pri" |
---|
38 | #define MAP_NOVICE "new_1-1" |
---|
39 | #define MAP_MOSCOVIA "moscovia" |
---|
40 | |
---|
41 | const char* mapindex_getmapname(const char* string, char* output); |
---|
42 | const char* mapindex_getmapname_ext(const char* string, char* output); |
---|
43 | unsigned short mapindex_name2id(const char*); |
---|
44 | const char* mapindex_id2name(unsigned short); |
---|
45 | void mapindex_init(void); |
---|
46 | void mapindex_final(void); |
---|
47 | |
---|
48 | #endif /* _MAPINDEX_H_ */ |
---|