47 lines
779 B
C++
47 lines
779 B
C++
// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
|
|
// For more information, see LICENCE in the main folder
|
|
|
|
#ifndef NAVI_H
|
|
#define NAVI_H
|
|
|
|
#include <config/core.hpp>
|
|
|
|
#ifdef MAP_GENERATOR
|
|
struct navi_pos {
|
|
int m;
|
|
int x;
|
|
int y;
|
|
};
|
|
|
|
struct npc_data;
|
|
|
|
struct navi_npc {
|
|
struct npc_data * npc;
|
|
int id;
|
|
struct navi_pos pos;
|
|
|
|
};
|
|
|
|
struct navi_link {
|
|
struct npc_data * npc;
|
|
int id;
|
|
struct navi_pos pos;
|
|
struct navi_pos warp_dest; // only set for warps
|
|
bool hidden; // hidden by script
|
|
std::string name; // custom name
|
|
};
|
|
|
|
|
|
// We need a bigger max path length than stock walkpath
|
|
#define MAX_WALKPATH_NAVI 1024
|
|
|
|
struct navi_walkpath_data {
|
|
uint8 path_len, path_pos;
|
|
uint8 path[MAX_WALKPATH_NAVI];
|
|
};
|
|
|
|
|
|
void navi_create_lists();
|
|
#endif // ifdef MAP_GENERATOR
|
|
#endif
|