summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-18 00:19:16 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-18 03:53:10 +0300
commit813932b515f3d8924baae4c93f275be3f7bb68e9 (patch)
treee5884891bf32ca2895df8b8b8226ed2364879dea /src/map/npc.h
parentbafee80261b8d84d489bbeef41de3dd1d408e64b (diff)
downloadhercules-813932b515f3d8924baae4c93f275be3f7bb68e9.tar.gz
hercules-813932b515f3d8924baae4c93f275be3f7bb68e9.tar.bz2
hercules-813932b515f3d8924baae4c93f275be3f7bb68e9.tar.xz
hercules-813932b515f3d8924baae4c93f275be3f7bb68e9.zip
Move npc static variables into npc interface.
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index 8ee59e410..24ea9ea59 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -188,6 +188,16 @@ struct npc_interface {
/* npc trader global data, for ease of transition between the script, cleared on every usage */
bool trader_ok;
int trader_funds[2];
+ int npc_id;
+ int npc_warp;
+ int npc_shop;
+ int npc_script;
+ int npc_mob;
+ int npc_delay_mob;
+ int npc_cache_mob;
+ const char *npc_last_path;
+ const char *npc_last_ref;
+ struct npc_path_data *npc_last_npd;
/* */
int (*init) (bool minimal);
int (*final) (void);