
Rewrote fame ranking lists- changed MAP_NAME_LENGTH to 12, now there's MAP_NAME_LENGTH_EXT at 16 for uses where there is / may be the .gat extension, code adjusted accordingly - moved map_normalize_name to mapindex_normalize_name so that everything handling map names uses the same extension-removing function - greatly enhanced the map cache generator, complete documentation on the tool and the map cache format can be found in doc/ - the map cache format changed a bit as a consequence, but of course a new valid one is included (contains latest Nameless Island maps) - fixed a duplicate entry in map index git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10167 54d463be-8e91-2dee-dedb-b68131a5f0ec
48 lines
1.6 KiB
C
48 lines
1.6 KiB
C
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
|
|
// For more information, see LICENCE in the main folder
|
|
|
|
#ifndef _MAPINDEX_H_
|
|
#define _MAPINDEX_H_
|
|
|
|
//File in charge of assigning a numberic ID to each map in existance for space saving when passing map info between servers.
|
|
extern char mapindex_cfgfile[80];
|
|
|
|
//whether to enable auto-adding of maps during run. Not so secure as the map indexes will vary!
|
|
// disabled - since mapindex.h wasn't included in mapindex.c it never got enabled anyway... [FlavioJS]
|
|
//#define MAPINDEX_AUTOADD
|
|
|
|
//Some definitions for the mayor city maps.
|
|
#define MAP_PRONTERA "prontera"
|
|
#define MAP_GEFFEN "geffen"
|
|
#define MAP_MORROC "morocc"
|
|
#define MAP_ALBERTA "alberta"
|
|
#define MAP_PAYON "payon"
|
|
#define MAP_IZLUDE "izlude"
|
|
#define MAP_ALDEBARAN "aldebaran"
|
|
#define MAP_LUTIE "xmas"
|
|
#define MAP_COMODO "comodo"
|
|
#define MAP_YUNO "yuno"
|
|
#define MAP_AMATSU "amatsu"
|
|
#define MAP_GONRYUN "gonryun"
|
|
#define MAP_UMBALA "umbala"
|
|
#define MAP_NIFLHEIM "niflheim"
|
|
#define MAP_LOUYANG "louyang"
|
|
#define MAP_JAWAII "jawaii"
|
|
#define MAP_AYOTHAYA "ayothaya"
|
|
#define MAP_EINBROCH "einbroch"
|
|
#define MAP_LIGHTHALZEN "lighthalzen"
|
|
#define MAP_EINBECH "einbech"
|
|
#define MAP_HUGEL "hugel"
|
|
#define MAP_RACHEL "rachel"
|
|
#define MAP_VEINS "veins"
|
|
#define MAP_JAIL "sec_pri"
|
|
#define MAP_NOVICE "new_zone01"
|
|
char *mapindex_normalize_name(char *mapname);
|
|
int mapindex_addmap(int index, const char *name);
|
|
unsigned short mapindex_name2id(const char*);
|
|
const char* mapindex_id2name(unsigned short);
|
|
void mapindex_init(void);
|
|
void mapindex_final(void);
|
|
|
|
#endif /* _MAPINDEX_H_ */
|