summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-14 08:50:45 -0300
committershennetsind <ind@henn.et>2013-06-14 08:50:45 -0300
commit5321d32c8d670fbfbfe02f7df5066170aa20ee2e (patch)
treeb87f8211e9ea2d486a8b172b3a5b97971e3643dc /src/map/itemdb.h
parente5e28d108ebc656fcb8a39775b84e725ca4abbb9 (diff)
downloadhercules-5321d32c8d670fbfbfe02f7df5066170aa20ee2e.tar.gz
hercules-5321d32c8d670fbfbfe02f7df5066170aa20ee2e.tar.bz2
hercules-5321d32c8d670fbfbfe02f7df5066170aa20ee2e.tar.xz
hercules-5321d32c8d670fbfbfe02f7df5066170aa20ee2e.zip
Updating .sql item db files
Also Introducing the official DB2SQL plugin to quickly update the .sql db files. http://hercules.ws/board/topic/1105-hercules-wpe-free-june-14th-patch Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index ea478d135..44b455d80 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -1,5 +1,6 @@
-// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
-// For more information, see LICENCE in the main folder
+// Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// See the LICENSE file
+// Portions Copyright (c) Athena Dev Teams
#ifndef _ITEMDB_H_
#define _ITEMDB_H_
@@ -239,4 +240,16 @@ void itemdb_reload(void);
void do_final_itemdb(void);
int do_init_itemdb(void);
+/* incomplete */
+struct itemdb_interface {
+ void (*reload) (void);
+ /* */
+ int (*parse_dbrow) (char** str, const char* source, int line, int scriptopt);
+ struct item_data* (*exists) (int nameid);
+} itemdb_s;
+
+struct itemdb_interface *itemdb;
+
+void itemdb_defaults(void);
+
#endif /* _ITEMDB_H_ */