123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
- // For more information, see LICENCE in the main folder
- #ifndef INTER_HPP
- #define INTER_HPP
- #include <memory>
- #include <string>
- #include <unordered_map>
- #include "../common/cbasetypes.hpp"
- #include "../common/database.hpp"
- #include "../common/sql.hpp"
- struct s_storage_table;
- class InterServerDatabase : public TypesafeYamlDatabase<uint32, s_storage_table>{
- public:
- InterServerDatabase() : TypesafeYamlDatabase( "INTER_SERVER_DB", 1 ){
- }
- const std::string getDefaultLocation();
- uint64 parseBodyNode( const YAML::Node& node );
- };
- extern InterServerDatabase interServerDb;
- int inter_init_sql(const char *file);
- void inter_final(void);
- int inter_parse_frommap(int fd);
- int inter_mapif_init(int fd);
- int mapif_disconnectplayer(int fd, uint32 account_id, uint32 char_id, int reason);
- void mapif_accinfo_ack(bool success, int map_fd, int u_fd, int u_aid, int account_id, int8 type,
- int group_id, int logincount, int state, const char *email, const char *last_ip, const char *lastlogin,
- const char *birthdate, const char *userid);
- int inter_log(const char *fmt,...);
- extern unsigned int party_share_level;
- extern Sql* sql_handle;
- extern Sql* lsql_handle;
- void inter_savereg(uint32 account_id, uint32 char_id, const char *key, unsigned int index, intptr_t val, bool is_string);
- int inter_accreg_fromsql(uint32 account_id, uint32 char_id, int fd, int type);
- #endif /* INTER_HPP */
|