mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 19:10:25 +00:00
[Bots] Add Bot scripting capabilities to the source. (#1378)
- This will allow server operators to interact with bots within a script in Perl or Lua.
This commit is contained in:
@@ -4769,6 +4769,16 @@ void EntityList::GetClientList(std::list<Client *> &c_list)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef BOTS
|
||||
void EntityList::GetBotList(std::list<Bot *> &b_list)
|
||||
{
|
||||
b_list.clear();
|
||||
for (auto bot_iterator : bot_list) {
|
||||
b_list.push_back(bot_iterator);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void EntityList::GetCorpseList(std::list<Corpse *> &c_list)
|
||||
{
|
||||
c_list.clear();
|
||||
|
||||
Reference in New Issue
Block a user