phaser4-rex-plugins
Version:
15 lines (14 loc) • 415 B
JavaScript
var GetTotalRowProportions = function () {
var result = 0,
proportion;
for (var i = 0; i < this.rowCount; i++) {
proportion = this.rowProportions[i];
if (proportion > 0) {
result += proportion;
} else if (proportion === 0) {
this.hasRowProportion0Child = true;
}
}
return result;
}
export default GetTotalRowProportions;