MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / loadTree

Method loadTree

Source/World/Generators/Biome.cpp:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void Biome::loadTree(std::ifstream& inFile)
109{
110 int id, freq;
111 inFile >> id >> freq;
112
113 auto idEnum = (Structure::ID)id;
114
115 for (int i = 0; i <freq; i++)
116 {
117 m_trees.holder.push_back(idEnum);
118 }
119 m_trees.total += freq;
120}
121
122void Biome::loadIntoBlockList(std::ifstream& inFile,
123 Gen_Container<CBlock>& container)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected