X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flisp%2Fwriter.hpp;h=ba5d327ab918b037995a37da2de74679b50b1ee8;hb=bb1e51d77df632eca2c4977429e831ae44e0dc98;hp=90baf12c705272f54a80bb7657fccbad4303e765;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/lisp/writer.hpp b/src/lisp/writer.hpp index 90baf12c7..ba5d327ab 100644 --- a/src/lisp/writer.hpp +++ b/src/lisp/writer.hpp @@ -1,7 +1,7 @@ // $Id$ // -// SuperTux - A Jump'n Run -// Copyright (C) 2004 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -36,7 +36,7 @@ namespace lisp void write_comment(const std::string& comment); - void start_list(const std::string& listname); + 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); @@ -45,11 +45,13 @@ namespace lisp 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); // add more write-functions when needed... void end_list(const std::string& listname); private: + void write_escaped_string(const std::string& str); void indent(); std::ostream* out; @@ -57,8 +59,7 @@ namespace lisp int indent_depth; std::vector lists; }; - + } //namespace lisp #endif //SUPERTUX_LISPWRITER_H -