personae
Version:
This tool is used to generate a person either NPC or other Edit
25 lines • 800 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const wizard_1 = require("./wizard");
const wizard_dna_1 = require("./wizard-dna");
const wizard_seed_1 = require("./wizard-seed");
const program = require("commander");
// program basics
program
.option("-o, --output <dir>", "output directory")
.option("-d, --dna <file>", "input *.dna file")
.option("-s, --seed <file>", "input *.seed file")
.parse(process.argv);
// generate person with DNA
if (program.dna) {
wizard_dna_1.default(program.output, program.dna);
// generate person with seed
}
else if (program.seed) {
wizard_seed_1.default(program.output, program.seed);
// go through the wizard
}
else {
wizard_1.default(program.output);
}
//# sourceMappingURL=program-generate.js.map