attribute exercising

This commit is contained in:
Llywelwyn 2023-09-27 22:12:53 +01:00
parent 4d614daad5
commit c757466df1
3 changed files with 33 additions and 2 deletions

View file

@ -28,7 +28,13 @@ macro_rules! serialize_individually {
}
#[cfg(target_arch = "wasm32")]
pub fn save_game(_ecs: &mut World) {}
pub fn save_game(_ecs: &mut World) {
console::log(
"Unfortunately, saving isn't supported in any easy way on the web. Sorry!
You can, at least, save your morgue file after dying - it'll be written
to the log, and just needs saving into a text file."
)
}
#[cfg(not(target_arch = "wasm32"))]
pub fn save_game(ecs: &mut World) {