Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
ToolGroupCap Struct Reference

#include <tool.h>

+ Collaboration diagram for ToolGroupCap:

Public Member Functions

 ToolGroupCap ()=default
 
std::optional< float > getTime (int rating) const
 
void toJson (Json::Value &object) const
 
void fromJson (const Json::Value &json)
 

Public Attributes

std::unordered_map< int, float > times
 
int maxlevel = 1
 
int uses = 20
 

Constructor & Destructor Documentation

◆ ToolGroupCap()

ToolGroupCap::ToolGroupCap ( )
default

Member Function Documentation

◆ fromJson()

void ToolGroupCap::fromJson ( const Json::Value &  json)

References maxlevel, times, and uses.

Referenced by ToolCapabilities::deserializeJson().

+ Here is the caller graph for this function:

◆ getTime()

std::optional< float > ToolGroupCap::getTime ( int  rating) const
inline

References times.

Referenced by getDigParams().

+ Here is the caller graph for this function:

◆ toJson()

void ToolGroupCap::toJson ( Json::Value &  object) const

References maxlevel, times, and uses.

Member Data Documentation

◆ maxlevel

◆ times

◆ uses


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