Add in a run towards phase after a certain number of stomps for second boss.

This commit is contained in:
2024-01-26 12:54:03 -06:00
parent 3f53625aab
commit 9163eecd4a
7 changed files with 49 additions and 9 deletions
+7 -5
View File
@@ -383,11 +383,13 @@ const void SaveFile::Server_SaveMetadataFile(std::function<void(std::string_view
}
}
std::string contents=fileContents.str();
emscripten_idb_async_store("/assets",("save_file_path"_S+"metadata.dat"+"_online").c_str(),contents.data(),contents.length(),0,[](void*arg){
std::cout<<"Saved metadata successfully!"<<std::endl;
},[](void*arg){
std::cout<<"Failed to save metadata!"<<std::endl;
});
#ifdef __EMSCRIPTEN__
emscripten_idb_async_store("/assets",("save_file_path"_S+"metadata.dat"+"_online").c_str(),contents.data(),contents.length(),0,[](void*arg){
std::cout<<"Saved metadata successfully!"<<std::endl;
},[](void*arg){
std::cout<<"Failed to save metadata!"<<std::endl;
});
#endif
game->SendRequest("save_server"_S,CreateServerRequest(SaveFileOperation::SAVE_METADATA_FILE,fileContents.str()));
game->responseCallback=respCallbackFunc;
}