#include <treegen.h>
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 NodeDefManager * | m_ndef = nullptr |
u32 | m_nodenames_idx = 0 |
|
inline |
|
virtual |
Implements NodeResolver.
References CONTENT_IGNORE, fruit_chance, fruitnode, NodeResolver::getIdFromNrBacklog(), leaves2_chance, leaves2node, leavesnode, MapNode::param0, and trunknode.
int treegen::TreeDef::angle |
Referenced by treegen::make_ltree(), and read_tree_def().
bool treegen::TreeDef::explicit_seed |
Referenced by treegen::make_ltree(), and read_tree_def().
int treegen::TreeDef::fruit_chance |
Referenced by read_tree_def(), resolveNodeNames(), and treegen::tree_leaves_placement().
MapNode treegen::TreeDef::fruitnode |
std::string treegen::TreeDef::initial_axiom |
Referenced by treegen::make_ltree(), and read_tree_def().
int treegen::TreeDef::iterations |
Referenced by treegen::make_ltree(), and read_tree_def().
int treegen::TreeDef::iterations_random_level |
Referenced by treegen::make_ltree(), and read_tree_def().
int treegen::TreeDef::leaves2_chance |
MapNode treegen::TreeDef::leaves2node |
MapNode treegen::TreeDef::leavesnode |
std::string treegen::TreeDef::rules_a |
Referenced by treegen::make_ltree(), and read_tree_def().
std::string treegen::TreeDef::rules_b |
Referenced by treegen::make_ltree(), and read_tree_def().
std::string treegen::TreeDef::rules_c |
Referenced by treegen::make_ltree(), and read_tree_def().
std::string treegen::TreeDef::rules_d |
Referenced by treegen::make_ltree(), and read_tree_def().
s32 treegen::TreeDef::seed |
Referenced by treegen::make_ltree(), and read_tree_def().
bool treegen::TreeDef::thin_branches |
Referenced by treegen::make_ltree(), and read_tree_def().
std::string treegen::TreeDef::trunk_type |
Referenced by treegen::make_ltree(), and read_tree_def().
MapNode treegen::TreeDef::trunknode |
Referenced by resolveNodeNames(), and treegen::tree_trunk_placement().