Crossfire Server  1.75.0
FacesetWriter.cpp
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2020 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #include "FacesetWriter.h"
14 
16  if (set->prefix) {
17  stringbuffer_append_printf(buf, "%s:%s:%s:%s:%s:%s\n",
18  set->prefix, set->fullname, set->fallback ? set->fallback->prefix : "", set->size, set->extension, set->comment);
19  }
20 }
virtual void write(const face_sets *set, StringBuffer *buf)
Write the specified asset to the StringBuffer.
void stringbuffer_append_printf(StringBuffer *sb, const char *format,...)
Append a formatted string to a string buffer instance.
size_t size
The allocation size of buf.
StringBuffer * buf
Definition: readable.cpp:1563
A buffer that will be expanded as content is added to it.
Information about one face set.
Definition: image.h:17