开始执行——validateParameter,generate与postGenerate
function () {
let result = new String()
if (this.blockTypeArray.indexOf(undefined) != -1)
result += "Too few blockTypes!Refusing to execute.\n"
if (this.positionArray.indexOf(undefined) != -1)
result += "Too few positions!Refusing to execute."
if (result == "") result = "success"
return result;
}class Block {
constructor(position, blockType) {
this.position = position;
this.blockType = blockType;
}
}最后更新于