Crossfire Server, Trunk  1.75.0
ArchetypeWriter.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2020-2021 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 #ifndef ARCHETYPEWRITER_H
14 #define ARCHETYPEWRITER_H
15 
16 #include "global.h"
17 #include "AssetWriter.h"
18 
19 class ArchetypeWriter : public AssetWriter<archetype> {
20  public:
21  virtual void write(const archetype *arch, StringBuffer *buf);
22 };
23 
24 #endif /* ARCHETYPEWRITER_H */
25 
global.h
AssetWriter.h
ArchetypeWriter
Definition: ArchetypeWriter.h:19
ArchetypeWriter::write
virtual void write(const archetype *arch, StringBuffer *buf)
Write the specified asset to the StringBuffer.
Definition: ArchetypeWriter.cpp:39
buf
StringBuffer * buf
Definition: readable.cpp:1565
archetype
The archetype structure is a set of rules on how to generate and manipulate objects which point to ar...
Definition: object.h:483
StringBuffer
A buffer that will be expanded as content is added to it.
Definition: stringbuffer.cpp:25
AssetWriter
Abstract writer of an asset to a StringBuffer.
Definition: AssetWriter.h:22