1 #ifndef FIGURE_NAME_H 2 #define FIGURE_NAME_H 3 4 #include "core/buffer.h" 5 #include "figure/type.h" 6 7 /** 8 * @file 9 * Figure name generation 10 */ 11 12 /** 13 * Initializes the figure name generator. 14 */ 15 void figure_name_init(void); 16 17 /** 18 * Determines a new name for the figure type 19 * @param type Type of figure 20 * @param enemy Enemy type if applicable 21 * @return Name ID 22 */ 23 int figure_name_get(figure_type type, enemy_type enemy); 24 25 /** 26 * Saves generator state 27 * @param buf Buffer to save to 28 */ 29 void figure_name_save_state(buffer *buf); 30 31 /** 32 * Loads generator state 33 * @param buf Buffer to load from 34 */ 35 void figure_name_load_state(buffer *buf); 36 37 #endif // FIGURE_NAME_H 38