Made an AI debug view to I can make working on the AI easier. I might add the ability to toggle things on/off live to see what the AI does.

This commit is contained in:
Zed A. Shaw 2025-08-23 01:40:51 -04:00
parent fc8e65f4d6
commit 4bf9a9177f
8 changed files with 60 additions and 16 deletions

View file

@ -61,4 +61,14 @@ namespace ai {
dump_script(script, start, plan.script);
}
std::string EntityAI::to_string() {
AIProfile* profile = ai::profile();
std::string result = wants_to();
for(auto& [name, name_id] : *profile) {
result += fmt::format("\n{}={}", name, start.test(name_id));
}
return result;
}
}