Crossfire Server, Trunk
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
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,...)
Append a formatted string to a string buffer instance.
Definition:
stringbuffer.cpp:138
FacesetWriter::write
virtual void write(const face_sets *set, StringBuffer *buf)
Write the specified asset to the StringBuffer.
Definition:
FacesetWriter.cpp:15
buf
StringBuffer * buf
Definition:
readable.cpp:1565
FacesetWriter.h
StringBuffer
A buffer that will be expanded as content is added to it.
Definition:
stringbuffer.cpp:25
face_sets
Information about one face set.
Definition:
image.h:17
set
*envar *is the environment if one that can also be used as an override If both the flag and the envar are set
Definition:
server-directories.txt:12
crossfire-crossfire-server
common
assets
FacesetWriter.cpp
Generated on Tue Jul 1 2025 14:27:27 for Crossfire Server, Trunk by
1.8.17