summaryrefslogblamecommitdiff
path: root/src/map/mapreg.h
blob: e83f9e0533b98329afa8b9e9cb824835e069e57a (plain) (tree)
1
2
3
4
5
6
7


                                                           



                  








                          


                         
                                                        

                            
                                 
                                     
                                                

                       
// Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// See the LICENSE file
// Portions Copyright (c) Athena Dev Teams

#ifndef _MAPREG_H_
#define _MAPREG_H_

struct mapreg_save {
	int uid;
	union {
		int i;
		char *str;
	} u;
	bool save;
};

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_ */