Crossfire Server, Trunk
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
15
void
FacesetWriter::write
(
const
face_sets
*set,
StringBuffer
*
buf
) {
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
}
stringbuffer_append_printf
void stringbuffer_append_printf(StringBuffer *sb, const char *format,...)
Definition:
stringbuffer.cpp:138
FacesetWriter::write
virtual void write(const face_sets *set, StringBuffer *buf)
Definition:
FacesetWriter.cpp:15
buf
StringBuffer * buf
Definition:
readable.cpp:1565
face_sets::prefix
char * prefix
Definition:
image.h:19
face_sets::extension
char * extension
Definition:
image.h:23
face_sets::comment
char * comment
Definition:
image.h:24
FacesetWriter.h
face_sets::size
char * size
Definition:
image.h:22
face_sets::fallback
struct face_sets * fallback
Definition:
image.h:21
StringBuffer
Definition:
stringbuffer.cpp:25
face_sets::fullname
char * fullname
Definition:
image.h:20
face_sets
Definition:
image.h:17
crossfire-crossfire-server
common
assets
FacesetWriter.cpp
Generated by
1.8.17