Chris Miles 1be7e56b86
[Databuckets] Move Databuckets to Common (#4918)
* [Databuckets] Move Databuckets to Common

* Fix linking issue
2025-06-16 16:48:29 -05:00

24 lines
505 B
C++
Executable File

#include "../client.h"
#include "../../common/data_bucket.h"
void command_devtools(Client *c, const Seperator *sep)
{
const uint16 arguments = sep->argnum;
if (arguments != 2) {
c->ShowDevToolsMenu();
return;
}
const std::string& type = sep->arg[1];
const bool toggle = Strings::ToBool(sep->arg[2]);
if (Strings::EqualFold(type, "menu")) {
c->SetDevToolsEnabled(toggle);
} else if (Strings::EqualFold(type, "window")) {
c->SetDisplayMobInfoWindow(toggle);
}
c->ShowDevToolsMenu();
}