diff options
author | Ibrahim Hossam <ibrahem.h.basyone@gmail.com> | 2014-04-08 20:40:12 +0200 |
---|---|---|
committer | Ibrahim Hossam <ibrahem.h.basyone@gmail.com> | 2014-04-18 09:58:42 +0200 |
commit | dd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419 (patch) | |
tree | 219025c6ac65f2cf72798a45c926507633f3446f /src/map/itemdb.h | |
parent | 47680829048288376aec23102b9660f36f4463ee (diff) | |
download | hercules-dd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419.tar.gz hercules-dd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419.tar.bz2 hercules-dd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419.tar.xz hercules-dd49dbc3e8d2033c0dddc80f1d5b3c8e6710a419.zip |
Rewritten NSI_UNIQUE_ID system to get rid of the cross-database interreg dependency
- Removes the need for map-server to access the interreg table to store the last used ID.
- Login, char and map databases can now be hosted separately.
- Note: the unique_id structure has changed, and it now contains the generator character ID in its upper 32 bits.
- Now NSI_UNIQUE_ID System is enabled always
Special thanks to Haruna.
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index eebcd5d4d..77fb2e2ec 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -576,8 +576,7 @@ struct itemdb_interface { int (*readdb_libconfig_sub) (config_setting_t *it, int n, const char *source); int (*readdb_libconfig) (const char *filename); int (*readdb_sql) (const char *tablename); - uint64 (*unique_id) (int8 flag, int64 value); - int (*uid_load) (); + uint64 (*unique_id) (struct map_session_data *sd); void (*read) (bool minimal); void (*destroy_item_data) (struct item_data *self, int free_self); int (*final_sub) (DBKey key, DBData *data, va_list ap); |