Major string_view refactor. Added namespace sv

This commit is contained in:
2022-04-16 02:26:32 -04:00
parent b6d603034e
commit d2c81e640d
13 changed files with 381 additions and 309 deletions

View File

@@ -125,13 +125,13 @@ public:
void do_menu_command(const StringVec &cmd) {
world_to_asynchronous();
int64_t place = util::str_to_int64(cmd[1], actor_id_);
int64_t place = sv::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::str_to_int64(cmd[1]));
eng::string action = gui_.get_action(sv::to_int64(cmd[1]));
if (action == "") {
stdostream() << "Invalid menu item #" << std::endl;
return;