mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-03 13:36:36 +00:00
[Bots] Cleanup and remove preprocessors. (#2757)
* [Bots] Cleanup and remove preprocessors. - Removes every `#ifdef BOTS` we have and locks bots behind `Bots:AllowBots` rule. - Bot updates are now done by default similar to regular database updates. - Modify `CMakeLists.txt`, `.drone.yml`, and `BUILD.md` to match the removal of `EQEMU_ENABLE_BOTS`. * Cleanup - Add SQL for enabling bots for servers with bots. - Add message that tells players/operators bots are disabled. * Suggested changes. * Bot injection stuff * Change SQL to bot SQL. * Tweaks * Remove `is_bot` * Update version.h * Update main.cpp * Update database.cpp * Fix name availability crash * Remove bots from update script Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#ifndef BOT_DATABASE_H
|
||||
#define BOT_DATABASE_H
|
||||
|
||||
#ifdef BOTS
|
||||
|
||||
#include <list>
|
||||
#include <map>
|
||||
@@ -78,10 +77,6 @@ public:
|
||||
bool SaveTimers(Bot* bot_inst);
|
||||
bool DeleteTimers(const uint32 bot_id);
|
||||
|
||||
bool LoadGuildMembership(const uint32 bot_id, uint32& guild_id, uint8& guild_rank, std::string& guild_name);
|
||||
bool SaveGuildMembership(const uint32 bot_id, const uint32 guild_id, const uint8 guild_rank);
|
||||
bool DeleteGuildMembership(const uint32 bot_id);
|
||||
|
||||
|
||||
/* Bot inventory functions */
|
||||
bool QueryInventoryCount(const uint32 bot_id, uint32& item_count);
|
||||
@@ -215,9 +210,6 @@ public:
|
||||
static const char* LoadTimers();
|
||||
static const char* SaveTimers();
|
||||
static const char* DeleteTimers();
|
||||
static const char* LoadGuildMembership();
|
||||
static const char* SaveGuildMembership();
|
||||
static const char* DeleteGuildMembership();
|
||||
|
||||
/* fail::Bot inventory functions */
|
||||
static const char* QueryInventoryCount();
|
||||
@@ -295,5 +287,3 @@ public:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif // BOTS
|
||||
|
||||
Reference in New Issue
Block a user