@drincs/pixi-vn-json 1.7.5 → 1.7.6
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/unifier.cjs +1 -3
- package/dist/unifier.mjs +1 -3
- package/package.json +1 -1
package/dist/unifier.cjs
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
2
|
-
|
|
3
|
-
`+x),r=s(p.glueEnabled)||false,x)}),d=s(c[0]),g=typeof d=="object"&&"character"in d?d.character:void 0,V=c.flatMap(p=>{let T;p&&typeof p=="object"&&"text"in p?T=p.text:T=p;let x;return Array.isArray(T)?x=T.map(k=>{let D=s(k);return S.t(`${D}`)}):x=s(T)||"",S.t(x)}),w=o.find(p=>p.end),m=o.find(p=>p.choices),P=false,h=false;o.length>0&&(o[0].glueEnabled&&o[0].goNextStep&&o[0].dialogue===void 0&&storage.storage.setFlag(storage.SYSTEM_RESERVED_STORAGE_KEYS.ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY,true),P=o[o.length-1].glueEnabled,h=o.reverse().find(p=>!(p.operations&&(!p.dialogue||!p.choices)))?.goNextStep);let y=o.find(p=>p.labelToOpen),J=[];return o.forEach(p=>{p.operations&&J.forEach(T=>{J.push(T);});}),{dialogue:g?{character:g,text:V}:V,end:w?.end,choices:m?.choices,glueEnabled:P,goNextStep:h,labelToOpen:y?.labelToOpen,operations:J}}}var a=class a{static init(e){a._loadAssets=e.loadAssets,a._soundOperation=e.soundOperation,a._imageOperation=e.imageOperation,a._videoOperation=e.videoOperation,a._imageContainerOperation=e.imageContainerOperation,a._canvasElementOperation=e.canvasElementOperation,a._setStorageValue=e.setStorageValue,a._inputOperation=e.inputOperation,a._tickerOperation=e.tickerOperation,a._effectOperation=e.effectOperation,a._animateOperation=e.animateOperation,a._getLogichValue=e.getLogichValue,a._getConditionalStep=e.getConditionalStep;}static get loadAssets(){return a._loadAssets}static get soundOperation(){return a._soundOperation}static get imageOperation(){return a._imageOperation}static get videoOperation(){return a._videoOperation}static get imageContainerOperation(){return a._imageContainerOperation}static get canvasElementOperation(){return a._canvasElementOperation}static get setStorageValue(){return a._setStorageValue}static get inputOperation(){return a._inputOperation}static get tickerOperation(){return a._tickerOperation}static get effectOperation(){return a._effectOperation}static get animateOperation(){return a._animateOperation}static get getLogichValue(){return a._getLogichValue}static get getConditionalStep(){return a._getConditionalStep}};f(a,"_loadAssets",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_soundOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_imageOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_videoOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_imageContainerOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_canvasElementOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_setStorageValue",L),f(a,"_inputOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_tickerOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_effectOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_animateOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_getLogichValue",s),f(a,"_getConditionalStep",b);var A=a;exports.JsonUnifier=A;
|
|
1
|
+
'use strict';var P=Object.defineProperty;var V=(a,e,s)=>e in a?P(a,e,{enumerable:true,configurable:true,writable:true,value:s}):a[e]=s;var o=(a,e,s)=>V(a,typeof e!="symbol"?e+"":e,s);var t;(p=>(p.log=(n,...r)=>console.log(`[Pixi\u2019VN Json] ${n}`,...r),p.warn=(n,...r)=>console.warn(`[Pixi\u2019VN Json] ${n}`,...r),p.error=(n,...r)=>console.error(`[Pixi\u2019VN Json] ${n}`,...r),p.info=(n,...r)=>console.info(`[Pixi\u2019VN Json] ${n}`,...r)))(t||(t={}));var i=class i{static init(e){i._loadAssets=e.loadAssets,i._soundOperation=e.soundOperation,i._imageOperation=e.imageOperation,i._videoOperation=e.videoOperation,i._imageContainerOperation=e.imageContainerOperation,i._canvasElementOperation=e.canvasElementOperation,i._setStorageValue=e.setStorageValue,i._inputOperation=e.inputOperation,i._tickerOperation=e.tickerOperation,i._effectOperation=e.effectOperation,i._animateOperation=e.animateOperation,i._getLogichValue=e.getLogichValue,i._getConditionalStep=e.getConditionalStep;}static get loadAssets(){return i._loadAssets}static get soundOperation(){return i._soundOperation}static get imageOperation(){return i._imageOperation}static get videoOperation(){return i._videoOperation}static get imageContainerOperation(){return i._imageContainerOperation}static get canvasElementOperation(){return i._canvasElementOperation}static get setStorageValue(){return i._setStorageValue}static get inputOperation(){return i._inputOperation}static get tickerOperation(){return i._tickerOperation}static get effectOperation(){return i._effectOperation}static get animateOperation(){return i._animateOperation}static get getLogichValue(){return i._getLogichValue}static get getConditionalStep(){return i._getConditionalStep}};o(i,"_loadAssets",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_soundOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_imageOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_videoOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_imageContainerOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_canvasElementOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_setStorageValue",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_inputOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_tickerOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_effectOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_animateOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_getLogichValue",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_getConditionalStep",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")});var c=i;exports.JsonUnifier=c;
|
package/dist/unifier.mjs
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
`+x),r=s(p.glueEnabled)||false,x)}),d=s(c[0]),g=typeof d=="object"&&"character"in d?d.character:void 0,V=c.flatMap(p=>{let T;p&&typeof p=="object"&&"text"in p?T=p.text:T=p;let x;return Array.isArray(T)?x=T.map(k=>{let D=s(k);return S.t(`${D}`)}):x=s(T)||"",S.t(x)}),w=o.find(p=>p.end),m=o.find(p=>p.choices),P=false,h=false;o.length>0&&(o[0].glueEnabled&&o[0].goNextStep&&o[0].dialogue===void 0&&storage.setFlag(SYSTEM_RESERVED_STORAGE_KEYS.ADD_NEXT_DIALOG_TEXT_INTO_THE_CURRENT_DIALOG_FLAG_KEY,true),P=o[o.length-1].glueEnabled,h=o.reverse().find(p=>!(p.operations&&(!p.dialogue||!p.choices)))?.goNextStep);let y=o.find(p=>p.labelToOpen),J=[];return o.forEach(p=>{p.operations&&J.forEach(T=>{J.push(T);});}),{dialogue:g?{character:g,text:V}:V,end:w?.end,choices:m?.choices,glueEnabled:P,goNextStep:h,labelToOpen:y?.labelToOpen,operations:J}}}var a=class a{static init(e){a._loadAssets=e.loadAssets,a._soundOperation=e.soundOperation,a._imageOperation=e.imageOperation,a._videoOperation=e.videoOperation,a._imageContainerOperation=e.imageContainerOperation,a._canvasElementOperation=e.canvasElementOperation,a._setStorageValue=e.setStorageValue,a._inputOperation=e.inputOperation,a._tickerOperation=e.tickerOperation,a._effectOperation=e.effectOperation,a._animateOperation=e.animateOperation,a._getLogichValue=e.getLogichValue,a._getConditionalStep=e.getConditionalStep;}static get loadAssets(){return a._loadAssets}static get soundOperation(){return a._soundOperation}static get imageOperation(){return a._imageOperation}static get videoOperation(){return a._videoOperation}static get imageContainerOperation(){return a._imageContainerOperation}static get canvasElementOperation(){return a._canvasElementOperation}static get setStorageValue(){return a._setStorageValue}static get inputOperation(){return a._inputOperation}static get tickerOperation(){return a._tickerOperation}static get effectOperation(){return a._effectOperation}static get animateOperation(){return a._animateOperation}static get getLogichValue(){return a._getLogichValue}static get getConditionalStep(){return a._getConditionalStep}};f(a,"_loadAssets",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_soundOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_imageOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_videoOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_imageContainerOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_canvasElementOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_setStorageValue",L),f(a,"_inputOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_tickerOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_effectOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_animateOperation",()=>{throw u.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),f(a,"_getLogichValue",s),f(a,"_getConditionalStep",b);var A=a;export{A as JsonUnifier};
|
|
1
|
+
var P=Object.defineProperty;var V=(a,e,s)=>e in a?P(a,e,{enumerable:true,configurable:true,writable:true,value:s}):a[e]=s;var o=(a,e,s)=>V(a,typeof e!="symbol"?e+"":e,s);var t;(p=>(p.log=(n,...r)=>console.log(`[Pixi\u2019VN Json] ${n}`,...r),p.warn=(n,...r)=>console.warn(`[Pixi\u2019VN Json] ${n}`,...r),p.error=(n,...r)=>console.error(`[Pixi\u2019VN Json] ${n}`,...r),p.info=(n,...r)=>console.info(`[Pixi\u2019VN Json] ${n}`,...r)))(t||(t={}));var i=class i{static init(e){i._loadAssets=e.loadAssets,i._soundOperation=e.soundOperation,i._imageOperation=e.imageOperation,i._videoOperation=e.videoOperation,i._imageContainerOperation=e.imageContainerOperation,i._canvasElementOperation=e.canvasElementOperation,i._setStorageValue=e.setStorageValue,i._inputOperation=e.inputOperation,i._tickerOperation=e.tickerOperation,i._effectOperation=e.effectOperation,i._animateOperation=e.animateOperation,i._getLogichValue=e.getLogichValue,i._getConditionalStep=e.getConditionalStep;}static get loadAssets(){return i._loadAssets}static get soundOperation(){return i._soundOperation}static get imageOperation(){return i._imageOperation}static get videoOperation(){return i._videoOperation}static get imageContainerOperation(){return i._imageContainerOperation}static get canvasElementOperation(){return i._canvasElementOperation}static get setStorageValue(){return i._setStorageValue}static get inputOperation(){return i._inputOperation}static get tickerOperation(){return i._tickerOperation}static get effectOperation(){return i._effectOperation}static get animateOperation(){return i._animateOperation}static get getLogichValue(){return i._getLogichValue}static get getConditionalStep(){return i._getConditionalStep}};o(i,"_loadAssets",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_soundOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_imageOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_videoOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_imageContainerOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_canvasElementOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_setStorageValue",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_inputOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_tickerOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_effectOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_animateOperation",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_getLogichValue",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")}),o(i,"_getConditionalStep",()=>{throw t.error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue."),new Error("An error occurred! pixi-vn-json was not initialized. Please contact the Pixi'VN team to report the issue.")});var c=i;export{c as JsonUnifier};
|