Function TCOD_console_list_save_xp

Function Documentation

bool TCOD_console_list_save_xp(TCOD_list_t console_list, const char *filename, int compress_level)

Save a list of consoles to a REXPaint file.

This function can save any number of layers with multiple different sizes.

The REXPaint tool only supports files with up to 9 layers where all layers are the same size.

Deprecated since version 1.20: TCOD_list_t is deprecated, use TCOD_save_xp instead.

Parameters
  • console_list[in] A TCOD_list_t of TCOD_console_t objects.

  • filename[in] Path to save to.

  • compress_level[in] zlib compression level.

Returns

true on success, false on a failure such as not being able to write to the path provided.