@slot-engine/core 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3498,9 +3498,9 @@ var GeneratedReelSet = class extends ReelSet {
|
|
|
3498
3498
|
`Error generating reels for game mode "${this.associatedGameModeName}". It's not defined in the game config.`
|
|
3499
3499
|
);
|
|
3500
3500
|
}
|
|
3501
|
+
const outputDir = path7.join(config.rootDir, config.outputDir);
|
|
3501
3502
|
const filePath = path7.join(
|
|
3502
|
-
|
|
3503
|
-
config.outputDir,
|
|
3503
|
+
outputDir,
|
|
3504
3504
|
`reels_${this.associatedGameModeName}-${this.id}.csv`
|
|
3505
3505
|
);
|
|
3506
3506
|
const exists = fs5.existsSync(filePath);
|
|
@@ -3647,12 +3647,13 @@ var GeneratedReelSet = class extends ReelSet {
|
|
|
3647
3647
|
}
|
|
3648
3648
|
const csvString = csvRows.map((row) => row.join(",")).join("\n");
|
|
3649
3649
|
if (isMainThread5) {
|
|
3650
|
+
createDirIfNotExists(outputDir);
|
|
3650
3651
|
fs5.writeFileSync(filePath, csvString);
|
|
3651
|
-
this.reels = this.parseReelsetCSV(filePath, config);
|
|
3652
3652
|
console.log(
|
|
3653
3653
|
`Generated reelset ${this.id} for game mode ${this.associatedGameModeName}`
|
|
3654
3654
|
);
|
|
3655
3655
|
}
|
|
3656
|
+
this.reels = this.parseReelsetCSV(filePath, config);
|
|
3656
3657
|
return this;
|
|
3657
3658
|
}
|
|
3658
3659
|
};
|