From 9e240e45df4929f77b1a088cffbf7aaa6050ed03 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 2 May 2005 10:12:26 +0000 Subject: Introduce the concept of a `game_aux_info' structure. This is constructed at the same time as an internally generated game seed, so that it can preserve any interesting information known by the program at generation time but not physically contained within the text of the game seed itself. (Such as, for example, the solution.) Currently not used for anything yet, but it will be. [originally from svn r5729] --- nullgame.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'nullgame.c') diff --git a/nullgame.c b/nullgame.c index 9e2ea32..296e76e 100644 --- a/nullgame.c +++ b/nullgame.c @@ -88,11 +88,17 @@ static char *validate_params(game_params *params) return NULL; } -static char *new_game_seed(game_params *params, random_state *rs) +static char *new_game_seed(game_params *params, random_state *rs, + game_aux_info **aux) { return dupstr("FIXME"); } +void game_free_aux_info(game_aux_info *aux) +{ + assert(!"Shouldn't happen"); +} + static char *validate_seed(game_params *params, char *seed) { return NULL; @@ -223,6 +229,7 @@ const struct game thegame = { FALSE, game_configure, custom_params, validate_params, new_game_seed, + game_free_aux_info, validate_seed, new_game, dup_game, -- cgit v1.1