helapordo 1.4.12
Loading...
Searching...
No Matches
SerTreasure Struct Reference

Serialized Treasure. More...

#include <ser_core.h>

Collaboration diagram for SerTreasure:

Data Fields

int32_t class
 Defines which kind of treasureClass the instance relates to.
 
SerChest chest
 The treasure SerChest, initialised if class == TREASURE_CHEST.
 
SerConsumable consumable
 The treasure SerConsumable, initialised if class == TREASURE_CONSUMABLE.
 
SerArtifact artifact
 The treasure SerArtifact, initialised if class == TREASURE_ARTIFACT.
 

Detailed Description

Serialized Treasure.

Packed struct. Can be turned into a Treasure with deser_Treasure(). Can be obtained from a Treasure with ser_Treasure().

See also
Treasure
deser_Treasure()
ser_Treasure()

Field Documentation

◆ artifact

SerArtifact SerTreasure::artifact

The treasure SerArtifact, initialised if class == TREASURE_ARTIFACT.

◆ chest

SerChest SerTreasure::chest

The treasure SerChest, initialised if class == TREASURE_CHEST.

◆ class

int32_t SerTreasure::class

Defines which kind of treasureClass the instance relates to.

◆ consumable

SerConsumable SerTreasure::consumable

The treasure SerConsumable, initialised if class == TREASURE_CONSUMABLE.


The documentation for this struct was generated from the following file: