From cdb8433c0a5bf546ae2f4c55bad1be064d05df3b Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 28 Jun 2005 07:33:49 +0000 Subject: Another function pair required for serialisation; these ones save and restore anything vitally important in the game_ui. Most of the game_ui is expected to be stuff about cursor positions and currently active mouse drags, so it absolutely _doesn't_ want to be preserved over a serialisation; but one or two things would be disorienting or outright wrong to reset, such as the Net origin position and the Mines death counter. [originally from svn r6026] --- samegame.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'samegame.c') diff --git a/samegame.c b/samegame.c index 95ced1a..18e461e 100644 --- a/samegame.c +++ b/samegame.c @@ -411,6 +411,15 @@ static void free_ui(game_ui *ui) sfree(ui); } +char *encode_ui(game_ui *ui) +{ + return NULL; +} + +void decode_ui(game_ui *ui, char *encoding) +{ +} + static void sel_clear(game_ui *ui, game_state *state) { int i; @@ -999,6 +1008,8 @@ const struct game thegame = { TRUE, game_text_format, new_ui, free_ui, + encode_ui, + decode_ui, game_changed_state, interpret_move, execute_move, -- cgit v1.1