getCombinationCount method
How many NFT permutations are possible, assuming each file has the same chance / weight to be used.
Not meaningful for generating weighted NFTs. The returned number provides a basic orientation.
Implementation
int getCombinationCount() {
int combinations = 0;
for (var layer in layers) {
combinations = combinations == 0
? layer.weights.length
: combinations * layer.weights.length;
}
return combinations;
}