Reworked BotDatabase into a functional add-on for ZoneDatabase

This commit is contained in:
Uleat
2019-06-24 18:13:25 -04:00
parent 2e9cf7dbd7
commit ee49ad3ce9
11 changed files with 211 additions and 255 deletions
+3 -13
View File
@@ -22,17 +22,15 @@
#ifdef BOTS
#include "../common/dbcore.h"
#include "../common/eq_packet_structs.h"
#include <list>
#include <map>
#include <vector>
class Bot;
struct BotsAvailableList;
class Client;
struct BotsAvailableList;
struct InspectMessage_Struct;
namespace EQEmu
{
@@ -41,15 +39,9 @@ namespace EQEmu
}
class BotDatabase : public DBcore
class BotDatabase
{
public:
BotDatabase();
BotDatabase(const char* host, const char* user, const char* passwd, const char* database, uint32 port);
virtual ~BotDatabase();
bool Connect(const char* host, const char* user, const char* passwd, const char* database, uint32 port);
bool LoadBotCommandSettings(std::map<std::string, std::pair<uint8, std::vector<std::string>>> &bot_command_settings);
bool LoadBotSpellCastingChances();
@@ -297,8 +289,6 @@ public:
std::string query;
};
extern BotDatabase botdb;
#endif
#endif // BOTS