Files
rathena/src/char/inter.hpp
Lemongrass3110 e72c7360cf Added int64 support to the script engine (#4522)
Added support for signed 64 bit integer value computation into the script engine.
This is required because newer official features require support for bigger numbers inside the scripts.

This also cleans up a lot of messy code and fixes a few issues like script stack corruptions.

Thanks to @aleos89 and everyone who supported me with this.
2020-01-13 14:44:48 +01:00

48 lines
1.3 KiB
C++

// 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;
int inter_accreg_fromsql(uint32 account_id, uint32 char_id, int fd, int type);
#endif /* INTER_HPP */