#include <tool.h>
◆ ToolCapabilities()
ToolCapabilities::ToolCapabilities |
( |
float | full_punch_interval_ = 1.4f, |
|
|
int | max_drop_level_ = 1, |
|
|
const ToolGCMap & | groupcaps_ = ToolGCMap(), |
|
|
const DamageGroup & | damageGroups_ = DamageGroup(), |
|
|
int | punch_attack_uses_ = 0 ) |
|
inline |
◆ deSerialize()
void ToolCapabilities::deSerialize |
( |
std::istream & | is | ) |
|
References damageGroups, deSerializeString16(), full_punch_interval, groupcaps, max_drop_level, ToolGroupCap::maxlevel, punch_attack_uses, readF32(), readS16(), readU16(), readU32(), readU8(), ToolGroupCap::times, and ToolGroupCap::uses.
Referenced by ItemDefinition::deSerialize().
◆ deserializeJson()
void ToolCapabilities::deserializeJson |
( |
std::istream & | is | ) |
|
◆ deserializeJsonDamageGroups()
void ToolCapabilities::deserializeJsonDamageGroups |
( |
Json::Value & | json | ) |
|
|
private |
◆ deserializeJsonGroupcaps()
void ToolCapabilities::deserializeJsonGroupcaps |
( |
Json::Value & | json | ) |
|
|
private |
◆ serialize()
void ToolCapabilities::serialize |
( |
std::ostream & | os, |
|
|
u16 | version ) const |
References damageGroups, full_punch_interval, groupcaps, max_drop_level, ToolGroupCap::maxlevel, punch_attack_uses, rangelim, serializeString16(), ToolGroupCap::times, U16_MAX, ToolGroupCap::uses, writeF32(), writeS16(), writeU16(), writeU32(), and writeU8().
Referenced by ItemDefinition::serialize().
◆ serializeJson()
void ToolCapabilities::serializeJson |
( |
std::ostream & | os | ) |
const |
◆ damageGroups
◆ full_punch_interval
float ToolCapabilities::full_punch_interval |
◆ groupcaps
◆ max_drop_level
int ToolCapabilities::max_drop_level |
◆ punch_attack_uses
int ToolCapabilities::punch_attack_uses |
The documentation for this struct was generated from the following files: