void
Statistics::write(lisp::Writer& writer)
{
- writer.write_int("coins-collected", coins);
- writer.write_int("coins-collected-total", total_coins);
- writer.write_int("badguys-killed", badguys);
- writer.write_int("badguys-killed-total", total_badguys);
- writer.write_float("time-needed", time);
- writer.write_int("secrets-found", secrets);
- writer.write_int("secrets-found-total", total_secrets);
+ writer.write("coins-collected", coins);
+ writer.write("coins-collected-total", total_coins);
+ writer.write("badguys-killed", badguys);
+ writer.write("badguys-killed-total", total_badguys);
+ writer.write("time-needed", time);
+ writer.write("secrets-found", secrets);
+ writer.write("secrets-found-total", total_secrets);
}
*/
}
context.draw_text(small_font, caption_buf, Vector(WMAP_INFO_LEFT_X, posy), ALIGN_LEFT, LAYER_GUI, Statistics::header_color);
- context.draw_text(small_font, stat_buf, Vector(WMAP_INFO_RIGHT_X, posy), ALIGN_RIGHT, LAYER_GUI, Statistics::text_color);
+ context.draw_text(small_font, stat_buf, Vector(WMAP_INFO_RIGHT_X, posy), ALIGN_RIGHT, LAYER_GUI, Statistics::header_color);
posy += small_font->get_height() + 2;
}