X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flisp%2Fwriter.hpp;h=a031ab7e8db0749a0acdf4b8ffc34e579667dc12;hb=2ad3ecbc14b77d373c796ad04d6389489666cc01;hp=ba5d327ab918b037995a37da2de74679b50b1ee8;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/lisp/writer.hpp b/src/lisp/writer.hpp index ba5d327ab..a031ab7e8 100644 --- a/src/lisp/writer.hpp +++ b/src/lisp/writer.hpp @@ -38,14 +38,17 @@ namespace lisp void start_list(const std::string& listname, bool string = false); - void write_int(const std::string& name, int value); - void write_float(const std::string& name, float value); - void write_string(const std::string& name, const std::string& value, + void write(const std::string& name, int value); + void write(const std::string& name, float value); + void write(const std::string& name, const std::string& value, bool translatable = false); - void write_bool(const std::string& name, bool value); - void write_int_vector(const std::string& name, const std::vector& value); - void write_int_vector(const std::string& name, const std::vector& value); - void write_float_vector(const std::string& name, const std::vector& value); + void write(const std::string& name, const char* value, + bool translatable = false) { write(name, static_cast(value), translatable); } + void write(const std::string& name, bool value); + void write(const std::string& name, const std::vector& value); + void write(const std::string& name, const std::vector& value); + void write(const std::string& name, const std::vector& value); + void write(const std::string& name, const std::vector& value); // add more write-functions when needed... void end_list(const std::string& listname);