Code to implement HTTP requests done. Also, rewrote str_to_int64, str_to_double

This commit is contained in:
2022-04-15 17:24:07 -04:00
parent 453809b65c
commit b6d603034e
17 changed files with 3705 additions and 99 deletions

View File

@@ -125,13 +125,13 @@ public:
void do_menu_command(const StringVec &cmd) {
world_to_asynchronous();
int64_t place = util::strtoint(cmd[1], actor_id_);
int64_t place = util::str_to_int64(cmd[1], actor_id_);
world_->update_gui(actor_id_, place, &gui_);
stdostream() << gui_.menu_debug_string();
}
void do_choose_command(const StringVec &cmd) {
eng::string action = gui_.get_action(util::strtoint(cmd[1], -1));
eng::string action = gui_.get_action(util::str_to_int64(cmd[1]));
if (action == "") {
stdostream() << "Invalid menu item #" << std::endl;
return;