diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-15 11:14:45 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-15 11:14:45 +0000 |
commit | 0d67a194537e8e69426c8f55ced61b0a8701e90a (patch) | |
tree | a0dffc2e7af02443e1189e6b4e724414625eb43b /src/map/mapreg.h | |
parent | f16b914ef2bf3f75e1ee42f2277927660acd0116 (diff) | |
download | hercules-0d67a194537e8e69426c8f55ced61b0a8701e90a.tar.gz hercules-0d67a194537e8e69426c8f55ced61b0a8701e90a.tar.bz2 hercules-0d67a194537e8e69426c8f55ced61b0a8701e90a.tar.xz hercules-0d67a194537e8e69426c8f55ced61b0a8701e90a.zip |
Split off mapreg code from script.c
* new mapserver files, mapreg.h, mapreg_txt.c, mapreg_sql.c
* removed MAPREGSQL from project files / makefiles
* mapreg storage engine is now fully dependent on the server type
* added config settings mapreg_txt and mapreg_db to inter config
* added get_str() function to complement add_str()
* fixed txt mapreg code allowing too long variable names
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13081 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mapreg.h')
-rw-r--r-- | src/map/mapreg.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/map/mapreg.h b/src/map/mapreg.h new file mode 100644 index 000000000..d5fadafc5 --- /dev/null +++ b/src/map/mapreg.h @@ -0,0 +1,17 @@ +// Copyright (c) Athena Dev Teams - Licensed under GNU GPL +// For more information, see LICENCE in the main folder + +#ifndef _MAPREG_H_ +#define _MAPREG_H_ + +void mapreg_reload(void); +void mapreg_final(void); +void mapreg_init(void); +bool mapreg_config_read(const char* w1, const char* w2); + +int mapreg_readreg(int uid); +char* mapreg_readregstr(int uid); +bool mapreg_setreg(int uid, int val); +bool mapreg_setregstr(int uid, const char* str); + +#endif /* _MAPREG_H_ */ |