本文整理汇总了C++中lisp::Writer类的典型用法代码示例。如果您正苦于以下问题:C++ Writer类的具体用法?C++ Writer怎么用?C++ Writer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Writer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
MrIceBlock::write(lisp::Writer& writer)
{
writer.start_list("mriceblock");
WalkingBadguy::write(writer);
writer.end_list("mriceblock");
}
示例2:
void
CloudParticleSystem::write(lisp::Writer& writer)
{
writer.start_list("particles-clouds");
writer.write_int("z-pos", z_pos);
writer.end_list("particles-clouds");
}
示例3:
void
SSpiky::write(lisp::Writer& writer)
{
writer.start_list("sspiky");
WalkingBadguy::write(writer);
writer.end_list("sspiky");
}
示例4:
void
Stumpy::write(lisp::Writer& writer)
{
writer.start_list("stumpy");
WalkingBadguy::write(writer);
writer.end_list("stumpy");
}
示例5:
void
Candle::save(lisp::Writer& writer) {
MovingSprite::save(writer);
writer.write("burning", burning);
writer.write("flicker", flicker);
writer.write("color", lightcolor.toVector(false));
}
示例6:
void
Spotlight::save(lisp::Writer& writer) {
GameObject::save(writer);
writer.write("x", position.x);
writer.write("y", position.y);
writer.write("color", color.toVector(false));
}
示例7:
void
MrTree::write(lisp::Writer& writer)
{
writer.start_list("mrtree");
WalkingBadguy::write(writer);
writer.end_list("mrtree");
}
示例8:
void
Dart::write(lisp::Writer& writer)
{
writer.start_list("dart");
writer.write_float("x", start_position.x);
writer.write_float("y", start_position.y);
writer.end_list("dart");
}
示例9:
void
MoleRock::write(lisp::Writer& writer)
{
writer.start_list("mole_rock");
writer.write_float("x", start_position.x);
writer.write_float("y", start_position.y);
writer.end_list("mole_rock");
}
示例10:
void
Yeti::write(lisp::Writer& writer)
{
writer.start_list("yeti");
writer.write_float("x", start_position.x);
writer.write_float("y", start_position.y);
writer.end_list("yeti");
}
示例11:
void
MrBomb::write(lisp::Writer& writer)
{
writer.start_list("mrbomb");
writer.write_float("x", start_position.x);
writer.write_float("y", start_position.y);
writer.end_list("mrbomb");
}
示例12:
void
SpawnPoint::save(lisp::Writer& writer){
writer.start_list("spawnpoint");
writer.write("x",pos.x);
writer.write("y",pos.y);
writer.write("name",name,false);
writer.end_list("spawnpoint");
}
示例13:
void
MrRocket::write(lisp::Writer& writer)
{
writer.start_list("mrrocket");
writer.write_float("x", start_position.x);
writer.write_float("y", start_position.y);
writer.end_list("mrrocket");
}
示例14:
void
SnowSnail::write(lisp::Writer& writer)
{
writer.start_list("mriceblock");
writer.write_float("x", start_position.x);
writer.write_float("y", start_position.y);
writer.end_list("snowsnail");
}
示例15:
void
BouncingSnowball::write(lisp::Writer& writer)
{
writer.start_list("bouncingsnowball");
writer.write_float("x", start_position.x);
writer.write_float("y", start_position.y);
writer.end_list("bouncingsnowball");
}