#include "particlesystem.h"
#include "app/globals.h"
-#include "utils/lispreader.h"
-#include "utils/lispwriter.h"
#include "video/drawing_context.h"
+#include "lisp/parser.h"
+#include "lisp/lisp.h"
+#include "lisp/writer.h"
ParticleSystem::ParticleSystem()
{
}
void
-SnowParticleSystem::parse(LispReader& reader)
+SnowParticleSystem::parse(const lisp::Lisp& reader)
{
- reader.read_int("layer", layer);
+ reader.get("layer", layer);
}
void
-SnowParticleSystem::write(LispWriter& writer)
+SnowParticleSystem::write(lisp::Writer& writer)
{
writer.start_list("particles-snow");
writer.write_int("layer", layer);
}
void
-CloudParticleSystem::parse(LispReader& reader)
+CloudParticleSystem::parse(const lisp::Lisp& reader)
{
- reader.read_int("layer", layer);
+ reader.get("layer", layer);
}
void
-CloudParticleSystem::write(LispWriter& writer)
+CloudParticleSystem::write(lisp::Writer& writer)
{
writer.start_list("particles-clouds");
writer.write_int("layer", layer);