@drincs/pixi-vn 0.2.0 → 0.2.2
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -56,7 +56,7 @@ declare class CanvasEvent<C> {
|
|
|
56
56
|
* }
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
|
-
declare
|
|
59
|
+
declare class StoredClassModel {
|
|
60
60
|
/**
|
|
61
61
|
* @param categoryId The id of the category. For example if you are storing a character class, you can use "characters" as categoryId. so all instances of the character class will be stored in the "characters" category.
|
|
62
62
|
* @param id The id of instance of the class. This id must be unique for the category.
|
package/dist/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ declare class CanvasEvent<C> {
|
|
|
56
56
|
* }
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
|
-
declare
|
|
59
|
+
declare class StoredClassModel {
|
|
60
60
|
/**
|
|
61
61
|
* @param categoryId The id of the category. For example if you are storing a character class, you can use "characters" as categoryId. so all instances of the character class will be stored in the "characters" category.
|
|
62
62
|
* @param id The id of instance of the class. This id must be unique for the category.
|
package/dist/index.js
CHANGED
|
@@ -1049,7 +1049,7 @@ function showImageWithDissolveTransition(tag, imageUrl, speed, priority) {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
|
|
1051
1051
|
// src/constants.ts
|
|
1052
|
-
var PIXIVN_VERSION = "0.
|
|
1052
|
+
var PIXIVN_VERSION = "0.2.2";
|
|
1053
1053
|
|
|
1054
1054
|
// src/functions/SavesUtility.ts
|
|
1055
1055
|
function getSaveData() {
|
|
@@ -1232,10 +1232,10 @@ var import_pixi9 = require("pixi.js");
|
|
|
1232
1232
|
function asciiArtLog() {
|
|
1233
1233
|
console.log(`
|
|
1234
1234
|
____ _ _ ___ ___ _
|
|
1235
|
-
| _ (_)_ _(_| )
|
|
1236
|
-
| |_) |
|
|
1237
|
-
| __/| |> <| |
|
|
1238
|
-
|_| |_/_
|
|
1235
|
+
| _ \\(_)_ _(_| ) \\ / / \\ | |
|
|
1236
|
+
| |_) | \\ \\/ / |/ \\ \\ / /| \\| |
|
|
1237
|
+
| __/| |> <| | \\ V / | |\\ |
|
|
1238
|
+
|_| |_/_/\\_\\_| \\_/ |_| \\_|
|
|
1239
1239
|
`);
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
@@ -1870,8 +1870,18 @@ var _GameStepManager = class _GameStepManager {
|
|
|
1870
1870
|
static get isLastGameStep() {
|
|
1871
1871
|
var _a;
|
|
1872
1872
|
let stepLabel = (_a = _GameStepManager.currentLabel) == null ? void 0 : _a.steps;
|
|
1873
|
-
if (stepLabel) {
|
|
1874
|
-
|
|
1873
|
+
if (stepLabel && _GameStepManager.currentLabelStepIndex === stepLabel.length) {
|
|
1874
|
+
if (this.openedLabels.length <= 1) {
|
|
1875
|
+
return true;
|
|
1876
|
+
} else {
|
|
1877
|
+
this.openedLabels.forEach((item) => {
|
|
1878
|
+
let label = getLabelInstanceByClassName(item.label);
|
|
1879
|
+
if (label && label.steps.length > item.currentStepIndex) {
|
|
1880
|
+
return false;
|
|
1881
|
+
}
|
|
1882
|
+
});
|
|
1883
|
+
return true;
|
|
1884
|
+
}
|
|
1875
1885
|
}
|
|
1876
1886
|
return false;
|
|
1877
1887
|
}
|