mapindex.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _MAPINDEX_H_
  4. #define _MAPINDEX_H_
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #include "../config/renewal.h"
  9. #define MAX_MAPINDEX 2000
  10. //Some definitions for the mayor city maps.
  11. #define MAP_PRONTERA "prontera"
  12. #define MAP_GEFFEN "geffen"
  13. #define MAP_MORROC "morocc"
  14. #define MAP_ALBERTA "alberta"
  15. #define MAP_PAYON "payon"
  16. #define MAP_IZLUDE "izlude"
  17. #define MAP_ALDEBARAN "aldebaran"
  18. #define MAP_LUTIE "xmas"
  19. #define MAP_COMODO "comodo"
  20. #define MAP_YUNO "yuno"
  21. #define MAP_AMATSU "amatsu"
  22. #define MAP_GONRYUN "gonryun"
  23. #define MAP_UMBALA "umbala"
  24. #define MAP_NIFLHEIM "niflheim"
  25. #define MAP_LOUYANG "louyang"
  26. #define MAP_JAWAII "jawaii"
  27. #define MAP_AYOTHAYA "ayothaya"
  28. #define MAP_EINBROCH "einbroch"
  29. #define MAP_LIGHTHALZEN "lighthalzen"
  30. #define MAP_EINBECH "einbech"
  31. #define MAP_HUGEL "hugel"
  32. #define MAP_RACHEL "rachel"
  33. #define MAP_VEINS "veins"
  34. #define MAP_JAIL "sec_pri"
  35. #ifdef RENEWAL
  36. #define MAP_NOVICE "iz_int"
  37. #else
  38. #define MAP_NOVICE "new_1-1"
  39. #endif
  40. #define MAP_MOSCOVIA "moscovia"
  41. #define MAP_MIDCAMP "mid_camp"
  42. #define MAP_MANUK "manuk"
  43. #define MAP_SPLENDIDE "splendide"
  44. #define MAP_BRASILIS "brasilis"
  45. #define MAP_DICASTES "dicastes01"
  46. #define MAP_MORA "mora"
  47. #define MAP_DEWATA "dewata"
  48. #define MAP_MALANGDO "malangdo"
  49. #define MAP_MALAYA "malaya"
  50. #define MAP_ECLAGE "eclage"
  51. #define MAP_ECLAGE_IN "ecl_in01"
  52. #define MAP_LASAGNA "lasagna"
  53. const char* mapindex_getmapname(const char* string, char* output);
  54. const char* mapindex_getmapname_ext(const char* string, char* output);
  55. unsigned short mapindex_name2idx(const char* name, const char *func);
  56. #define mapindex_name2id(mapname) mapindex_name2idx((mapname), __FUNCTION__)
  57. const char* mapindex_idx2name(unsigned short id, const char *func);
  58. #define mapindex_id2name(mapindex) mapindex_idx2name((mapindex), __FUNCTION__)
  59. int mapindex_addmap(int index, const char* name);
  60. int mapindex_removemap(int index);
  61. void mapindex_check_mapdefault(const char *mapname);
  62. void mapindex_init(void);
  63. void mapindex_final(void);
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif /* _MAPINDEX_H_ */