Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
treegen::TreeDef Struct Reference

#include <treegen.h>

+ Inheritance diagram for treegen::TreeDef:
+ Collaboration diagram for treegen::TreeDef:

Public Member Functions

 TreeDef ()
 
virtual void resolveNodeNames ()
 
- Public Member Functions inherited from NodeResolver
 NodeResolver ()
 
virtual ~NodeResolver ()
 
void cloneTo (NodeResolver *res) const
 
bool getIdFromNrBacklog (content_t *result_out, const std::string &node_alt, content_t c_fallback, bool error_on_fallback=true)
 
bool getIdsFromNrBacklog (std::vector< content_t > *result_out, bool all_required=false, content_t c_fallback=CONTENT_IGNORE)
 
bool isResolveDone () const
 
void reset (bool resolve_done=false)
 

Public Attributes

std::string initial_axiom
 
std::string rules_a
 
std::string rules_b
 
std::string rules_c
 
std::string rules_d
 
MapNode trunknode
 
MapNode leavesnode
 
MapNode leaves2node
 
int leaves2_chance
 
int angle
 
int iterations
 
int iterations_random_level
 
std::string trunk_type
 
bool thin_branches
 
MapNode fruitnode
 
int fruit_chance
 
s32 seed
 
bool explicit_seed
 
- Public Attributes inherited from NodeResolver
std::vector< std::string > m_nodenames
 
std::vector< size_t > m_nnlistsizes
 

Additional Inherited Members

- Protected Attributes inherited from NodeResolver
const NodeDefManagerm_ndef = nullptr
 
u32 m_nodenames_idx = 0
 

Constructor & Destructor Documentation

◆ TreeDef()

treegen::TreeDef::TreeDef ( )
inline

Member Function Documentation

◆ resolveNodeNames()

void treegen::TreeDef::resolveNodeNames ( )
virtual

Implements NodeResolver.

References CONTENT_IGNORE, fruit_chance, fruitnode, NodeResolver::getIdFromNrBacklog(), leaves2_chance, leaves2node, leavesnode, MapNode::param0, and trunknode.

+ Here is the call graph for this function:

Member Data Documentation

◆ angle

int treegen::TreeDef::angle

◆ explicit_seed

bool treegen::TreeDef::explicit_seed

◆ fruit_chance

int treegen::TreeDef::fruit_chance

◆ fruitnode

◆ initial_axiom

std::string treegen::TreeDef::initial_axiom

◆ iterations

int treegen::TreeDef::iterations

◆ iterations_random_level

int treegen::TreeDef::iterations_random_level

◆ leaves2_chance

◆ leaves2node

◆ leavesnode

◆ rules_a

std::string treegen::TreeDef::rules_a

◆ rules_b

std::string treegen::TreeDef::rules_b

◆ rules_c

std::string treegen::TreeDef::rules_c

◆ rules_d

std::string treegen::TreeDef::rules_d

◆ seed

s32 treegen::TreeDef::seed

◆ thin_branches

bool treegen::TreeDef::thin_branches

◆ trunk_type

std::string treegen::TreeDef::trunk_type

◆ trunknode

MapNode treegen::TreeDef::trunknode

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