@cimplify/sdk 0.109.0 → 0.111.0
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/CHANGELOG.md +54 -0
- package/README.md +18 -0
- package/dist/advanced.d.mts +4 -4
- package/dist/advanced.d.ts +4 -4
- package/dist/advanced.js +22 -22
- package/dist/advanced.mjs +3 -3
- package/dist/{audio-XU2sFNyO.d.mts → audio-DhvyjqdA.d.mts} +2 -2
- package/dist/{audio-8Igdy2WK.d.ts → audio-m0w8cnxq.d.ts} +2 -2
- package/dist/avatars.js +21 -21
- package/dist/avatars.mjs +3 -3
- package/dist/{backend-L4d_Ha0J.d.mts → backend-gUCzs5Kg.d.mts} +16 -2
- package/dist/{backend-L4d_Ha0J.d.ts → backend-gUCzs5Kg.d.ts} +16 -2
- package/dist/{catalogue-DLLsfuNg.d.ts → catalogue-1QcoGDO6.d.ts} +2 -2
- package/dist/{catalogue-BeBFWlHF.d.mts → catalogue-FdFQiWrU.d.mts} +2 -2
- package/dist/{chunk-HF2MZKP2.mjs → chunk-22BD3RHN.mjs} +6 -3
- package/dist/{chunk-B54P6RL2.js → chunk-2AQ237Y4.js} +30 -30
- package/dist/{chunk-W3VVG4NL.js → chunk-2O2CG465.js} +14 -2
- package/dist/{chunk-UPHTPBNQ.mjs → chunk-2QTQ6BUH.mjs} +1 -1
- package/dist/{chunk-BS65NRDW.js → chunk-3S6WPBZL.js} +16 -16
- package/dist/{chunk-PEZYNYJE.js → chunk-3TUOUP5T.js} +3 -3
- package/dist/{chunk-EB6EAOM5.mjs → chunk-3VEH23I5.mjs} +7 -10
- package/dist/{chunk-SYEO2WV4.mjs → chunk-42JTCWIE.mjs} +3 -3
- package/dist/{chunk-FB6YH2WW.js → chunk-4C7I3ELN.js} +4 -4
- package/dist/{chunk-UQYO3OM7.js → chunk-4ZDR72SG.js} +1 -2
- package/dist/{chunk-HPKKCUHU.js → chunk-52YS45RR.js} +13 -13
- package/dist/{chunk-6YVELDFK.mjs → chunk-5BYDGGWO.mjs} +1 -1
- package/dist/{chunk-YN24DET4.js → chunk-5HFMY3D7.js} +10 -10
- package/dist/{chunk-4CVB2ZTC.js → chunk-5LH2QN3T.js} +32 -29
- package/dist/{chunk-4A24F4ZV.mjs → chunk-5YFBGGCK.mjs} +4 -1
- package/dist/{chunk-NLAT3DB2.mjs → chunk-6DAEZKIG.mjs} +1 -1
- package/dist/{chunk-F6CHJXXK.mjs → chunk-6DATW7TB.mjs} +3 -3
- package/dist/{chunk-4RYATNVK.mjs → chunk-6H254EVP.mjs} +6 -11
- package/dist/{chunk-32U4BVJA.mjs → chunk-6PJWXIFX.mjs} +1 -1
- package/dist/{chunk-OMTVH334.js → chunk-6QANXRUM.js} +203 -186
- package/dist/{chunk-BHAGIIBI.js → chunk-6WUBSMTX.js} +82 -85
- package/dist/{chunk-EPYFN2A3.js → chunk-7AAIAVAA.js} +24 -20
- package/dist/{chunk-HZC27ICH.mjs → chunk-7BHW5GTC.mjs} +3 -3
- package/dist/{chunk-MB425DVA.mjs → chunk-7IQQQENP.mjs} +2 -2
- package/dist/{chunk-DJUUL67Z.js → chunk-7KFTYENS.js} +296 -296
- package/dist/{chunk-XLQSNQMP.js → chunk-7SM6XSPZ.js} +339 -339
- package/dist/{chunk-NBH64BDP.mjs → chunk-A33OORT7.mjs} +13 -1
- package/dist/{chunk-G2SXLGFY.js → chunk-A7BU3BK4.js} +7 -7
- package/dist/{chunk-ZNWS7NOW.mjs → chunk-A7V4L2IT.mjs} +2 -2
- package/dist/{chunk-O3SITS4R.mjs → chunk-AGV33FWC.mjs} +4 -4
- package/dist/{chunk-Z2DE3EHS.js → chunk-AHNR3BXI.js} +7 -7
- package/dist/{chunk-UQ4BHMLS.mjs → chunk-AQ5RLBU2.mjs} +5 -5
- package/dist/{chunk-J4HU2YQB.js → chunk-AQOE6WCG.js} +2 -2
- package/dist/{chunk-X57B7VQC.js → chunk-AYJPHKYV.js} +22 -22
- package/dist/{chunk-6XTWY6MH.js → chunk-AZAXD44P.js} +126 -42
- package/dist/{chunk-6ETDAU62.mjs → chunk-B45X3HPO.mjs} +98 -39
- package/dist/{chunk-QDW4EPWS.mjs → chunk-BBGKQIJJ.mjs} +1 -1
- package/dist/{chunk-NHYTO4VU.js → chunk-BP4JLSUA.js} +111 -120
- package/dist/{chunk-7INQVOHY.mjs → chunk-BU6OK542.mjs} +25 -8
- package/dist/{chunk-MKIJQL5Q.js → chunk-CJVEJPIG.js} +69 -69
- package/dist/{chunk-W23VX5MY.js → chunk-CVSRWM6W.js} +5 -5
- package/dist/{chunk-A7DK7QAG.mjs → chunk-CYBMFMJD.mjs} +1 -1
- package/dist/{chunk-BOTUAHP2.mjs → chunk-DS2VU4WW.mjs} +5 -20
- package/dist/{chunk-HMMFNLXZ.js → chunk-DSAG7T5P.js} +2 -2
- package/dist/{chunk-7GG4KNTL.mjs → chunk-E65WCTIG.mjs} +8 -4
- package/dist/{chunk-WXDVEXTW.mjs → chunk-ECDK6QBF.mjs} +1 -1
- package/dist/{chunk-5IRV36MS.mjs → chunk-EIB4OWVQ.mjs} +1 -1
- package/dist/{chunk-JLJ4FD5H.js → chunk-EQUZYCGO.js} +18 -18
- package/dist/{chunk-Q2Y3VMKH.js → chunk-ETZDIISN.js} +151 -151
- package/dist/{chunk-AKTWH3KJ.mjs → chunk-F3UJ6ZRM.mjs} +2 -2
- package/dist/{chunk-J6HRY5EQ.js → chunk-F63N2ZTQ.js} +232 -232
- package/dist/{chunk-MUEFTPNN.js → chunk-FE6VCE4K.js} +34 -34
- package/dist/{chunk-GCKWKLZF.mjs → chunk-FT6GFYJL.mjs} +17 -3
- package/dist/{chunk-2UYTS7SL.mjs → chunk-GCX7TY4D.mjs} +16 -16
- package/dist/{chunk-QDLMIHUH.js → chunk-GDB6TCSD.js} +7 -7
- package/dist/{chunk-7S7LDFGH.js → chunk-GDZT5LZ5.js} +12 -12
- package/dist/{chunk-TB2LS4CE.mjs → chunk-GHS6MIL6.mjs} +7 -11
- package/dist/{chunk-7OHZ56N7.mjs → chunk-GXKI64OT.mjs} +4 -4
- package/dist/{chunk-HRSIIDOZ.js → chunk-H3OQKK6X.js} +41 -41
- package/dist/{chunk-56BM75QX.js → chunk-H5DFSCJ6.js} +2 -2
- package/dist/{chunk-LMK775I4.mjs → chunk-HAGEIC2L.mjs} +1 -1
- package/dist/{chunk-6FZDMICK.js → chunk-HAJ4JRFO.js} +15 -15
- package/dist/{chunk-AWR2G5QN.js → chunk-HDR72GB6.js} +6 -11
- package/dist/{chunk-PTT6KIM6.js → chunk-HSEO6TPU.js} +9 -9
- package/dist/{chunk-CQSA2D2O.js → chunk-I5FOHCLH.js} +4 -31
- package/dist/{chunk-TMFB55IR.js → chunk-J2U6PJSO.js} +3 -30
- package/dist/{chunk-W77VO6LP.js → chunk-J5AJNY2N.js} +13 -13
- package/dist/{chunk-UKA7LHIT.js → chunk-JR3TNEQC.js} +98 -98
- package/dist/{chunk-P2O34BIO.mjs → chunk-JURRXY2J.mjs} +1 -1
- package/dist/{chunk-PKMVOVUA.mjs → chunk-K3HW5I2A.mjs} +1 -1
- package/dist/{chunk-BXUGKBMK.mjs → chunk-KDQOR4QQ.mjs} +1 -14
- package/dist/{chunk-KVZSYGTX.mjs → chunk-KGHJH5KJ.mjs} +1 -1
- package/dist/{chunk-3AKWZF3X.mjs → chunk-KK6HYVBI.mjs} +1 -1
- package/dist/{chunk-K6GK5B5J.js → chunk-KMKWGXMK.js} +6 -6
- package/dist/{chunk-EH4UG7IL.mjs → chunk-KU7O4IXU.mjs} +4 -4
- package/dist/{chunk-IHRMR3WV.mjs → chunk-KVFNRJOR.mjs} +9 -9
- package/dist/{chunk-A36JRXXH.mjs → chunk-KWZHIPRN.mjs} +26 -9
- package/dist/{chunk-HBZQ5HSV.mjs → chunk-LIV3KXJG.mjs} +1 -1
- package/dist/{chunk-S75PBSSL.mjs → chunk-ME6HGG4I.mjs} +92 -8
- package/dist/{chunk-SNNEOS5Z.js → chunk-MHDUUSG6.js} +75 -75
- package/dist/{chunk-FKYZCXFM.js → chunk-MIPO6F72.js} +3 -3
- package/dist/{chunk-MFWIHTEN.js → chunk-MTIHEW2M.js} +5 -5
- package/dist/{chunk-UCR5HRYM.js → chunk-NFXCKTE2.js} +17 -3
- package/dist/{chunk-M53GR3ZV.mjs → chunk-NHJUGZUR.mjs} +43 -5
- package/dist/{chunk-FAYK2MN6.js → chunk-NZTKLY2W.js} +14 -18
- package/dist/{chunk-EQW6PFC2.js → chunk-O2ICABUD.js} +2 -2
- package/dist/{chunk-5PW6DVHF.js → chunk-OIVVQQ22.js} +55 -37
- package/dist/{chunk-GBJ5CW3A.js → chunk-PKOZXD2Q.js} +30 -30
- package/dist/{chunk-NGN3JE5A.js → chunk-PQTQKNKD.js} +16 -7
- package/dist/{chunk-DFZWHNRG.js → chunk-QOCHWR4V.js} +105 -42
- package/dist/{chunk-PCVVQNBD.js → chunk-QS6TRHMR.js} +5 -5
- package/dist/{chunk-DXZZ27CV.js → chunk-RKBLPGPV.js} +245 -207
- package/dist/{chunk-765P2G7G.mjs → chunk-RUVGVNOF.mjs} +1 -1
- package/dist/{chunk-NJ7ZWH4U.mjs → chunk-SAFJIGYB.mjs} +1 -1
- package/dist/{chunk-AOPH2IZV.js → chunk-SKQFLBDD.js} +60 -22
- package/dist/{chunk-BUUA5XJV.js → chunk-TWM6DLYF.js} +2 -2
- package/dist/{chunk-YPL5TKI4.mjs → chunk-U6UVWEAK.mjs} +1 -1
- package/dist/{chunk-6YQDHXPL.mjs → chunk-UCEPNO6N.mjs} +46 -9
- package/dist/{chunk-U7RULAEP.mjs → chunk-UG5BTOTF.mjs} +2 -2
- package/dist/{chunk-MITGBWV7.mjs → chunk-UGH37BQW.mjs} +1 -1
- package/dist/{chunk-IZDWAL53.mjs → chunk-UJDQQTBS.mjs} +8 -8
- package/dist/{chunk-URRZ2SMI.mjs → chunk-V7ZRH3PY.mjs} +2 -2
- package/dist/{chunk-3H76N7G5.mjs → chunk-VBGHBL3E.mjs} +8 -17
- package/dist/{chunk-AZC2LTUI.js → chunk-VVE3Y76O.js} +2 -2
- package/dist/{chunk-BRAA7U3I.mjs → chunk-W65JIRI4.mjs} +1 -1
- package/dist/{chunk-KU4EDEKA.js → chunk-WKWTDZS7.js} +9 -9
- package/dist/{chunk-BTUSVHIE.mjs → chunk-WLSU5QJT.mjs} +2 -2
- package/dist/{chunk-NTTHAXHI.js → chunk-X5A5FOWW.js} +11 -8
- package/dist/{chunk-ODL55PYL.mjs → chunk-XD2PMH46.mjs} +16 -7
- package/dist/{chunk-OADW5BSV.js → chunk-XK6UDWJS.js} +2 -2
- package/dist/{chunk-7ZTEVNXO.mjs → chunk-Y65LXQGA.mjs} +8 -8
- package/dist/{chunk-Z3PGQRTX.mjs → chunk-Y66WVMO5.mjs} +3 -30
- package/dist/{chunk-VZAJDN5C.mjs → chunk-Y7JWLB25.mjs} +1 -1
- package/dist/{chunk-ZJGPD42I.js → chunk-YCDXAJKU.js} +3 -3
- package/dist/{chunk-NCTLCSLE.mjs → chunk-Z3A3AFVU.mjs} +1 -1
- package/dist/{chunk-AEEF3T2E.mjs → chunk-ZCY6YKKP.mjs} +3 -3
- package/dist/{chunk-M5FWHML6.js → chunk-ZMIL4ZOA.js} +5 -18
- package/dist/{chunk-D3JMTFOX.mjs → chunk-ZR5ULMN2.mjs} +1 -1
- package/dist/{client-C9hsiaki.d.ts → client-CChON4-x.d.ts} +2 -2
- package/dist/{client-CO8lw80Q.d.mts → client-EeuGm5gj.d.mts} +2 -2
- package/dist/{courier-CJasuxTU.d.ts → courier-Cnn-edJ4.d.ts} +5 -5
- package/dist/{courier-C2Vo2VlH.d.mts → courier-FmGfkvIN.d.mts} +5 -5
- package/dist/{crowd-D1ljcic8.d.ts → crowd-DdHFbqKK.d.ts} +1 -1
- package/dist/{crowd-B37S1apB.d.mts → crowd-hOVSAmA3.d.mts} +1 -1
- package/dist/{danfo-BsaPzhGi.d.mts → danfo-BEBapFlX.d.mts} +3 -3
- package/dist/{danfo-CCv23CPy.d.ts → danfo-UQ_PTIIx.d.ts} +3 -3
- package/dist/{elements-Bsfk7CPw.d.ts → elements-ss9xZgRg.d.mts} +47 -1
- package/dist/{elements-Bsfk7CPw.d.mts → elements-ss9xZgRg.d.ts} +47 -1
- package/dist/engines/godot.d.mts +1 -1
- package/dist/engines/godot.d.ts +1 -1
- package/dist/engines/wasm.d.mts +1 -1
- package/dist/engines/wasm.d.ts +1 -1
- package/dist/fallback-KDB4Y2CE.mjs +6 -0
- package/dist/fallback-Y26TQENE.js +19 -0
- package/dist/{five-a-side-DP84gMuh.d.mts → five-a-side-Bv1AOUy3.d.mts} +4 -4
- package/dist/{five-a-side-DO8SDqMb.d.ts → five-a-side-EC51SJY1.d.ts} +4 -4
- package/dist/{fluid-BkxNBD2t.d.ts → fluid-ARr0qUIL.d.ts} +168 -4
- package/dist/{fluid-BZ42EMds.d.mts → fluid-DLlEj2cs.d.mts} +168 -4
- package/dist/game/conformance.d.mts +7 -7
- package/dist/game/conformance.d.ts +7 -7
- package/dist/game/conformance.js +39 -41
- package/dist/game/conformance.mjs +17 -19
- package/dist/game/heap.d.mts +3 -3
- package/dist/game/heap.d.ts +3 -3
- package/dist/game/heap.js +13 -15
- package/dist/game/heap.mjs +4 -6
- package/dist/game/kit/canvas.d.mts +33 -34
- package/dist/game/kit/canvas.d.ts +33 -34
- package/dist/game/kit/canvas.js +569 -570
- package/dist/game/kit/canvas.mjs +52 -53
- package/dist/game/kit/courier.d.mts +9 -9
- package/dist/game/kit/courier.d.ts +9 -9
- package/dist/game/kit/courier.js +20 -20
- package/dist/game/kit/courier.mjs +17 -17
- package/dist/game/kit/danfo.d.mts +7 -7
- package/dist/game/kit/danfo.d.ts +7 -7
- package/dist/game/kit/danfo.js +30 -30
- package/dist/game/kit/danfo.mjs +15 -15
- package/dist/game/kit/engine.d.mts +12 -12
- package/dist/game/kit/engine.d.ts +12 -12
- package/dist/game/kit/engine.js +40 -41
- package/dist/game/kit/engine.mjs +11 -12
- package/dist/game/kit/five-a-side.d.mts +7 -7
- package/dist/game/kit/five-a-side.d.ts +7 -7
- package/dist/game/kit/five-a-side.js +24 -24
- package/dist/game/kit/five-a-side.mjs +14 -14
- package/dist/game/kit/frontier.d.mts +7 -7
- package/dist/game/kit/frontier.d.ts +7 -7
- package/dist/game/kit/genesis.d.mts +7 -7
- package/dist/game/kit/genesis.d.ts +7 -7
- package/dist/game/kit/ludo.d.mts +8 -8
- package/dist/game/kit/ludo.d.ts +8 -8
- package/dist/game/kit/ludo.js +24 -24
- package/dist/game/kit/ludo.mjs +14 -14
- package/dist/game/kit/runner.d.mts +8 -8
- package/dist/game/kit/runner.d.ts +8 -8
- package/dist/game/kit/runner.js +22 -22
- package/dist/game/kit/runner.mjs +14 -14
- package/dist/game/kit/shootout.d.mts +9 -9
- package/dist/game/kit/shootout.d.ts +9 -9
- package/dist/game/kit/shootout.js +33 -34
- package/dist/game/kit/shootout.mjs +18 -19
- package/dist/game/kit/tycoon.d.mts +9 -9
- package/dist/game/kit/tycoon.d.ts +9 -9
- package/dist/game/kit/tycoon.js +38 -38
- package/dist/game/kit/tycoon.mjs +14 -14
- package/dist/game/kit/word.d.mts +7 -7
- package/dist/game/kit/word.d.ts +7 -7
- package/dist/game/kit/word.js +22 -22
- package/dist/game/kit/word.mjs +14 -14
- package/dist/game/kit/worlds.d.mts +10 -10
- package/dist/game/kit/worlds.d.ts +10 -10
- package/dist/game/kit/worlds.js +22 -22
- package/dist/game/kit/worlds.mjs +17 -17
- package/dist/game/kit.d.mts +31 -32
- package/dist/game/kit.d.ts +31 -32
- package/dist/game/kit.js +523 -524
- package/dist/game/kit.mjs +38 -39
- package/dist/game/prepared.d.mts +6 -7
- package/dist/game/prepared.d.ts +6 -7
- package/dist/game/prepared.js +23 -24
- package/dist/game/prepared.mjs +12 -13
- package/dist/{game-BZAfgKV6.d.mts → game-Bx8onkhX.d.mts} +5 -97
- package/dist/{game-UoJWopvD.d.ts → game-fgQy2YIm.d.ts} +5 -97
- package/dist/game.d.mts +56 -18
- package/dist/game.d.ts +56 -18
- package/dist/game.js +922 -927
- package/dist/game.mjs +16 -17
- package/dist/{graphics-DNIAV5Mi.d.ts → graphics-C6YjWYvP.d.ts} +1 -1
- package/dist/{graphics-CGJDdtdT.d.mts → graphics-Dk2yQnYN.d.mts} +1 -1
- package/dist/{guest-CMCZeyh5.d.mts → guest-DrsA00XD.d.mts} +2 -7
- package/dist/{guest-CB458Hgw.d.ts → guest-wIdfoT05.d.ts} +2 -7
- package/dist/{hit-stop-D2Ca-i9-.d.mts → hit-stop-BKkVwTq7.d.mts} +1 -1
- package/dist/{hit-stop-Ca1OYk15.d.ts → hit-stop-D-8pPYnM.d.ts} +1 -1
- package/dist/{hot-B9BTmDz6.d.ts → hot-Crn9XpHJ.d.ts} +1 -1
- package/dist/{hot-B_L-GEHZ.d.mts → hot-DH3nOhQD.d.mts} +1 -1
- package/dist/{index-DPeyo938.d.ts → index-B8ybCKJI.d.ts} +3 -3
- package/dist/index-BB2gjVvA.d.mts +153 -0
- package/dist/index-BEfmBDAH.d.ts +153 -0
- package/dist/{index-D8ZDzms9.d.mts → index-DHjNHb1c.d.mts} +3 -3
- package/dist/{index-DFDeJxFQ.d.ts → index-DQK8sTfu.d.ts} +2 -2
- package/dist/{index-C76o9Pj4.d.mts → index-DSVkhRmW.d.mts} +2 -2
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +189 -177
- package/dist/index.mjs +8 -8
- package/dist/interactives-authoring.js +12 -1
- package/dist/interactives-authoring.mjs +12 -1
- package/dist/interactives-canvas.global.js +14 -39
- package/dist/interactives-guest.d.mts +2 -2
- package/dist/interactives-guest.d.ts +2 -2
- package/dist/interactives-guest.js +10 -10
- package/dist/interactives-guest.mjs +6 -6
- package/dist/interactives-jsc.global.js +4 -23
- package/dist/interactives-meters.d.mts +11 -11
- package/dist/interactives-meters.d.ts +11 -11
- package/dist/interactives-meters.js +65 -66
- package/dist/interactives-meters.mjs +17 -18
- package/dist/interactives-production.d.mts +5 -5
- package/dist/interactives-production.d.ts +5 -5
- package/dist/interactives-production.js +15 -16
- package/dist/interactives-production.mjs +3 -4
- package/dist/interactives-record.d.mts +3 -9
- package/dist/interactives-record.d.ts +3 -9
- package/dist/interactives-record.js +45 -65
- package/dist/interactives-record.mjs +19 -39
- package/dist/interactives-runtime.d.mts +3 -3
- package/dist/interactives-runtime.d.ts +3 -3
- package/dist/interactives-runtime.js +101 -105
- package/dist/interactives-runtime.mjs +6 -6
- package/dist/interactives-studio-kernel.global.js +1 -1
- package/dist/interactives-studio.d.mts +7 -7
- package/dist/interactives-studio.d.ts +7 -7
- package/dist/interactives-studio.js +136 -82
- package/dist/interactives-studio.mjs +65 -11
- package/dist/interactives-web.d.mts +14 -14
- package/dist/interactives-web.d.ts +14 -14
- package/dist/interactives-web.js +201 -198
- package/dist/interactives-web.mjs +33 -34
- package/dist/interactives.d.mts +7 -28
- package/dist/interactives.d.ts +7 -28
- package/dist/interactives.js +267 -313
- package/dist/interactives.mjs +26 -24
- package/dist/{juice-Dfgc1B1q.d.ts → juice-CoHxlpKA.d.ts} +1 -1
- package/dist/{juice-CsnrmTOk.d.mts → juice-DQztFS43.d.mts} +1 -1
- package/dist/{launch-CCsmv8HC.d.mts → launch-T2f4_Di4.d.mts} +6 -6
- package/dist/{launch-8W_Tojpz.d.ts → launch-d6oreMzR.d.ts} +6 -6
- package/dist/{local-DA_HpPOj.d.mts → local-D8_I6UeL.d.mts} +0 -5
- package/dist/{local-_mD0x-p_.d.ts → local-VZkqsCzR.d.ts} +0 -5
- package/dist/{ludo-BVHycBP-.d.ts → ludo-B8ClkDqr.d.ts} +4 -4
- package/dist/{ludo-BRaTcI3E.d.mts → ludo-BOuohQ-M.d.mts} +4 -4
- package/dist/mock/cli.mjs +25 -10
- package/dist/mock/library.js +25 -10
- package/dist/mock/library.mjs +25 -10
- package/dist/mock/msw.js +25 -10
- package/dist/mock/msw.mjs +25 -10
- package/dist/{native-CcMUV7rL.d.mts → native-BodxSh03.d.mts} +2 -2
- package/dist/{native-3f4Ht82c.d.ts → native-DUHMT8gA.d.ts} +2 -2
- package/dist/{online-CCy8pwOn.d.ts → online-XeymeM9s.d.ts} +1 -1
- package/dist/{online-smW2BO3Y.d.mts → online-d7W_Al9a.d.mts} +1 -1
- package/dist/{play-BhHHX1jD.d.ts → play-BRRlfLhX.d.ts} +5 -5
- package/dist/{play-Bn7NfGNE.d.mts → play-ClrMd_e8.d.mts} +5 -5
- package/dist/{policy-Dvnzg8ki.d.mts → policy-CCw8tXLm.d.mts} +19 -19
- package/dist/{policy-b3MVXMQu.d.ts → policy-CMqOSQIu.d.ts} +19 -19
- package/dist/{ports-CNeZdgVm.d.mts → ports-B_0v_P3A.d.mts} +1 -1
- package/dist/{ports-Vno6MDaR.d.ts → ports-CGU_3e_0.d.ts} +1 -1
- package/dist/{prefetch-BFg6lJyD.d.ts → prefetch-BHnicOQj.d.ts} +3 -3
- package/dist/{prefetch-BOoKX3qx.d.mts → prefetch-CBXgYacv.d.mts} +3 -3
- package/dist/{price-BIKJla_G.d.mts → price-B-w4PwHm.d.mts} +1 -1
- package/dist/{price-D1gE7Ek6.d.ts → price-BEvQFNJv.d.ts} +1 -1
- package/dist/react.d.mts +35 -27
- package/dist/react.d.ts +35 -27
- package/dist/react.js +276 -248
- package/dist/react.mjs +147 -119
- package/dist/{runner-BAG8EglP.d.ts → runner-CQcLL7By.d.ts} +6 -6
- package/dist/{runner-CKtKtIzc.d.mts → runner-D46Yj-wE.d.mts} +6 -6
- package/dist/{runtime-DfZp1Kwg.d.mts → runtime-BRWfkf_q.d.mts} +1 -8
- package/dist/{runtime-yHPgIJV-.d.ts → runtime-DyuBMkKM.d.ts} +1 -8
- package/dist/{scheduling-CnRAhWQL.d.ts → scheduling-D9WwOxbo.d.ts} +1 -1
- package/dist/{scheduling-lHyYoCa7.d.mts → scheduling-DDmrYCr-.d.mts} +1 -1
- package/dist/{server-DxcxjER1.d.ts → server-BiKwxvnf.d.ts} +2 -2
- package/dist/{server-lU3Sznd4.d.mts → server-DPdtl2dd.d.mts} +2 -2
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +10 -10
- package/dist/server.mjs +4 -4
- package/dist/{shootout-rK-oblpb.d.ts → shootout-BJZeX6FG.d.ts} +6 -6
- package/dist/{shootout-D998OWa-.d.mts → shootout-tcZd1Rxt.d.mts} +6 -6
- package/dist/styles.css +1 -1
- package/dist/{template-Byaueo34.d.mts → template-AhCdB1kW.d.mts} +3 -3
- package/dist/{template-BXE2L654.d.ts → template-BkEGVTQj.d.ts} +3 -3
- package/dist/{terrain-vgYkJPNx.d.ts → terrain-BMxEc6Oc.d.ts} +3 -3
- package/dist/{terrain-CR0NQZPl.d.mts → terrain-C-XC1Oui.d.mts} +3 -3
- package/dist/testing/msw.d.mts +3 -3
- package/dist/testing/msw.d.ts +3 -3
- package/dist/testing/msw.js +3 -3
- package/dist/testing/msw.mjs +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +25 -25
- package/dist/testing/suite.mjs +6 -6
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +117 -117
- package/dist/testing.mjs +7 -7
- package/dist/{tick-transport-Q_8syS8J.d.mts → tick-transport-C8QEh8Uw.d.mts} +1 -1
- package/dist/{tick-transport-xpMcMTs2.d.ts → tick-transport-UjHY3xK1.d.ts} +1 -1
- package/dist/{tree-BsXFWKQ6.d.mts → tree-C-Io2Hbx.d.mts} +1 -1
- package/dist/{tree-DW9x29Vv.d.ts → tree-CP_qSW4H.d.ts} +1 -1
- package/dist/{tycoon-BMAE5Wea.d.mts → tycoon-B5KHk2Xx.d.mts} +5 -5
- package/dist/{tycoon-dWvWTbE4.d.ts → tycoon-hmHo-3HX.d.ts} +5 -5
- package/dist/{types-AkQEePZo.d.mts → types-BQkxPwZP.d.mts} +1 -1
- package/dist/{types-BWaZJDla.d.ts → types-D_f6UUxM.d.ts} +1 -1
- package/dist/utils.d.mts +3 -3
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +44 -32
- package/dist/utils.mjs +2 -2
- package/dist/{weave-delivery-3G03LdMM.d.mts → weave-delivery-CW-Kstut.d.mts} +10 -1
- package/dist/{weave-delivery-3G03LdMM.d.ts → weave-delivery-CW-Kstut.d.ts} +10 -1
- package/dist/{web-C8B9uVx_.d.ts → web-Dss74a7v.d.ts} +7 -7
- package/dist/{web-BqSEfX2o.d.mts → web-f9ZQPoyw.d.mts} +7 -7
- package/dist/{weight-BDABC8cN.d.ts → weight-CPGjsgjV.d.ts} +3 -3
- package/dist/{weight-Cee73u3d.d.mts → weight-tF1ODR1p.d.mts} +3 -3
- package/dist/{word-DB2CcI9q.d.mts → word-BcX9Jcmv.d.mts} +3 -3
- package/dist/{word-C1Q8oXuy.d.ts → word-C7sVPLHm.d.ts} +3 -3
- package/dist/{world-Bmh7K4tQ.d.ts → world-PvILHDR1.d.ts} +1 -1
- package/dist/{world-CPEjuctH.d.mts → world-qekkXjJv.d.mts} +1 -1
- package/dist/{worlds-ShY5h6Z_.d.ts → worlds-Br2Pb0Cs.d.ts} +6 -6
- package/dist/{worlds-CQgN3GnR.d.mts → worlds-D5ydYr7d.d.mts} +6 -6
- package/package.json +5 -3
- package/registry/cart-summary.json +1 -1
- package/registry/chat-widget.json +1 -1
- package/registry/price.json +1 -1
- package/registry/product-customizer.json +1 -1
- package/registry/search-input.json +1 -1
- package/dist/chunk-2LKAOU3L.mjs +0 -96
- package/dist/chunk-UWPQL2IQ.js +0 -104
- package/dist/fallback-Q5YYIMVJ.js +0 -20
- package/dist/fallback-XGBE3RXC.mjs +0 -7
- package/dist/index-C3KORE2U.d.mts +0 -86
- package/dist/index-Cv_rL5X0.d.ts +0 -86
- package/dist/split-Di9wBpNx.d.mts +0 -68
- package/dist/split-Di9wBpNx.d.ts +0 -68
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkZXREOYOW_js = require('./chunk-ZXREOYOW.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkGDZT5LZ5_js = require('./chunk-GDZT5LZ5.js');
|
|
5
|
+
var chunkZMIL4ZOA_js = require('./chunk-ZMIL4ZOA.js');
|
|
6
6
|
var chunkQQABGCMM_js = require('./chunk-QQABGCMM.js');
|
|
7
|
-
var
|
|
7
|
+
var chunkXK6UDWJS_js = require('./chunk-XK6UDWJS.js');
|
|
8
8
|
var chunkT7LOXGYX_js = require('./chunk-T7LOXGYX.js');
|
|
9
9
|
var chunkE2QPPH7I_js = require('./chunk-E2QPPH7I.js');
|
|
10
10
|
var chunkOLWFPDBK_js = require('./chunk-OLWFPDBK.js');
|
|
11
|
+
var chunkI5FOHCLH_js = require('./chunk-I5FOHCLH.js');
|
|
11
12
|
var chunkTJI3K6RP_js = require('./chunk-TJI3K6RP.js');
|
|
12
|
-
var chunkCQSA2D2O_js = require('./chunk-CQSA2D2O.js');
|
|
13
13
|
var chunk66QP3SMN_js = require('./chunk-66QP3SMN.js');
|
|
14
14
|
var chunkWWKMOA76_js = require('./chunk-WWKMOA76.js');
|
|
15
|
-
var
|
|
15
|
+
var chunk4ZDR72SG_js = require('./chunk-4ZDR72SG.js');
|
|
16
16
|
var chunkT6Z2EXYL_js = require('./chunk-T6Z2EXYL.js');
|
|
17
17
|
var chunkJ2KZXIU3_js = require('./chunk-J2KZXIU3.js');
|
|
18
18
|
var chunkPTRNO5UD_js = require('./chunk-PTRNO5UD.js');
|
|
@@ -37,7 +37,7 @@ function deliver(route, slot, message, view) {
|
|
|
37
37
|
var FrameLane = class {
|
|
38
38
|
constructor(bridge) {
|
|
39
39
|
this.bridge = bridge;
|
|
40
|
-
this.length =
|
|
40
|
+
this.length = chunk4ZDR72SG_js.TAG_BYTES;
|
|
41
41
|
this.scheduled = false;
|
|
42
42
|
this.channel = { flags: 0, slot: 0, sequence: 0, sender: 0, payload_offset: 0, payload_length: 0 };
|
|
43
43
|
this.roomInput = {
|
|
@@ -76,9 +76,9 @@ var FrameLane = class {
|
|
|
76
76
|
this.presenceTicks = /* @__PURE__ */ new Map();
|
|
77
77
|
this.faults = new Uint32Array((16));
|
|
78
78
|
this.flush = () => {
|
|
79
|
-
this.scheduled = false, this.length !==
|
|
79
|
+
this.scheduled = false, this.length !== chunk4ZDR72SG_js.TAG_BYTES && (this.bridge.send(this.out, this.length), this.length = chunk4ZDR72SG_js.TAG_BYTES);
|
|
80
80
|
};
|
|
81
|
-
this.out = new Uint8Array(
|
|
81
|
+
this.out = new Uint8Array(chunk4ZDR72SG_js.BRIDGE_LIMITS.frame_outbox_bytes), this.out[0] = chunk4ZDR72SG_js.MessageTag.frames, this.view = new DataView(this.out.buffer);
|
|
82
82
|
}
|
|
83
83
|
reserve(bytes) {
|
|
84
84
|
return this.length + bytes > this.out.length && this.flush(), this.scheduled || (this.scheduled = true, queueMicrotask(this.flush)), this.length;
|
|
@@ -87,7 +87,7 @@ var FrameLane = class {
|
|
|
87
87
|
return written > 0 && (this.length += written), written;
|
|
88
88
|
}
|
|
89
89
|
receive(bytes) {
|
|
90
|
-
let view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength), end = bytes.byteLength, offset =
|
|
90
|
+
let view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength), end = bytes.byteLength, offset = chunk4ZDR72SG_js.TAG_BYTES;
|
|
91
91
|
for (; offset < end; ) {
|
|
92
92
|
let code = chunk66QP3SMN_js.peekFrameCode(view, offset, end), total = chunk66QP3SMN_js.frameLength(view, offset, end);
|
|
93
93
|
if (code < 0 || total < 0) {
|
|
@@ -442,17 +442,17 @@ function createGuestCtx(core, profile = null) {
|
|
|
442
442
|
}, gameUi = null, ui = {
|
|
443
443
|
game: (options) => {
|
|
444
444
|
if (gameUi !== null) return gameUi;
|
|
445
|
-
let assets = profile?.assets, packaged = assets?.has?.(
|
|
445
|
+
let assets = profile?.assets, packaged = assets?.has?.(chunkI5FOHCLH_js.TEXT_DICTIONARIES_ASSET) === true, created = new chunkOLWFPDBK_js.GameUi(
|
|
446
446
|
{ submit: (bytes, length) => core.game_ui(bytes, length) },
|
|
447
|
-
{ ...options, reserve:
|
|
447
|
+
{ ...options, reserve: chunk4ZDR72SG_js.TAG_BYTES, dictionaries: options?.dictionaries ?? packaged }
|
|
448
448
|
);
|
|
449
|
-
return packaged && assets !== void 0 && chunkT6Z2EXYL_js.breakDictionaries() === null && assets.take(
|
|
449
|
+
return packaged && assets !== void 0 && chunkT6Z2EXYL_js.breakDictionaries() === null && assets.take(chunkI5FOHCLH_js.TEXT_DICTIONARIES_ASSET).then(
|
|
450
450
|
(bytes) => {
|
|
451
451
|
chunkT6Z2EXYL_js.registerBreakDictionaries(bytes.slice().buffer);
|
|
452
452
|
},
|
|
453
453
|
() => {
|
|
454
454
|
}
|
|
455
|
-
), core.on_game_ui((bytes) => created.dispatch(bytes,
|
|
455
|
+
), core.on_game_ui((bytes) => created.dispatch(bytes, chunk4ZDR72SG_js.TAG_BYTES)), gameUi = created, created;
|
|
456
456
|
},
|
|
457
457
|
render: (tree) => core.render(tree),
|
|
458
458
|
present: (mode) => core.command({ kind: "present", mode }, true).then(() => {
|
|
@@ -965,10 +965,10 @@ function remove(list, item) {
|
|
|
965
965
|
let at = list.indexOf(item);
|
|
966
966
|
at >= 0 && list.splice(at, 1);
|
|
967
967
|
}
|
|
968
|
-
var
|
|
968
|
+
var GuestRuntime = class {
|
|
969
969
|
constructor(options) {
|
|
970
970
|
this.options = options;
|
|
971
|
-
this.writer = new
|
|
971
|
+
this.writer = new chunk4ZDR72SG_js.MessageWriter();
|
|
972
972
|
this.pending = /* @__PURE__ */ new Map();
|
|
973
973
|
this.subscriptions = /* @__PURE__ */ new Map();
|
|
974
974
|
this.families = /* @__PURE__ */ new Map();
|
|
@@ -979,10 +979,10 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
979
979
|
this.disposers = [];
|
|
980
980
|
this.replayListeners = [];
|
|
981
981
|
this.heldReplay = null;
|
|
982
|
-
this.differ = new
|
|
983
|
-
this.pong = new Uint8Array(
|
|
984
|
-
this.milestoneMessage = new Uint8Array(
|
|
985
|
-
this.completeMessage = new Uint8Array(
|
|
982
|
+
this.differ = new chunkGDZT5LZ5_js.TreeDiffer();
|
|
983
|
+
this.pong = new Uint8Array(chunk4ZDR72SG_js.PONG_BYTES);
|
|
984
|
+
this.milestoneMessage = new Uint8Array(chunk4ZDR72SG_js.MILESTONE_BYTES);
|
|
985
|
+
this.completeMessage = new Uint8Array(chunk4ZDR72SG_js.SESSION_COMPLETE_BYTES);
|
|
986
986
|
this.reached = /* @__PURE__ */ new Set();
|
|
987
987
|
this.pongView = new DataView(this.pong.buffer);
|
|
988
988
|
this.boot = null;
|
|
@@ -992,23 +992,23 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
992
992
|
this.sliceReported = false;
|
|
993
993
|
this.arriving = [];
|
|
994
994
|
this.wanted = /* @__PURE__ */ new Map();
|
|
995
|
-
this.requested = new
|
|
996
|
-
this.released = new
|
|
995
|
+
this.requested = new chunk4ZDR72SG_js.ChunkBatch(chunk4ZDR72SG_js.MessageTag.chunk_request, chunk4ZDR72SG_js.CHUNK_REQUEST_ENTRY_BYTES);
|
|
996
|
+
this.released = new chunk4ZDR72SG_js.ChunkBatch(chunk4ZDR72SG_js.MessageTag.chunk_release, chunk4ZDR72SG_js.CHUNK_RELEASE_ENTRY_BYTES);
|
|
997
997
|
this.chunkFlushQueued = false;
|
|
998
|
-
this.studioIn = new
|
|
999
|
-
this.studioOut = new
|
|
998
|
+
this.studioIn = new chunkXK6UDWJS_js.StudioAssembler();
|
|
999
|
+
this.studioOut = new chunkXK6UDWJS_js.StudioSender(chunk4ZDR72SG_js.MessageTag.studio_report, (frame) => this.bridge.send(frame, frame.length));
|
|
1000
1000
|
this.flushChunks = () => {
|
|
1001
1001
|
this.chunkFlushQueued = false, this.released.size > 0 && this.bridge.send(this.released.bytes, this.released.seal()), this.requested.size > 0 && this.bridge.send(this.requested.bytes, this.requested.seal());
|
|
1002
1002
|
};
|
|
1003
1003
|
this.chunkChannel = {
|
|
1004
1004
|
request: (digest, priority) => this.queueChunk(this.requested, digest, priority),
|
|
1005
|
-
release: (digest) => this.queueChunk(this.released, digest,
|
|
1005
|
+
release: (digest) => this.queueChunk(this.released, digest, chunk4ZDR72SG_js.ChunkPriority.now)
|
|
1006
1006
|
};
|
|
1007
1007
|
this.starting = false;
|
|
1008
1008
|
this.startTimer = void 0;
|
|
1009
1009
|
this.stopTimer = void 0;
|
|
1010
1010
|
this.lifecycle = lifecycleOf(this);
|
|
1011
|
-
this.bridge = options.bridge, this.services = options.services, this.assembler = new
|
|
1011
|
+
this.bridge = options.bridge, this.services = options.services, this.assembler = new chunkZMIL4ZOA_js.PackageAssembler(options.on_runtime_wasm ?? null, options.native_runtimes ?? null, options.assets ?? null), this.lane = new FrameLane(this.bridge), this.bridge.on_message((bytes) => this.receive(bytes)), chunkXK6UDWJS_js.reportMetersTo((live) => this.send(this.writer.json(chunk4ZDR72SG_js.MessageTag.meter_report, live)), options.heap_bytes ?? null), this.pong[0] = chunk4ZDR72SG_js.MessageTag.pong, this.send(this.writer.tag(chunk4ZDR72SG_js.MessageTag.ready));
|
|
1012
1012
|
}
|
|
1013
1013
|
get program() {
|
|
1014
1014
|
return this.boot.program;
|
|
@@ -1026,16 +1026,13 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1026
1026
|
let list = this.lifecycleListeners.get(event) ?? [];
|
|
1027
1027
|
return list.push(listener), this.lifecycleListeners.set(event, list), () => remove(list, listener);
|
|
1028
1028
|
}
|
|
1029
|
-
needRuntime(unit, priority =
|
|
1029
|
+
needRuntime(unit, priority = chunk4ZDR72SG_js.ChunkPriority.now) {
|
|
1030
1030
|
let digest = this.assembler.lateRuntime(unit);
|
|
1031
1031
|
return digest === null || this.assembler.holdsWasm(digest) ? false : (this.queueChunk(this.requested, digest, priority), true);
|
|
1032
1032
|
}
|
|
1033
1033
|
mark(name) {
|
|
1034
|
-
let code =
|
|
1035
|
-
|
|
1036
|
-
if (this.reached.add(code), name === FIRST_FRAME_MILESTONE) for (let rest of this.assembler.heldCoreRests()) this.needRuntime(rest, chunkUQYO3OM7_js.ChunkPriority.soon);
|
|
1037
|
-
this.milestoneMessage[0] = chunkUQYO3OM7_js.MessageTag.milestone, this.milestoneMessage[1] = code, this.bridge.send(this.milestoneMessage, chunkUQYO3OM7_js.MILESTONE_BYTES);
|
|
1038
|
-
}
|
|
1034
|
+
let code = chunk4ZDR72SG_js.Milestone[name];
|
|
1035
|
+
this.reached.has(code) || (this.reached.add(code), this.milestoneMessage[0] = chunk4ZDR72SG_js.MessageTag.milestone, this.milestoneMessage[1] = code, this.bridge.send(this.milestoneMessage, chunk4ZDR72SG_js.MILESTONE_BYTES));
|
|
1039
1036
|
}
|
|
1040
1037
|
send(length) {
|
|
1041
1038
|
this.bridge.send(this.writer.bytes, length);
|
|
@@ -1050,7 +1047,7 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1050
1047
|
message: describe(error, phase),
|
|
1051
1048
|
stack: error instanceof Error && typeof error.stack == "string" ? error.stack : null
|
|
1052
1049
|
};
|
|
1053
|
-
this.send(this.writer.json(
|
|
1050
|
+
this.send(this.writer.json(chunk4ZDR72SG_js.MessageTag.fault, fault));
|
|
1054
1051
|
}
|
|
1055
1052
|
call(operation, request) {
|
|
1056
1053
|
let boot = this.boot, request_id = `g${this.nextRequest++}`, envelope = {
|
|
@@ -1065,7 +1062,7 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1065
1062
|
let startTimer = this.startTimer;
|
|
1066
1063
|
return new Promise((resolve, reject) => {
|
|
1067
1064
|
let timer = startTimer === null ? null : startTimer(() => this.expire(request_id, family), deadline);
|
|
1068
|
-
this.pending.set(request_id, { resolve, reject, timer }), this.send(this.writer.json(
|
|
1065
|
+
this.pending.set(request_id, { resolve, reject, timer }), this.send(this.writer.json(chunk4ZDR72SG_js.MessageTag.request, envelope));
|
|
1069
1066
|
});
|
|
1070
1067
|
}
|
|
1071
1068
|
expire(request_id, family) {
|
|
@@ -1088,23 +1085,23 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1088
1085
|
if (this.state !== "disposed")
|
|
1089
1086
|
try {
|
|
1090
1087
|
let patches = this.differ.diff(tree);
|
|
1091
|
-
patches.length > 0 && this.send(this.writer.json(
|
|
1088
|
+
patches.length > 0 && this.send(this.writer.json(chunk4ZDR72SG_js.MessageTag.render, patches));
|
|
1092
1089
|
} catch (error) {
|
|
1093
1090
|
this.fault("render", error);
|
|
1094
1091
|
}
|
|
1095
1092
|
}
|
|
1096
1093
|
command(command, awaited) {
|
|
1097
1094
|
let id = awaited ? ++this.nextCommand : 0;
|
|
1098
|
-
return this.send(this.writer.json(
|
|
1095
|
+
return this.send(this.writer.json(chunk4ZDR72SG_js.MessageTag.ui_command, { id, command })), awaited ? new Promise((resolve) => this.replies.set(id, resolve)) : Promise.resolve(void 0);
|
|
1099
1096
|
}
|
|
1100
1097
|
on_ui(listener) {
|
|
1101
1098
|
return this.uiListeners.push(listener), () => remove(this.uiListeners, listener);
|
|
1102
1099
|
}
|
|
1103
1100
|
complete(message) {
|
|
1104
|
-
this.state !== "disposed" && this.bridge.send(this.completeMessage,
|
|
1101
|
+
this.state !== "disposed" && this.bridge.send(this.completeMessage, chunk4ZDR72SG_js.writeSessionComplete(this.completeMessage, message));
|
|
1105
1102
|
}
|
|
1106
1103
|
game_ui(bytes, length) {
|
|
1107
|
-
this.state !== "disposed" && (bytes[0] =
|
|
1104
|
+
this.state !== "disposed" && (bytes[0] = chunk4ZDR72SG_js.MessageTag.game_ui, this.bridge.send(bytes, length));
|
|
1108
1105
|
}
|
|
1109
1106
|
on_game_ui(listener) {
|
|
1110
1107
|
return this.gameUiListeners.push(listener), () => remove(this.gameUiListeners, listener);
|
|
@@ -1140,76 +1137,76 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1140
1137
|
}
|
|
1141
1138
|
handle(bytes) {
|
|
1142
1139
|
switch (bytes[0]) {
|
|
1143
|
-
case
|
|
1144
|
-
this.answer(
|
|
1140
|
+
case chunk4ZDR72SG_js.MessageTag.response:
|
|
1141
|
+
this.answer(chunk4ZDR72SG_js.readJson(bytes));
|
|
1145
1142
|
return;
|
|
1146
|
-
case
|
|
1147
|
-
this.deliver(
|
|
1143
|
+
case chunk4ZDR72SG_js.MessageTag.event:
|
|
1144
|
+
this.deliver(chunk4ZDR72SG_js.readJson(bytes));
|
|
1148
1145
|
return;
|
|
1149
|
-
case
|
|
1146
|
+
case chunk4ZDR72SG_js.MessageTag.frames:
|
|
1150
1147
|
this.lane.receive(bytes);
|
|
1151
1148
|
return;
|
|
1152
|
-
case
|
|
1153
|
-
this.dispatchUi(
|
|
1149
|
+
case chunk4ZDR72SG_js.MessageTag.ui_event:
|
|
1150
|
+
this.dispatchUi(chunk4ZDR72SG_js.readJson(bytes));
|
|
1154
1151
|
return;
|
|
1155
|
-
case
|
|
1156
|
-
this.reply(
|
|
1152
|
+
case chunk4ZDR72SG_js.MessageTag.ui_reply:
|
|
1153
|
+
this.reply(chunk4ZDR72SG_js.readJson(bytes));
|
|
1157
1154
|
return;
|
|
1158
|
-
case
|
|
1155
|
+
case chunk4ZDR72SG_js.MessageTag.game_ui_event:
|
|
1159
1156
|
this.dispatchGameUi(bytes);
|
|
1160
1157
|
return;
|
|
1161
|
-
case
|
|
1158
|
+
case chunk4ZDR72SG_js.MessageTag.ping:
|
|
1162
1159
|
this.answerPing(bytes);
|
|
1163
1160
|
return;
|
|
1164
|
-
case
|
|
1165
|
-
this.transition(
|
|
1161
|
+
case chunk4ZDR72SG_js.MessageTag.lifecycle:
|
|
1162
|
+
this.transition(chunk4ZDR72SG_js.LIFECYCLE_BY_CODE[bytes[chunk4ZDR72SG_js.TAG_BYTES]] ?? null);
|
|
1166
1163
|
return;
|
|
1167
|
-
case
|
|
1168
|
-
this.boot =
|
|
1164
|
+
case chunk4ZDR72SG_js.MessageTag.boot:
|
|
1165
|
+
this.boot = chunk4ZDR72SG_js.readJson(bytes), this.options.on_boot?.(this.boot), (this.boot.chunk_requests ?? 0) >= chunk4ZDR72SG_js.CHUNK_REQUESTS_VERSION && this.options.assets?.connect?.(this.chunkChannel), this.boot.network !== void 0 && this.options.assets?.network?.(this.boot.network);
|
|
1169
1166
|
return;
|
|
1170
|
-
case
|
|
1167
|
+
case chunk4ZDR72SG_js.MessageTag.network: {
|
|
1171
1168
|
let hint = chunkT7LOXGYX_js.readNetworkHint(bytes);
|
|
1172
1169
|
hint !== null && this.options.assets?.network?.(hint);
|
|
1173
1170
|
return;
|
|
1174
1171
|
}
|
|
1175
|
-
case
|
|
1176
|
-
chunkPTRNO5UD_js.requestInspector(bytes[
|
|
1172
|
+
case chunk4ZDR72SG_js.MessageTag.inspector:
|
|
1173
|
+
chunkPTRNO5UD_js.requestInspector(bytes[chunk4ZDR72SG_js.TAG_BYTES] === chunk4ZDR72SG_js.INSPECTOR_SHOWN);
|
|
1177
1174
|
return;
|
|
1178
|
-
case
|
|
1179
|
-
|
|
1175
|
+
case chunk4ZDR72SG_js.MessageTag.meters:
|
|
1176
|
+
chunkXK6UDWJS_js.requestMeters(chunk4ZDR72SG_js.readJson(bytes));
|
|
1180
1177
|
return;
|
|
1181
|
-
case
|
|
1182
|
-
|
|
1178
|
+
case chunk4ZDR72SG_js.MessageTag.studio: {
|
|
1179
|
+
chunkXK6UDWJS_js.openStudioChannel((message2) => this.studioOut.post(message2));
|
|
1183
1180
|
let message = this.studioIn.accept(bytes);
|
|
1184
|
-
message !== null &&
|
|
1181
|
+
message !== null && chunkXK6UDWJS_js.deliverStudio(message);
|
|
1185
1182
|
return;
|
|
1186
1183
|
}
|
|
1187
|
-
case
|
|
1184
|
+
case chunk4ZDR72SG_js.MessageTag.chunk_failed:
|
|
1188
1185
|
this.chunkFailed(bytes);
|
|
1189
1186
|
return;
|
|
1190
|
-
case
|
|
1187
|
+
case chunk4ZDR72SG_js.MessageTag.chunk:
|
|
1191
1188
|
this.acceptChunk(bytes);
|
|
1192
1189
|
return;
|
|
1193
|
-
case
|
|
1190
|
+
case chunk4ZDR72SG_js.MessageTag.stage:
|
|
1194
1191
|
this.stageChunk(bytes);
|
|
1195
1192
|
return;
|
|
1196
|
-
case
|
|
1193
|
+
case chunk4ZDR72SG_js.MessageTag.chunk_ref:
|
|
1197
1194
|
this.acceptRef(bytes, false);
|
|
1198
1195
|
return;
|
|
1199
|
-
case
|
|
1196
|
+
case chunk4ZDR72SG_js.MessageTag.stage_ref:
|
|
1200
1197
|
this.acceptRef(bytes, true);
|
|
1201
1198
|
return;
|
|
1202
|
-
case
|
|
1203
|
-
this.warm(
|
|
1199
|
+
case chunk4ZDR72SG_js.MessageTag.warm:
|
|
1200
|
+
this.warm(chunk4ZDR72SG_js.readJson(bytes));
|
|
1204
1201
|
return;
|
|
1205
|
-
case
|
|
1202
|
+
case chunk4ZDR72SG_js.MessageTag.start:
|
|
1206
1203
|
this.start();
|
|
1207
1204
|
return;
|
|
1208
|
-
case
|
|
1209
|
-
this.hot(
|
|
1205
|
+
case chunk4ZDR72SG_js.MessageTag.hot:
|
|
1206
|
+
this.hot(chunk4ZDR72SG_js.readJson(bytes));
|
|
1210
1207
|
return;
|
|
1211
|
-
case
|
|
1212
|
-
let opened =
|
|
1208
|
+
case chunk4ZDR72SG_js.MessageTag.replay: {
|
|
1209
|
+
let opened = chunkGDZT5LZ5_js.readReplayMessage(bytes);
|
|
1213
1210
|
if (opened === null) return;
|
|
1214
1211
|
this.replayListeners.length === 0 && (this.heldReplay = opened);
|
|
1215
1212
|
for (let i = 0; i < this.replayListeners.length; i++) this.replayListeners[i](opened.replay, opened.mode);
|
|
@@ -1223,7 +1220,7 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1223
1220
|
return this.heldReplay = null, held !== null && listener(held.replay, held.mode), () => remove(this.replayListeners, listener);
|
|
1224
1221
|
}
|
|
1225
1222
|
async hot(request) {
|
|
1226
|
-
let done = (result) => this.send(this.writer.json(
|
|
1223
|
+
let done = (result) => this.send(this.writer.json(chunk4ZDR72SG_js.MessageTag.hot_done, result)), linker = this.services.linker;
|
|
1227
1224
|
if (!this.starting || this.state === "loading" || this.state === "disposed") return done({ swapped: false, reason: "the Interactive is not running" });
|
|
1228
1225
|
if (linker.relink === void 0) return done({ swapped: false, reason: "this host cannot swap code in place" });
|
|
1229
1226
|
if (!chunkT7LOXGYX_js.hotAccepted()) return done({ swapped: false, reason: "the Interactive does not accept code swaps" });
|
|
@@ -1238,9 +1235,9 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1238
1235
|
}
|
|
1239
1236
|
}
|
|
1240
1237
|
acceptChunk(bytes) {
|
|
1241
|
-
chunkQQABGCMM_js.readinessProbe()?.chunk(bytes.length -
|
|
1238
|
+
chunkQQABGCMM_js.readinessProbe()?.chunk(bytes.length - chunk4ZDR72SG_js.TAG_BYTES - chunk4ZDR72SG_js.DIGEST_BYTES);
|
|
1242
1239
|
try {
|
|
1243
|
-
this.assembler.accept(bytes.subarray(
|
|
1240
|
+
this.assembler.accept(bytes.subarray(chunk4ZDR72SG_js.TAG_BYTES, chunk4ZDR72SG_js.TAG_BYTES + chunk4ZDR72SG_js.DIGEST_BYTES), bytes.subarray(chunk4ZDR72SG_js.TAG_BYTES + chunk4ZDR72SG_js.DIGEST_BYTES));
|
|
1244
1241
|
} catch (error) {
|
|
1245
1242
|
this.fault("boot", error);
|
|
1246
1243
|
}
|
|
@@ -1248,11 +1245,11 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1248
1245
|
}
|
|
1249
1246
|
arrived(bytes) {
|
|
1250
1247
|
if (this.wanted.size === 0) return;
|
|
1251
|
-
let digest =
|
|
1248
|
+
let digest = chunk4ZDR72SG_js.hex(bytes.subarray(chunk4ZDR72SG_js.TAG_BYTES, chunk4ZDR72SG_js.TAG_BYTES + chunk4ZDR72SG_js.DIGEST_BYTES)), resolve = this.wanted.get(digest);
|
|
1252
1249
|
resolve !== void 0 && (this.wanted.delete(digest), resolve());
|
|
1253
1250
|
}
|
|
1254
1251
|
acceptRef(bytes, staged) {
|
|
1255
|
-
let digest =
|
|
1252
|
+
let digest = chunk4ZDR72SG_js.hex(bytes.subarray(chunk4ZDR72SG_js.TAG_BYTES, chunk4ZDR72SG_js.TAG_BYTES + chunk4ZDR72SG_js.DIGEST_BYTES)), payload = chunk4ZDR72SG_js.hex(bytes.subarray(chunk4ZDR72SG_js.TAG_BYTES + chunk4ZDR72SG_js.DIGEST_BYTES, chunk4ZDR72SG_js.TAG_BYTES + chunk4ZDR72SG_js.DIGEST_BYTES + chunk4ZDR72SG_js.DIGEST_BYTES));
|
|
1256
1253
|
this.arriving.push(this.fetchRef(digest, payload, staged));
|
|
1257
1254
|
}
|
|
1258
1255
|
async fetchRef(digest, payload, staged) {
|
|
@@ -1265,14 +1262,14 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1265
1262
|
}
|
|
1266
1263
|
want(digest) {
|
|
1267
1264
|
return new Promise((resolve) => {
|
|
1268
|
-
this.wanted.set(digest, resolve), this.queueChunk(this.requested, digest,
|
|
1265
|
+
this.wanted.set(digest, resolve), this.queueChunk(this.requested, digest, chunk4ZDR72SG_js.ChunkPriority.now);
|
|
1269
1266
|
});
|
|
1270
1267
|
}
|
|
1271
1268
|
queueChunk(batch, digest, priority) {
|
|
1272
1269
|
batch.full && this.flushChunks(), batch.add(digest, priority) && (this.chunkFlushQueued || (this.chunkFlushQueued = true, queueMicrotask(this.flushChunks)));
|
|
1273
1270
|
}
|
|
1274
1271
|
chunkFailed(bytes) {
|
|
1275
|
-
let failed =
|
|
1272
|
+
let failed = chunk4ZDR72SG_js.readChunkFailed(bytes);
|
|
1276
1273
|
failed !== null && (this.wanted.has(failed.digest) && (this.wanted.delete(failed.digest), this.fault("boot", new Error(`the host could not deliver chunk ${failed.digest} (${failed.reason})`))), this.options.assets?.fail?.(failed.digest, failed.reason));
|
|
1277
1274
|
}
|
|
1278
1275
|
async arrivals() {
|
|
@@ -1280,19 +1277,19 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1280
1277
|
}
|
|
1281
1278
|
async warm(image) {
|
|
1282
1279
|
await this.arrivals(), await this.options.on_warm?.(image)?.catch(() => {
|
|
1283
|
-
}), this.send(this.writer.tag(
|
|
1280
|
+
}), this.send(this.writer.tag(chunk4ZDR72SG_js.MessageTag.warmed));
|
|
1284
1281
|
}
|
|
1285
1282
|
stageChunk(bytes) {
|
|
1286
1283
|
try {
|
|
1287
|
-
let chunk =
|
|
1288
|
-
chunk.kind ===
|
|
1284
|
+
let chunk = chunkZMIL4ZOA_js.decodeChunk(bytes.subarray(chunk4ZDR72SG_js.TAG_BYTES + chunk4ZDR72SG_js.DIGEST_BYTES)), digest = chunk4ZDR72SG_js.hex(bytes.subarray(chunk4ZDR72SG_js.TAG_BYTES, chunk4ZDR72SG_js.TAG_BYTES + chunk4ZDR72SG_js.DIGEST_BYTES));
|
|
1285
|
+
chunk.kind === chunkZMIL4ZOA_js.ChunkKind.data ? this.options.assets?.accept(digest, chunk.payload) : chunk.kind === chunkZMIL4ZOA_js.ChunkKind.wasm ? this.options.on_staged_wasm?.(digest, this.assembler.stage(digest, chunk.payload)) : chunk.kind === chunkZMIL4ZOA_js.ChunkKind.code && this.options.on_staged_code?.(this.assembler.stageCode(digest, chunk.payload));
|
|
1289
1286
|
} catch (error) {
|
|
1290
1287
|
this.fault("boot", error);
|
|
1291
1288
|
}
|
|
1292
1289
|
this.arrived(bytes);
|
|
1293
1290
|
}
|
|
1294
1291
|
answerPing(bytes) {
|
|
1295
|
-
this.pong[1] = bytes[1], this.pong[2] = bytes[2], this.pong[3] = bytes[3], this.pong[4] = bytes[4], this.pongView.setFloat64(5, this.options.heap_bytes?.() ?? 0, true), this.bridge.send(this.pong,
|
|
1292
|
+
this.pong[1] = bytes[1], this.pong[2] = bytes[2], this.pong[3] = bytes[3], this.pong[4] = bytes[4], this.pongView.setFloat64(5, this.options.heap_bytes?.() ?? 0, true), this.bridge.send(this.pong, chunk4ZDR72SG_js.PONG_BYTES);
|
|
1296
1293
|
}
|
|
1297
1294
|
answer(envelope) {
|
|
1298
1295
|
let waiting = this.pending.get(envelope.request_id);
|
|
@@ -1338,7 +1335,7 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1338
1335
|
} catch (error) {
|
|
1339
1336
|
this.fault("run", error);
|
|
1340
1337
|
}
|
|
1341
|
-
this.disposers.length = 0, this.uiListeners.length = 0, this.lane.flush(), this.send(this.writer.tag(
|
|
1338
|
+
this.disposers.length = 0, this.uiListeners.length = 0, this.lane.flush(), this.send(this.writer.tag(chunk4ZDR72SG_js.MessageTag.disposed));
|
|
1342
1339
|
}
|
|
1343
1340
|
}
|
|
1344
1341
|
async start() {
|
|
@@ -1370,7 +1367,7 @@ var FIRST_FRAME_MILESTONE = "first_frame_scheduled", GuestRuntime = class {
|
|
|
1370
1367
|
this.fault("start", error);
|
|
1371
1368
|
return;
|
|
1372
1369
|
}
|
|
1373
|
-
this.current() === "ready" && this.transition("visible"), this.send(this.writer.tag(
|
|
1370
|
+
this.current() === "ready" && this.transition("visible"), this.send(this.writer.tag(chunk4ZDR72SG_js.MessageTag.started));
|
|
1374
1371
|
}
|
|
1375
1372
|
};
|
|
1376
1373
|
function lifecycleOf(runtime) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkX5A5FOWW_js = require('./chunk-X5A5FOWW.js');
|
|
4
4
|
var chunkIR74FJHU_js = require('./chunk-IR74FJHU.js');
|
|
5
|
-
var
|
|
5
|
+
var chunk2O2CG465_js = require('./chunk-2O2CG465.js');
|
|
6
6
|
var chunk2V7IL4HC_js = require('./chunk-2V7IL4HC.js');
|
|
7
7
|
|
|
8
8
|
// src/game/kernel/compute.ts
|
|
@@ -468,7 +468,7 @@ var EngineFluids = class {
|
|
|
468
468
|
this.caps = exports.engine_fluid_caps();
|
|
469
469
|
}
|
|
470
470
|
scratch() {
|
|
471
|
-
if (this.pointer === (0) && (this.pointer = this.runtime.exports.engine_alloc(SCRATCH_FLOATS * (4),
|
|
471
|
+
if (this.pointer === (0) && (this.pointer = this.runtime.exports.engine_alloc(SCRATCH_FLOATS * (4), chunk2O2CG465_js.COLUMN_ALIGN), this.pointer === (0)))
|
|
472
472
|
throw new chunk2V7IL4HC_js.GameError("capacity_exceeded", "engine memory cannot hold fluid parameters");
|
|
473
473
|
let buffer = this.runtime.memory.buffer;
|
|
474
474
|
return buffer !== this.buffer && (this.buffer = buffer, this.floats = new Float32Array(buffer)), this.pointer;
|
|
@@ -519,7 +519,7 @@ var EngineFluids = class {
|
|
|
519
519
|
for (let i = 0; i < FLUID_FORCE_FLOATS; i++) out[i] = this.floats[at + i];
|
|
520
520
|
}
|
|
521
521
|
volume(fluid, positions, indices, resolution, padding) {
|
|
522
|
-
let vertices = Math.floor(positions.length / 3), triangles = Math.floor(indices.length / 3), positionBytes = vertices * 3 * (4), indexBytes = triangles * 3 * (4), bytes = positionBytes + indexBytes, block = this.runtime.exports.engine_alloc(bytes,
|
|
522
|
+
let vertices = Math.floor(positions.length / 3), triangles = Math.floor(indices.length / 3), positionBytes = vertices * 3 * (4), indexBytes = triangles * 3 * (4), bytes = positionBytes + indexBytes, block = this.runtime.exports.engine_alloc(bytes, chunk2O2CG465_js.COLUMN_ALIGN);
|
|
523
523
|
if (block === (0)) throw new chunk2V7IL4HC_js.GameError("capacity_exceeded", "engine memory cannot hold the collider mesh");
|
|
524
524
|
try {
|
|
525
525
|
let memory = this.runtime.memory.buffer;
|
|
@@ -532,7 +532,7 @@ var EngineFluids = class {
|
|
|
532
532
|
let at = info >>> 2, f = this.floats;
|
|
533
533
|
return { index, half: [f[at + 3], f[at + 4], f[at + 5]], centre: [f[at + 6], f[at + 7], f[at + 8]] };
|
|
534
534
|
} finally {
|
|
535
|
-
this.runtime.exports.engine_free(block, bytes,
|
|
535
|
+
this.runtime.exports.engine_free(block, bytes, chunk2O2CG465_js.COLUMN_ALIGN);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
clearVolumes(fluid) {
|
|
@@ -593,7 +593,7 @@ function bindChemistryEngine(symbols, memory) {
|
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
// src/game/scenery/port.ts
|
|
596
|
-
var SCENERY_REQUEST_SLOTS = 8, SCENERY_REGISTER_WORDS =
|
|
596
|
+
var SCENERY_REQUEST_SLOTS = 8, SCENERY_REGISTER_WORDS = 20;
|
|
597
597
|
var SCENERY_REGISTER = {
|
|
598
598
|
chunks: 0,
|
|
599
599
|
resident: 1,
|
|
@@ -609,7 +609,11 @@ var SCENERY_REGISTER = {
|
|
|
609
609
|
poolCapacity: 11,
|
|
610
610
|
poolFreePages: 12,
|
|
611
611
|
tier: 13,
|
|
612
|
-
updates: 14
|
|
612
|
+
updates: 14,
|
|
613
|
+
heroSplats: 15,
|
|
614
|
+
heroShed: 16,
|
|
615
|
+
standIn: 17,
|
|
616
|
+
deformedSplats: 18
|
|
613
617
|
};
|
|
614
618
|
|
|
615
619
|
// src/game/world/port.ts
|
|
@@ -761,12 +765,12 @@ function createVectorSurfaceStats() {
|
|
|
761
765
|
// src/game/audio/analyser.ts
|
|
762
766
|
var BLACKMAN_A0 = 0.42, BLACKMAN_A1 = 0.5, BLACKMAN_A2 = 0.08, DECIBELS_PER_LOG = 20, BYTE_MAX = 255, BYTE_CENTER = 128, SILENCE = 1e-12;
|
|
763
767
|
function analyserSettings(desc = {}) {
|
|
764
|
-
let fftSize = desc.fftSize ??
|
|
765
|
-
if (!Number.isInteger(fftSize) || fftSize <
|
|
766
|
-
throw new chunk2V7IL4HC_js.GameError("invalid_argument", `fftSize must be a power of two from ${
|
|
767
|
-
let smoothing = desc.smoothing ??
|
|
768
|
+
let fftSize = desc.fftSize ?? chunkX5A5FOWW_js.DEFAULT_FFT_SIZE;
|
|
769
|
+
if (!Number.isInteger(fftSize) || fftSize < chunkX5A5FOWW_js.MIN_FFT_SIZE || fftSize > chunkX5A5FOWW_js.MAX_FFT_SIZE || (fftSize & fftSize - 1) !== 0)
|
|
770
|
+
throw new chunk2V7IL4HC_js.GameError("invalid_argument", `fftSize must be a power of two from ${chunkX5A5FOWW_js.MIN_FFT_SIZE} to ${chunkX5A5FOWW_js.MAX_FFT_SIZE}`);
|
|
771
|
+
let smoothing = desc.smoothing ?? chunkX5A5FOWW_js.DEFAULT_SMOOTHING;
|
|
768
772
|
if (!(smoothing >= 0 && smoothing <= 1)) throw new chunk2V7IL4HC_js.GameError("invalid_argument", "smoothing must be between 0 and 1");
|
|
769
|
-
let minDecibels = desc.minDecibels ??
|
|
773
|
+
let minDecibels = desc.minDecibels ?? chunkX5A5FOWW_js.DEFAULT_MIN_DECIBELS, maxDecibels = desc.maxDecibels ?? chunkX5A5FOWW_js.DEFAULT_MAX_DECIBELS;
|
|
770
774
|
if (!(minDecibels < maxDecibels)) throw new chunk2V7IL4HC_js.GameError("invalid_argument", "minDecibels must be below maxDecibels");
|
|
771
775
|
return { fftSize, smoothing, minDecibels, maxDecibels };
|
|
772
776
|
}
|
|
@@ -887,7 +891,7 @@ var EngineReactive = class {
|
|
|
887
891
|
buffer !== this.buffer && (this.buffer = buffer, this.words = new Uint32Array(buffer), this.floats = new Float32Array(buffer));
|
|
888
892
|
}
|
|
889
893
|
at() {
|
|
890
|
-
if (this.scratch === (0) && (this.scratch = this.runtime.exports.engine_alloc(SCRATCH_WORDS * (4),
|
|
894
|
+
if (this.scratch === (0) && (this.scratch = this.runtime.exports.engine_alloc(SCRATCH_WORDS * (4), chunk2O2CG465_js.COLUMN_ALIGN), this.scratch === (0)))
|
|
891
895
|
throw new chunk2V7IL4HC_js.GameError("capacity_exceeded", "engine memory cannot hold reactive fluid parameters");
|
|
892
896
|
return this.views(), this.scratch >>> 2;
|
|
893
897
|
}
|
|
@@ -995,12 +999,12 @@ var EngineDestruction = class {
|
|
|
995
999
|
open() {
|
|
996
1000
|
if (this.handle === (0)) {
|
|
997
1001
|
if (this.handle = this.exports.engine_destruction_open(this.world()), this.handle === (0)) throw new chunk2V7IL4HC_js.GameError("not_initialized", "destruction needs an engine physics world");
|
|
998
|
-
if (this.scratch = this.runtime.exports.engine_alloc(Math.max((24), (5)) * (4),
|
|
1002
|
+
if (this.scratch = this.runtime.exports.engine_alloc(Math.max((24), (5)) * (4), chunk2O2CG465_js.COLUMN_ALIGN), this.scratch === (0)) throw new chunk2V7IL4HC_js.GameError("capacity_exceeded", "engine memory cannot hold destruction parameters");
|
|
999
1003
|
}
|
|
1000
1004
|
return this.handle;
|
|
1001
1005
|
}
|
|
1002
1006
|
allocate(bytes) {
|
|
1003
|
-
let pointer = this.runtime.exports.engine_alloc(Math.max(bytes, 4),
|
|
1007
|
+
let pointer = this.runtime.exports.engine_alloc(Math.max(bytes, 4), chunk2O2CG465_js.COLUMN_ALIGN);
|
|
1004
1008
|
if (pointer === (0)) throw new chunk2V7IL4HC_js.GameError("capacity_exceeded", "engine memory cannot hold the fracture asset");
|
|
1005
1009
|
return pointer;
|
|
1006
1010
|
}
|
|
@@ -1017,7 +1021,7 @@ var EngineDestruction = class {
|
|
|
1017
1021
|
intact,
|
|
1018
1022
|
this.scratch
|
|
1019
1023
|
);
|
|
1020
|
-
if (this.runtime.exports.engine_free(assetPointer, Math.max(asset.byteLength, 4),
|
|
1024
|
+
if (this.runtime.exports.engine_free(assetPointer, Math.max(asset.byteLength, 4), chunk2O2CG465_js.COLUMN_ALIGN), this.runtime.exports.engine_free(entityPointer, Math.max(entities.byteLength, 4), chunk2O2CG465_js.COLUMN_ALIGN), !(id >= 0)) throw new chunk2V7IL4HC_js.GameError("invalid_argument", `the engine refused the destructible (${id}); check the fracture asset and that every entity has a transform`);
|
|
1021
1025
|
return id;
|
|
1022
1026
|
}
|
|
1023
1027
|
destroy(destructible) {
|
|
@@ -1055,9 +1059,9 @@ var EngineDestruction = class {
|
|
|
1055
1059
|
}
|
|
1056
1060
|
fracture(mesh, options) {
|
|
1057
1061
|
if (this.fracturer === null) {
|
|
1058
|
-
let exports =
|
|
1062
|
+
let exports = chunkX5A5FOWW_js.engineFractureExports(this.runtime);
|
|
1059
1063
|
if (exports === null) throw new chunk2V7IL4HC_js.GameError("unsupported_feature", "breaking a made thing needs an engine with live fracture");
|
|
1060
|
-
this.fracturer = new
|
|
1064
|
+
this.fracturer = new chunkX5A5FOWW_js.EngineFracturer(this.runtime, exports);
|
|
1061
1065
|
}
|
|
1062
1066
|
return this.fracturer.fracture(mesh, options);
|
|
1063
1067
|
}
|
|
@@ -1142,7 +1146,7 @@ var EngineSmoke = class {
|
|
|
1142
1146
|
this.floats = new Float32Array(0);
|
|
1143
1147
|
}
|
|
1144
1148
|
at() {
|
|
1145
|
-
if (this.scratch === (0) && (this.scratch = this.runtime.exports.engine_alloc(SCRATCH_FLOATS2 * (4),
|
|
1149
|
+
if (this.scratch === (0) && (this.scratch = this.runtime.exports.engine_alloc(SCRATCH_FLOATS2 * (4), chunk2O2CG465_js.COLUMN_ALIGN), this.scratch === (0)))
|
|
1146
1150
|
throw new chunk2V7IL4HC_js.GameError("capacity_exceeded", "engine memory cannot hold smoke parameters");
|
|
1147
1151
|
let buffer = this.runtime.memory.buffer;
|
|
1148
1152
|
return buffer !== this.buffer && (this.buffer = buffer, this.floats = new Float32Array(buffer)), this.scratch >>> 2;
|
|
@@ -1399,7 +1403,7 @@ exports.ROOT_MOTION_XZ = (1);
|
|
|
1399
1403
|
exports.ROOT_MOTION_Y = (2);
|
|
1400
1404
|
exports.ROOT_MOTION_YAW = (4);
|
|
1401
1405
|
exports.SCENERY_REGISTER = SCENERY_REGISTER;
|
|
1402
|
-
exports.SCENERY_REGISTER_WORDS = (
|
|
1406
|
+
exports.SCENERY_REGISTER_WORDS = (20);
|
|
1403
1407
|
exports.SCENERY_REQUEST_SLOTS = (8);
|
|
1404
1408
|
exports.SMOKE_DESC_FLOATS = (24);
|
|
1405
1409
|
exports.SMOKE_MAX_EMITTERS = (8);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mat4Frustum, mat4Orthographic } from './chunk-KIZOA5LX.mjs';
|
|
2
2
|
import { materialTint } from './chunk-TL2SVO4P.mjs';
|
|
3
|
-
import { CORE_MATERIAL_SLOTS, MATERIAL_SLOTS, OP_SET_LOD, STAT_GPU_LAST_NS, STAT_GPU_P50_NS, STAT_GPU_P95_NS, STAT_GPU_BYTES_LOW, STAT_GPU_BYTES_HIGH, STAT_THERMAL_TIER, STAT_PARTICLES_ALIVE, STAT_RAW_DISPATCHES, STAT_RAW_GPU_NS, STAT_RAW_DISABLED, STAT_TRANSPARENT_SORTED, STAT_TEXT_GLYPHS, STAT_DRAW_CALLS, STAT_TRIANGLES, FftAnalyser, BLEND_EQUATIONS, BLEND_FACTORS, STENCIL_OPERATIONS, COMPARE_FUNCTIONS } from './chunk-
|
|
4
|
-
import { FULL_AUDIO_CAPABILITIES, SPATIAL_WORDS, FILTER_OFF, METER_PEAK, METER_RMS, ANALYSER_FREQUENCY, STREAM_STOPPED, STREAM_PLAYING, STREAM_PAUSED, FILTER_KINDS, DISTANCE_MODELS, SPATIAL_MODEL, SPATIAL_REF_DISTANCE, SPATIAL_MAX_DISTANCE, SPATIAL_ROLLOFF, SPATIAL_CONE_INNER, SPATIAL_CONE_OUTER, SPATIAL_CONE_OUTER_GAIN } from './chunk-
|
|
5
|
-
import { COLUMN_ALIGN } from './chunk-
|
|
3
|
+
import { CORE_MATERIAL_SLOTS, MATERIAL_SLOTS, OP_SET_LOD, STAT_GPU_LAST_NS, STAT_GPU_P50_NS, STAT_GPU_P95_NS, STAT_GPU_BYTES_LOW, STAT_GPU_BYTES_HIGH, STAT_THERMAL_TIER, STAT_PARTICLES_ALIVE, STAT_RAW_DISPATCHES, STAT_RAW_GPU_NS, STAT_RAW_DISABLED, STAT_TRANSPARENT_SORTED, STAT_TEXT_GLYPHS, STAT_DRAW_CALLS, STAT_TRIANGLES, FftAnalyser, BLEND_EQUATIONS, BLEND_FACTORS, STENCIL_OPERATIONS, COMPARE_FUNCTIONS } from './chunk-E65WCTIG.mjs';
|
|
4
|
+
import { FULL_AUDIO_CAPABILITIES, SPATIAL_WORDS, FILTER_OFF, METER_PEAK, METER_RMS, ANALYSER_FREQUENCY, STREAM_STOPPED, STREAM_PLAYING, STREAM_PAUSED, FILTER_KINDS, DISTANCE_MODELS, SPATIAL_MODEL, SPATIAL_REF_DISTANCE, SPATIAL_MAX_DISTANCE, SPATIAL_ROLLOFF, SPATIAL_CONE_INNER, SPATIAL_CONE_OUTER, SPATIAL_CONE_OUTER_GAIN } from './chunk-5YFBGGCK.mjs';
|
|
5
|
+
import { COLUMN_ALIGN } from './chunk-A33OORT7.mjs';
|
|
6
6
|
import { GameError } from './chunk-XJIHN3BY.mjs';
|
|
7
7
|
|
|
8
8
|
// src/game/render/character.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { KitVehicle, vehiclePreset } from './chunk-
|
|
1
|
+
import { KitVehicle, vehiclePreset } from './chunk-CYBMFMJD.mjs';
|
|
2
2
|
import { addSceneCamera, BoxBatch, BOX_X, BOX_Y, BOX_Z, BOX_ROTATION, BOX_SX, BOX_SY, BOX_SZ } from './chunk-QDYFLATW.mjs';
|
|
3
|
-
import { templateFrameStamp, digestFloats } from './chunk-
|
|
3
|
+
import { templateFrameStamp, digestFloats } from './chunk-KGHJH5KJ.mjs';
|
|
4
4
|
import { POSE_PITCH, POSE_YAW, placeCamera } from './chunk-Y2EMGN4T.mjs';
|
|
5
5
|
import { boxGeometry } from './chunk-GHPUYD4I.mjs';
|
|
6
6
|
import { Vec3, Quat } from './chunk-XPG3N5CF.mjs';
|