mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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]
This commit is contained in:
@ -275,6 +275,8 @@ struct game {
|
||||
char *(*text_format)(game_state *state);
|
||||
game_ui *(*new_ui)(game_state *state);
|
||||
void (*free_ui)(game_ui *ui);
|
||||
char *(*encode_ui)(game_ui *ui);
|
||||
void (*decode_ui)(game_ui *ui, char *encoding);
|
||||
void (*changed_state)(game_ui *ui, game_state *oldstate,
|
||||
game_state *newstate);
|
||||
char *(*interpret_move)(game_state *state, game_ui *ui, game_drawstate *ds,
|
||||
|
Reference in New Issue
Block a user