mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 23:11:41 +00:00
added savegame::write_events()
This commit is contained in:
parent
b4ff954b3c
commit
c5e77db936
@ -19,7 +19,6 @@
|
||||
#include "foreach.hpp"
|
||||
#include "game_display.hpp"
|
||||
#include "game_end_exceptions.hpp"
|
||||
#include "game_events.hpp"
|
||||
#include "gettext.hpp"
|
||||
#include "gui/dialogs/game_load.hpp"
|
||||
#include "gui/dialogs/game_save.hpp"
|
||||
@ -998,7 +997,7 @@ void game_savegame::write_game_snapshot()
|
||||
buf << gui_.playing_team();
|
||||
snapshot()["playing_team"] = buf.str();
|
||||
|
||||
game_events::write_events(snapshot());
|
||||
write_events(snapshot());
|
||||
|
||||
write_music_play_list(snapshot());
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
#include "sound.hpp"
|
||||
#include "game_events.hpp"
|
||||
|
||||
namespace savegame {
|
||||
|
||||
@ -19,4 +20,8 @@ void write_music_play_list(config& snapshot) {
|
||||
sound::write_music_play_list(snapshot);
|
||||
}
|
||||
|
||||
void write_events(config& cfg) {
|
||||
game_events::write_events(cfg);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -29,5 +29,7 @@ public:
|
||||
|
||||
void write_music_play_list(config& snapshot);
|
||||
|
||||
void write_events(config& cfg);
|
||||
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user