Crossfire Server, Trunk  1.75.0
ArtifactWriter Class Reference

#include <ArtifactWriter.h>

+ Inheritance diagram for ArtifactWriter:
+ Collaboration diagram for ArtifactWriter:

Public Member Functions

virtual void write (const artifact *item, StringBuffer *buf)
 Write the specified asset to the StringBuffer. More...
 
- Public Member Functions inherited from AssetWriter< artifact >
virtual ~AssetWriter ()
 Destructor in case inherited classes need it. More...
 

Detailed Description

Definition at line 19 of file ArtifactWriter.h.

Member Function Documentation

◆ write()

void ArtifactWriter::write ( const artifact asset,
StringBuffer buf 
)
virtual

Write the specified asset to the StringBuffer.

Parameters
assetasset to write.
bufwhere to write.
Todo:
check why not included in get_ob_diff

Implements AssetWriter< artifact >.

Definition at line 18 of file ArtifactWriter.cpp.

References artifact::allowed, object::anim_speed, buf, artifact::chance, archetype::clone, artifact::difficulty, empty_archetype, get_ob_diff(), object::inv, artifact::item, name, object::name, stringbuffer_append_printf(), and stringbuffer_append_string().

Referenced by pack_artifacts().

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

The documentation for this class was generated from the following files: