Crossfire Server, Trunk
TreasureWriter.cpp File Reference
#include <string>
#include "TreasureWriter.h"
+ Include dependency graph for TreasureWriter.cpp:

Go to the source code of this file.

Macros

#define W(x, n)   { if (item->x) { stringbuffer_append_printf(buf, "%s" n "\n", indentItems.c_str(), item->x); } }
 

Functions

static void writeItem (const treasure *item, const std::string &indent, StringBuffer *buf)
 

Macro Definition Documentation

◆ W

#define W (   x,
 
)    { if (item->x) { stringbuffer_append_printf(buf, "%s" n "\n", indentItems.c_str(), item->x); } }

Definition at line 16 of file TreasureWriter.cpp.

Function Documentation

◆ writeItem()

static void writeItem ( const treasure item,
const std::string &  indent,
StringBuffer buf 
)
static

Definition at line 18 of file TreasureWriter.cpp.

References buf, give::name, stringbuffer_append_printf(), stringbuffer_append_string(), and W.

Referenced by TreasureWriter::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: