Note saving (#30)

* WIP note saving implementation

* Fix note saving affecting other files

* Prevent note collection in demo playback for safety

* Cache note saving enabled while in the lair or file select to prevent it changing in levels with notes

* Prevent "Grunty's magic" note dialog from being shown if note saving is enabled

* Implement dynamically spawned note saving

* Properly clear loaded save extension data when score status is cleared

* Hook up menu for note saving
This commit is contained in:
Wiseguy
2025-12-30 21:41:30 -05:00
committed by GitHub
parent 90dcdbde92
commit e7185d889e
18 changed files with 801 additions and 20 deletions
+14
View File
@@ -59,6 +59,20 @@ namespace banjo {
AnalogCamMode get_analog_cam_mode();
void set_analog_cam_mode(AnalogCamMode mode);
enum class NoteSavingMode {
On,
Off,
OptionCount
};
NLOHMANN_JSON_SERIALIZE_ENUM(banjo::NoteSavingMode, {
{banjo::NoteSavingMode::On, "On"},
{banjo::NoteSavingMode::Off, "Off"}
});
NoteSavingMode get_note_saving_mode();
void set_note_saving_mode(NoteSavingMode mode);
void open_quit_game_prompt();
};