MCPcopy Create free account
hub / github.com/DFHack/dfhack / makeVeinDistribution

Function makeVeinDistribution

plugins/3dveins.cpp:189–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187};
188
189static NoiseFunction *makeVeinDistribution(t_veinkey vein, MersenneRNG &rng)
190{
191 using namespace df::enums::inclusion_type;
192
193 switch (vein.second)
194 {
195 case VEIN:
196 return new DistributionVein(rng);
197 case CLUSTER_SMALL:
198 return new DistributionClusterSmall(rng);
199 case CLUSTER_ONE:
200 return new DistributionClusterOne(rng);
201 case CLUSTER:
202 default:
203 return new DistributionCluster(rng);
204 }
205}
206
207/*
208 * Data structures.

Callers 1

get_noiseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected