Add in a run towards phase after a certain number of stomps for second boss.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user