@cimplify/sdk 0.108.0 → 0.110.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/LICENSE +21 -0
- package/dist/advanced.d.mts +4 -3
- package/dist/advanced.d.ts +4 -3
- package/dist/advanced.js +24 -24
- package/dist/advanced.mjs +5 -5
- package/dist/animation-4EXBXRVX.js +27 -0
- package/dist/animation-6DICNWUP.mjs +6 -0
- package/dist/audio-DhvyjqdA.d.mts +249 -0
- package/dist/audio-m0w8cnxq.d.ts +249 -0
- package/dist/avatars.d.mts +110 -0
- package/dist/avatars.d.ts +110 -0
- package/dist/avatars.js +82 -0
- package/dist/avatars.mjs +5 -0
- package/dist/backend-gUCzs5Kg.d.mts +3866 -0
- package/dist/backend-gUCzs5Kg.d.ts +3866 -0
- package/dist/{catalogue-B4eLL8Mi.d.ts → catalogue-CPTMyBUz.d.mts} +109 -221
- package/dist/catalogue-DzrTXP3v.d.mts +541 -0
- package/dist/catalogue-DzrTXP3v.d.ts +541 -0
- package/dist/{catalogue-OT89_Ifs.d.mts → catalogue-OTuS5zp-.d.ts} +109 -221
- package/dist/chunk-22BD3RHN.mjs +1809 -0
- package/dist/chunk-25T4JHEA.mjs +21 -0
- package/dist/chunk-2AQ237Y4.js +508 -0
- package/dist/chunk-2IC4H6OV.mjs +48 -0
- package/dist/chunk-2LHLG4OB.mjs +71 -0
- package/dist/chunk-2O2CG465.js +1709 -0
- package/dist/chunk-2Q4DTHXK.js +316 -0
- package/dist/chunk-2QTQ6BUH.mjs +46 -0
- package/dist/chunk-2UN4SFLR.mjs +100 -0
- package/dist/chunk-2V75I7K3.js +454 -0
- package/dist/chunk-2V7IL4HC.js +10 -0
- package/dist/chunk-34XBXUMW.js +296 -0
- package/dist/chunk-3C4C654I.js +71 -0
- package/dist/chunk-3DAD2LDF.mjs +72 -0
- package/dist/chunk-3GXH2NFD.mjs +4 -0
- package/dist/chunk-3O47ZFW3.js +961 -0
- package/dist/chunk-3OY3VYNF.mjs +11 -0
- package/dist/chunk-3S6WPBZL.js +2936 -0
- package/dist/chunk-3TUOUP5T.js +399 -0
- package/dist/chunk-3VEH23I5.mjs +1380 -0
- package/dist/chunk-3ZYSAW2T.mjs +263 -0
- package/dist/chunk-4ANVF274.js +103 -0
- package/dist/chunk-4C7I3ELN.js +388 -0
- package/dist/chunk-4DYKAYFO.mjs +8 -0
- package/dist/chunk-4ZDR72SG.js +329 -0
- package/dist/chunk-52YS45RR.js +1066 -0
- package/dist/chunk-5325XSCH.js +107 -0
- package/dist/chunk-5AD5X6AV.js +13 -0
- package/dist/chunk-5BYDGGWO.mjs +197 -0
- package/dist/chunk-5C3C7VDM.mjs +55 -0
- package/dist/chunk-5HFMY3D7.js +660 -0
- package/dist/chunk-5LH2QN3T.js +1862 -0
- package/dist/chunk-5PJEXSOW.js +44 -0
- package/dist/chunk-5SXDH3Y7.js +90 -0
- package/dist/chunk-5YFBGGCK.mjs +502 -0
- package/dist/chunk-5YWN6H5Q.mjs +133 -0
- package/dist/chunk-66QP3SMN.js +402 -0
- package/dist/chunk-6DAEZKIG.mjs +385 -0
- package/dist/chunk-6DATW7TB.mjs +420 -0
- package/dist/{chunk-JRGK3NXR.mjs → chunk-6ETDAU62.mjs} +72 -212
- package/dist/chunk-6H254EVP.mjs +178 -0
- package/dist/chunk-6PFNJPBJ.mjs +820 -0
- package/dist/chunk-6PJWXIFX.mjs +357 -0
- package/dist/chunk-6SWKWCMS.js +80 -0
- package/dist/chunk-6VVXXX7S.js +808 -0
- package/dist/chunk-6WUBSMTX.js +1403 -0
- package/dist/chunk-73SGZLAQ.mjs +35 -0
- package/dist/chunk-76L2V6KD.mjs +4 -0
- package/dist/chunk-7AAIAVAA.js +1531 -0
- package/dist/chunk-7ARSJPV3.mjs +93 -0
- package/dist/chunk-7BHW5GTC.mjs +1234 -0
- package/dist/chunk-7DQSDKDU.js +6 -0
- package/dist/chunk-7IQQQENP.mjs +401 -0
- package/dist/chunk-7KFTYENS.js +11357 -0
- package/dist/chunk-7SM6XSPZ.js +3171 -0
- package/dist/chunk-7SXOHAIR.mjs +28 -0
- package/dist/chunk-A2MAX6S4.js +90 -0
- package/dist/chunk-A33OORT7.mjs +1530 -0
- package/dist/{chunk-U6ACF76H.mjs → chunk-A36JRXXH.mjs} +1075 -1845
- package/dist/chunk-A7BU3BK4.js +52 -0
- package/dist/chunk-A7MQSN2V.mjs +77 -0
- package/dist/chunk-A7V4L2IT.mjs +416 -0
- package/dist/chunk-AABEK6XU.js +226 -0
- package/dist/chunk-AGV33FWC.mjs +5005 -0
- package/dist/chunk-AHNR3BXI.js +108 -0
- package/dist/chunk-AQ5RLBU2.mjs +286 -0
- package/dist/chunk-AQOE6WCG.js +1270 -0
- package/dist/chunk-ATAWRACV.mjs +62 -0
- package/dist/chunk-ATCURNUV.js +14 -0
- package/dist/chunk-AWPV33OO.js +6 -0
- package/dist/chunk-AYJPHKYV.js +337 -0
- package/dist/chunk-AZ5BGWHB.js +162 -0
- package/dist/chunk-AZAXD44P.js +1373 -0
- package/dist/chunk-BBGKQIJJ.mjs +406 -0
- package/dist/chunk-BP4JLSUA.js +1453 -0
- package/dist/{chunk-SUCE7FWA.mjs → chunk-BTUSVHIE.mjs} +539 -978
- package/dist/chunk-BU6OK542.mjs +818 -0
- package/dist/chunk-CVSRWM6W.js +418 -0
- package/dist/chunk-CYBMFMJD.mjs +247 -0
- package/dist/chunk-DDJLDOUX.mjs +217 -0
- package/dist/{chunk-V32BCG7M.js → chunk-DFZWHNRG.js} +75 -215
- package/dist/chunk-DJ2C7AVG.js +644 -0
- package/dist/chunk-DS2VU4WW.mjs +102 -0
- package/dist/chunk-DSAG7T5P.js +7290 -0
- package/dist/chunk-E2QPPH7I.js +327 -0
- package/dist/chunk-E65WCTIG.mjs +1187 -0
- package/dist/{chunk-33VCYWVL.mjs → chunk-E6QQKDNE.mjs} +30 -42
- package/dist/chunk-ECDK6QBF.mjs +981 -0
- package/dist/chunk-EIB4OWVQ.mjs +620 -0
- package/dist/chunk-EQUZYCGO.js +250 -0
- package/dist/chunk-F3UJ6ZRM.mjs +313 -0
- package/dist/chunk-F63N2ZTQ.js +7023 -0
- package/dist/chunk-F6XRYEM3.mjs +26 -0
- package/dist/chunk-FE6VCE4K.js +5030 -0
- package/dist/chunk-FLWD6GRR.js +1372 -0
- package/dist/chunk-FQBFWJBS.mjs +110 -0
- package/dist/chunk-FXVJ2HFU.js +26 -0
- package/dist/chunk-FZMQMQBW.js +312 -0
- package/dist/chunk-G3EEC44R.js +53 -0
- package/dist/{chunk-KG3WT4PR.mjs → chunk-GCKWKLZF.mjs} +73 -104
- package/dist/chunk-GCX7TY4D.mjs +6826 -0
- package/dist/chunk-GDB6TCSD.js +450 -0
- package/dist/chunk-GDCV4IWO.mjs +21 -0
- package/dist/chunk-GDZT5LZ5.js +170 -0
- package/dist/chunk-GHPUYD4I.mjs +213 -0
- package/dist/chunk-GHS6MIL6.mjs +1432 -0
- package/dist/chunk-GPS2THCL.mjs +11 -0
- package/dist/{chunk-EV2EVOYS.js → chunk-GTJWQAGU.js} +31 -42
- package/dist/chunk-GVTI6UJQ.mjs +130 -0
- package/dist/chunk-GXKI64OT.mjs +1138 -0
- package/dist/chunk-GYDYF2WX.js +275 -0
- package/dist/chunk-GYLP6UG4.mjs +705 -0
- package/dist/chunk-H3OQKK6X.js +1158 -0
- package/dist/chunk-H5DFSCJ6.js +40 -0
- package/dist/chunk-HAGEIC2L.mjs +186 -0
- package/dist/chunk-HAJ4JRFO.js +293 -0
- package/dist/chunk-HDR72GB6.js +188 -0
- package/dist/chunk-HF5HPS4T.mjs +40 -0
- package/dist/chunk-HK6LOFDS.js +218 -0
- package/dist/chunk-HMWYTXCY.mjs +143 -0
- package/dist/chunk-HPCSRCMA.js +89 -0
- package/dist/chunk-HSEO6TPU.js +247 -0
- package/dist/chunk-I5FOHCLH.js +132 -0
- package/dist/chunk-IDLW4NWA.mjs +85 -0
- package/dist/chunk-IIDZ5WUX.js +61 -0
- package/dist/chunk-IR74FJHU.js +2332 -0
- package/dist/chunk-IRVFYAKP.mjs +100 -0
- package/dist/{chunk-XBL3TMPC.mjs → chunk-IZDWAL53.mjs} +1795 -3287
- package/dist/chunk-J2KZXIU3.js +51 -0
- package/dist/chunk-J2U6PJSO.js +91 -0
- package/dist/chunk-J5AJNY2N.js +283 -0
- package/dist/chunk-J6KQZ4FO.mjs +821 -0
- package/dist/{chunk-OWW5GUSB.js → chunk-JGBCIKJV.js} +7 -6
- package/dist/chunk-JKGTBMU7.mjs +25 -0
- package/dist/chunk-JR3TNEQC.js +422 -0
- package/dist/chunk-JURRXY2J.mjs +29 -0
- package/dist/chunk-K3HW5I2A.mjs +317 -0
- package/dist/chunk-K46SMZ66.mjs +103 -0
- package/dist/chunk-K4UDGE3Z.mjs +6 -0
- package/dist/chunk-KDQOR4QQ.mjs +350 -0
- package/dist/chunk-KDTVOLHI.mjs +288 -0
- package/dist/chunk-KGHJH5KJ.mjs +35 -0
- package/dist/chunk-KIZOA5LX.mjs +140 -0
- package/dist/chunk-KK6HYVBI.mjs +242 -0
- package/dist/chunk-KMKWGXMK.js +856 -0
- package/dist/chunk-KPA6K5IB.js +80 -0
- package/dist/chunk-KU7O4IXU.mjs +260 -0
- package/dist/chunk-KVFNRJOR.mjs +11142 -0
- package/dist/chunk-KZJRSXHK.js +2432 -0
- package/dist/chunk-LHWPRUJL.js +79 -0
- package/dist/chunk-LIV3KXJG.mjs +369 -0
- package/dist/chunk-LKV4LACG.js +21 -0
- package/dist/chunk-LUY45X3U.mjs +263 -0
- package/dist/chunk-LYEZZEEF.mjs +17 -0
- package/dist/chunk-M5EXQZYY.mjs +1519 -0
- package/dist/chunk-ME6HGG4I.mjs +1338 -0
- package/dist/chunk-MEXP6DA6.js +31 -0
- package/dist/chunk-MG52AW3H.js +902 -0
- package/dist/chunk-MIPO6F72.js +334 -0
- package/dist/{chunk-5QW7CQBA.js → chunk-MKIJQL5Q.js} +211 -321
- package/dist/chunk-MN3YETVN.mjs +17 -0
- package/dist/chunk-MOBSBXVE.mjs +2391 -0
- package/dist/chunk-MOMOZEUM.mjs +88 -0
- package/dist/chunk-MRFUNRAP.js +62 -0
- package/dist/chunk-MTIHEW2M.js +433 -0
- package/dist/chunk-N4RGGDEL.mjs +73 -0
- package/dist/chunk-NH654HAT.js +10 -0
- package/dist/chunk-NHJUGZUR.mjs +253 -0
- package/dist/chunk-NMQT4HG3.mjs +757 -0
- package/dist/chunk-NPSYB6DC.mjs +906 -0
- package/dist/chunk-NW2GPMSO.js +857 -0
- package/dist/chunk-NXKQOQ6L.js +76 -0
- package/dist/chunk-NXLAZIJZ.js +309 -0
- package/dist/chunk-NYWNA5CF.js +148 -0
- package/dist/chunk-NZTKLY2W.js +1442 -0
- package/dist/chunk-O2ICABUD.js +36 -0
- package/dist/chunk-OIVVQQ22.js +862 -0
- package/dist/chunk-OKC2B4O3.mjs +312 -0
- package/dist/chunk-OLWFPDBK.js +2220 -0
- package/dist/chunk-OMTVH334.js +3779 -0
- package/dist/chunk-OQRVEM56.mjs +362 -0
- package/dist/chunk-OXMIBOD4.js +337 -0
- package/dist/chunk-PBL6YL5L.mjs +288 -0
- package/dist/chunk-PDOELNNQ.js +97 -0
- package/dist/chunk-PDQJY2GZ.js +136 -0
- package/dist/chunk-PKOZXD2Q.js +1274 -0
- package/dist/chunk-PPF2BYFL.mjs +2191 -0
- package/dist/chunk-PQTQKNKD.js +539 -0
- package/dist/chunk-PRSR4FAV.mjs +81 -0
- package/dist/chunk-PTRNO5UD.js +95 -0
- package/dist/chunk-Q2Y3VMKH.js +2000 -0
- package/dist/chunk-QCZOE65N.js +96 -0
- package/dist/chunk-QDYFLATW.mjs +52 -0
- package/dist/chunk-QQABGCMM.js +22 -0
- package/dist/chunk-QS6TRHMR.js +345 -0
- package/dist/chunk-R56P64LB.mjs +208 -0
- package/dist/chunk-RCQ2MPBV.js +428 -0
- package/dist/chunk-RFVRPYR2.mjs +856 -0
- package/dist/chunk-RKBLPGPV.js +11521 -0
- package/dist/chunk-RM2V4IND.mjs +327 -0
- package/dist/chunk-RQXN5A34.mjs +613 -0
- package/dist/chunk-RUVGVNOF.mjs +2687 -0
- package/dist/chunk-SAFJIGYB.mjs +165 -0
- package/dist/chunk-SKQFLBDD.js +263 -0
- package/dist/chunk-SMK6JU2F.mjs +2092 -0
- package/dist/{chunk-UVRPC2P7.js → chunk-SNNEOS5Z.js} +1984 -3476
- package/dist/chunk-SPCRQ6NO.mjs +1246 -0
- package/dist/chunk-SWX4SALA.mjs +19 -0
- package/dist/{chunk-JVODCGFP.mjs → chunk-SYEO2WV4.mjs} +128 -238
- package/dist/chunk-T2QQMX2N.js +10 -0
- package/dist/chunk-T3AFF3L7.mjs +57 -0
- package/dist/chunk-T6Z2EXYL.js +712 -0
- package/dist/chunk-T7LOXGYX.js +118 -0
- package/dist/chunk-TJCAE7RC.mjs +1315 -0
- package/dist/chunk-TJI3K6RP.js +137 -0
- package/dist/chunk-TL2SVO4P.mjs +55 -0
- package/dist/chunk-TM63CYGN.mjs +399 -0
- package/dist/chunk-TU5RYTYU.mjs +13 -0
- package/dist/chunk-TVJZ4GPS.js +1553 -0
- package/dist/chunk-TWM6DLYF.js +371 -0
- package/dist/chunk-U63OC4TQ.js +30 -0
- package/dist/{chunk-L5GKVQVJ.js → chunk-U6BVSJZ6.js} +25 -57
- package/dist/chunk-U6UVWEAK.mjs +792 -0
- package/dist/chunk-UCEPNO6N.mjs +11048 -0
- package/dist/{chunk-ANT574FD.js → chunk-UCR5HRYM.js} +74 -105
- package/dist/chunk-UG5BTOTF.mjs +334 -0
- package/dist/chunk-UGH37BQW.mjs +157 -0
- package/dist/chunk-V7ZRH3PY.mjs +271 -0
- package/dist/chunk-VBGHBL3E.mjs +1394 -0
- package/dist/chunk-VRBDAS5I.js +920 -0
- package/dist/chunk-VVE3Y76O.js +230 -0
- package/dist/chunk-W65JIRI4.mjs +1182 -0
- package/dist/chunk-WHYKAT7G.js +62 -0
- package/dist/{chunk-YOIVZ6OA.mjs → chunk-WIZRUIZB.mjs} +25 -57
- package/dist/chunk-WKWTDZS7.js +385 -0
- package/dist/chunk-WLMINRC4.mjs +78 -0
- package/dist/chunk-WOF3AD3J.js +22 -0
- package/dist/chunk-WWKMOA76.js +1262 -0
- package/dist/chunk-X5A5FOWW.js +615 -0
- package/dist/chunk-X6CN6KQF.mjs +192 -0
- package/dist/chunk-XD2PMH46.mjs +517 -0
- package/dist/chunk-XJA2NGTI.mjs +88 -0
- package/dist/chunk-XJIHN3BY.mjs +8 -0
- package/dist/chunk-XK6UDWJS.js +203 -0
- package/dist/chunk-XPG3N5CF.mjs +415 -0
- package/dist/chunk-XVZ2NKSU.mjs +74 -0
- package/dist/chunk-XYP45OLE.js +117 -0
- package/dist/chunk-XZSDGZX6.mjs +301 -0
- package/dist/chunk-Y2EMGN4T.mjs +120 -0
- package/dist/chunk-Y3XWP5XW.mjs +298 -0
- package/dist/chunk-Y4K22JL6.js +228 -0
- package/dist/chunk-Y65LXQGA.mjs +3164 -0
- package/dist/chunk-Y66WVMO5.mjs +87 -0
- package/dist/chunk-Y7JWLB25.mjs +7280 -0
- package/dist/chunk-YCDXAJKU.js +175 -0
- package/dist/chunk-YRDQCCIS.js +152 -0
- package/dist/chunk-YV52DGSA.js +111 -0
- package/dist/chunk-YXGZQPUD.js +94 -0
- package/dist/chunk-Z3A3AFVU.mjs +102 -0
- package/dist/chunk-ZCY6YKKP.mjs +475 -0
- package/dist/chunk-ZEQHXVU5.js +215 -0
- package/dist/chunk-ZF7JCXCI.js +284 -0
- package/dist/chunk-ZJBRUH6V.js +29 -0
- package/dist/chunk-ZMIL4ZOA.js +365 -0
- package/dist/chunk-ZR5ULMN2.mjs +337 -0
- package/dist/chunk-ZXREOYOW.js +87 -0
- package/dist/{client-BSP9U1O1.d.mts → client-CX_WR0-J.d.mts} +2 -2
- package/dist/client-Dytx_ZTC.d.ts +230 -0
- package/dist/{client-B878xeAP.d.ts → client-dqOhP9Nc.d.ts} +2 -2
- package/dist/client-hTKbCuhG.d.mts +230 -0
- package/dist/clock-B-UAjkKa.d.mts +5 -0
- package/dist/clock-B-UAjkKa.d.ts +5 -0
- package/dist/config-BlXQluJR.d.mts +36 -0
- package/dist/config-BlXQluJR.d.ts +36 -0
- package/dist/courier-Cnn-edJ4.d.ts +95 -0
- package/dist/courier-FmGfkvIN.d.mts +95 -0
- package/dist/crowd-DdHFbqKK.d.ts +186 -0
- package/dist/crowd-hOVSAmA3.d.mts +186 -0
- package/dist/danfo-BEBapFlX.d.mts +146 -0
- package/dist/danfo-UQ_PTIIx.d.ts +146 -0
- package/dist/{elements-Bty6Qs_N.d.mts → elements-DdsRig-2.d.mts} +1548 -257
- package/dist/{elements-Bty6Qs_N.d.ts → elements-DdsRig-2.d.ts} +1548 -257
- package/dist/engines/godot.d.mts +56 -0
- package/dist/engines/godot.d.ts +56 -0
- package/dist/engines/godot.js +28 -0
- package/dist/engines/godot.mjs +3 -0
- package/dist/engines/wasm.d.mts +11 -0
- package/dist/engines/wasm.d.ts +11 -0
- package/dist/engines/wasm.js +178 -0
- package/dist/engines/wasm.mjs +176 -0
- package/dist/fallback-CrG_lTFk.d.mts +270 -0
- package/dist/fallback-CrG_lTFk.d.ts +270 -0
- package/dist/fallback-KDB4Y2CE.mjs +6 -0
- package/dist/fallback-Y26TQENE.js +19 -0
- package/dist/features-CZB4rmcD.d.mts +118 -0
- package/dist/features-CZB4rmcD.d.ts +118 -0
- package/dist/fit-BWiE7rgA.d.mts +44 -0
- package/dist/fit-DK0oT7zO.d.ts +44 -0
- package/dist/five-a-side-Bv1AOUy3.d.mts +115 -0
- package/dist/five-a-side-EC51SJY1.d.ts +115 -0
- package/dist/fluid-ARr0qUIL.d.ts +939 -0
- package/dist/fluid-DLlEj2cs.d.mts +939 -0
- package/dist/game/conformance.d.mts +84 -0
- package/dist/game/conformance.d.ts +84 -0
- package/dist/game/conformance.js +1025 -0
- package/dist/game/conformance.mjs +994 -0
- package/dist/game/heap.d.mts +40 -0
- package/dist/game/heap.d.ts +40 -0
- package/dist/game/heap.js +48 -0
- package/dist/game/heap.mjs +7 -0
- package/dist/game/kit/canvas.d.mts +240 -0
- package/dist/game/kit/canvas.d.ts +240 -0
- package/dist/game/kit/canvas.js +3566 -0
- package/dist/game/kit/canvas.mjs +1039 -0
- package/dist/game/kit/courier.d.mts +17 -0
- package/dist/game/kit/courier.d.ts +17 -0
- package/dist/game/kit/courier.js +66 -0
- package/dist/game/kit/courier.mjs +49 -0
- package/dist/game/kit/danfo.d.mts +11 -0
- package/dist/game/kit/danfo.d.ts +11 -0
- package/dist/game/kit/danfo.js +109 -0
- package/dist/game/kit/danfo.mjs +44 -0
- package/dist/game/kit/engine.d.mts +29 -0
- package/dist/game/kit/engine.d.ts +29 -0
- package/dist/game/kit/engine.js +183 -0
- package/dist/game/kit/engine.mjs +30 -0
- package/dist/game/kit/five-a-side.d.mts +11 -0
- package/dist/game/kit/five-a-side.d.ts +11 -0
- package/dist/game/kit/five-a-side.js +86 -0
- package/dist/game/kit/five-a-side.mjs +41 -0
- package/dist/game/kit/frontier.d.mts +344 -0
- package/dist/game/kit/frontier.d.ts +344 -0
- package/dist/game/kit/frontier.js +435 -0
- package/dist/game/kit/frontier.mjs +14 -0
- package/dist/game/kit/genesis.d.mts +752 -0
- package/dist/game/kit/genesis.d.ts +752 -0
- package/dist/game/kit/genesis.js +380 -0
- package/dist/game/kit/genesis.mjs +15 -0
- package/dist/game/kit/ludo.d.mts +15 -0
- package/dist/game/kit/ludo.d.ts +15 -0
- package/dist/game/kit/ludo.js +87 -0
- package/dist/game/kit/ludo.mjs +42 -0
- package/dist/game/kit/runner.d.mts +12 -0
- package/dist/game/kit/runner.d.ts +12 -0
- package/dist/game/kit/runner.js +83 -0
- package/dist/game/kit/runner.mjs +46 -0
- package/dist/game/kit/shootout.d.mts +13 -0
- package/dist/game/kit/shootout.d.ts +13 -0
- package/dist/game/kit/shootout.js +122 -0
- package/dist/game/kit/shootout.mjs +57 -0
- package/dist/game/kit/slots.d.mts +392 -0
- package/dist/game/kit/slots.d.ts +392 -0
- package/dist/game/kit/slots.js +215 -0
- package/dist/game/kit/slots.mjs +6 -0
- package/dist/game/kit/tycoon.d.mts +16 -0
- package/dist/game/kit/tycoon.d.ts +16 -0
- package/dist/game/kit/tycoon.js +145 -0
- package/dist/game/kit/tycoon.mjs +44 -0
- package/dist/game/kit/word.d.mts +11 -0
- package/dist/game/kit/word.d.ts +11 -0
- package/dist/game/kit/word.js +78 -0
- package/dist/game/kit/word.mjs +41 -0
- package/dist/game/kit/worlds.d.mts +18 -0
- package/dist/game/kit/worlds.d.ts +18 -0
- package/dist/game/kit/worlds.js +74 -0
- package/dist/game/kit/worlds.mjs +49 -0
- package/dist/game/kit.d.mts +53 -0
- package/dist/game/kit.d.ts +53 -0
- package/dist/game/kit.js +2610 -0
- package/dist/game/kit.mjs +101 -0
- package/dist/game/prepared.d.mts +14 -0
- package/dist/game/prepared.d.ts +14 -0
- package/dist/game/prepared.js +81 -0
- package/dist/game/prepared.mjs +32 -0
- package/dist/game-Bx8onkhX.d.mts +1451 -0
- package/dist/game-fgQy2YIm.d.ts +1451 -0
- package/dist/game-theme-CBTw1b_d.d.mts +35 -0
- package/dist/game-theme-Dg-ict5A.d.ts +35 -0
- package/dist/game.d.mts +3546 -0
- package/dist/game.d.ts +3546 -0
- package/dist/game.js +4455 -0
- package/dist/game.mjs +50 -0
- package/dist/graphics-C6YjWYvP.d.ts +5 -0
- package/dist/graphics-Dk2yQnYN.d.mts +5 -0
- package/dist/guest-DrsA00XD.d.mts +732 -0
- package/dist/guest-wIdfoT05.d.ts +732 -0
- package/dist/hit-stop-BKkVwTq7.d.mts +43 -0
- package/dist/hit-stop-D-8pPYnM.d.ts +43 -0
- package/dist/hot-Crn9XpHJ.d.ts +29 -0
- package/dist/hot-DH3nOhQD.d.mts +29 -0
- package/dist/{index-CQStGb3B.d.mts → index-6gkHMGAq.d.mts} +2 -2
- package/dist/index-B8ybCKJI.d.ts +41 -0
- package/dist/{index-DJwXmoaP.d.ts → index-B98Xac8e.d.ts} +2 -2
- package/dist/{index-B7oA_1XI.d.ts → index-B_ByTtIT.d.ts} +2 -2
- package/dist/index-DHjNHb1c.d.mts +41 -0
- package/dist/{index-DhUSTAhT.d.mts → index-DbAN_VQE.d.mts} +2 -2
- package/dist/index.d.mts +134 -24
- package/dist/index.d.ts +134 -24
- package/dist/index.js +407 -248
- package/dist/index.mjs +184 -58
- package/dist/interactives-authoring.d.mts +231 -0
- package/dist/interactives-authoring.d.ts +231 -0
- package/dist/interactives-authoring.js +1743 -0
- package/dist/interactives-authoring.mjs +1704 -0
- package/dist/interactives-canvas.global.js +148 -0
- package/dist/interactives-guest.d.mts +20 -0
- package/dist/interactives-guest.d.ts +20 -0
- package/dist/interactives-guest.js +63 -0
- package/dist/interactives-guest.json +1 -0
- package/dist/interactives-guest.mjs +61 -0
- package/dist/interactives-jsc.global.js +9357 -0
- package/dist/interactives-meters.d.mts +93 -0
- package/dist/interactives-meters.d.ts +93 -0
- package/dist/interactives-meters.js +252 -0
- package/dist/interactives-meters.mjs +68 -0
- package/dist/interactives-production.d.mts +430 -0
- package/dist/interactives-production.d.ts +430 -0
- package/dist/interactives-production.js +1231 -0
- package/dist/interactives-production.mjs +1170 -0
- package/dist/interactives-record.d.mts +112 -0
- package/dist/interactives-record.d.ts +112 -0
- package/dist/interactives-record.js +302 -0
- package/dist/interactives-record.mjs +295 -0
- package/dist/interactives-runtime.d.mts +61 -0
- package/dist/interactives-runtime.d.ts +61 -0
- package/dist/interactives-runtime.js +442 -0
- package/dist/interactives-runtime.mjs +25 -0
- package/dist/interactives-studio-kernel.global.js +1 -0
- package/dist/interactives-studio.d.mts +806 -0
- package/dist/interactives-studio.d.ts +806 -0
- package/dist/interactives-studio.js +5741 -0
- package/dist/interactives-studio.mjs +5651 -0
- package/dist/interactives-tick.d.mts +90 -0
- package/dist/interactives-tick.d.ts +90 -0
- package/dist/interactives-tick.js +203 -0
- package/dist/interactives-tick.mjs +6 -0
- package/dist/interactives-web.d.mts +762 -0
- package/dist/interactives-web.d.ts +762 -0
- package/dist/interactives-web.js +5000 -0
- package/dist/interactives-web.mjs +4628 -0
- package/dist/interactives.d.mts +2430 -0
- package/dist/interactives.d.ts +2430 -0
- package/dist/interactives.js +5723 -0
- package/dist/interactives.mjs +4333 -0
- package/dist/juice-CoHxlpKA.d.ts +42 -0
- package/dist/juice-DQztFS43.d.mts +42 -0
- package/dist/launch-T2f4_Di4.d.mts +151 -0
- package/dist/launch-d6oreMzR.d.ts +151 -0
- package/dist/library-DXYaMFhi.d.mts +69 -0
- package/dist/library-DXYaMFhi.d.ts +69 -0
- package/dist/link-BUTqGmyi.d.mts +38 -0
- package/dist/link-BUTqGmyi.d.ts +38 -0
- package/dist/lint.js +104 -204
- package/dist/lint.mjs +103 -203
- package/dist/local-D8_I6UeL.d.mts +6967 -0
- package/dist/local-VZkqsCzR.d.ts +6967 -0
- package/dist/lockstep-BLf6dglI.d.mts +321 -0
- package/dist/lockstep-D50Ia0JW.d.ts +321 -0
- package/dist/ludo-B8ClkDqr.d.ts +205 -0
- package/dist/ludo-BOuohQ-M.d.mts +205 -0
- package/dist/mock/cli.mjs +200 -56
- package/dist/mock/library.js +200 -56
- package/dist/mock/library.mjs +200 -56
- package/dist/mock/msw.js +200 -56
- package/dist/mock/msw.mjs +200 -56
- package/dist/native-BodxSh03.d.mts +16 -0
- package/dist/native-DUHMT8gA.d.ts +16 -0
- package/dist/network-ZXLD7l1b.d.mts +19 -0
- package/dist/network-ZXLD7l1b.d.ts +19 -0
- package/dist/online-XeymeM9s.d.ts +381 -0
- package/dist/online-d7W_Al9a.d.mts +381 -0
- package/dist/params-DxFb5G_U.d.mts +155 -0
- package/dist/params-DxFb5G_U.d.ts +155 -0
- package/dist/play-BRRlfLhX.d.ts +940 -0
- package/dist/play-ClrMd_e8.d.mts +940 -0
- package/dist/policy-CCw8tXLm.d.mts +3078 -0
- package/dist/policy-CMqOSQIu.d.ts +3078 -0
- package/dist/ports-B_0v_P3A.d.mts +13 -0
- package/dist/ports-CGU_3e_0.d.ts +13 -0
- package/dist/prefetch-BHnicOQj.d.ts +117 -0
- package/dist/prefetch-CBXgYacv.d.mts +117 -0
- package/dist/{price-CSztR02F.d.mts → price-BOzexBww.d.mts} +1 -1
- package/dist/{price-C_vasx9A.d.ts → price-C1h9sPxE.d.ts} +1 -1
- package/dist/protocol-C8qbpUbT.d.mts +242 -0
- package/dist/protocol-C8qbpUbT.d.ts +242 -0
- package/dist/rapier-AZHT4YI7.js +7886 -0
- package/dist/rapier-ODEPCQA6.mjs +7792 -0
- package/dist/react.d.mts +157 -15
- package/dist/react.d.ts +157 -15
- package/dist/react.js +5564 -5904
- package/dist/react.mjs +5451 -5808
- package/dist/runner-CQcLL7By.d.ts +189 -0
- package/dist/runner-D46Yj-wE.d.mts +189 -0
- package/dist/runtime-BRWfkf_q.d.mts +51 -0
- package/dist/runtime-DyuBMkKM.d.ts +51 -0
- package/dist/scheduling-D2ajXpMC.d.ts +224 -0
- package/dist/scheduling-DSRbbaZb.d.mts +224 -0
- package/dist/schema-BrWxzKp6.d.mts +63 -0
- package/dist/schema-BrWxzKp6.d.ts +63 -0
- package/dist/server/evict.js +34 -37
- package/dist/server/evict.mjs +34 -37
- package/dist/server/tanstack.d.mts +49 -3
- package/dist/server/tanstack.d.ts +49 -3
- package/dist/server/tanstack.js +169 -117
- package/dist/server/tanstack.mjs +166 -118
- package/dist/{server-Dckg4Vdr.d.ts → server-D29IIuDV.d.ts} +136 -130
- package/dist/{server-B6dW7-Lj.d.mts → server-DQMWPnc8.d.mts} +136 -130
- package/dist/server.d.mts +45 -5
- package/dist/server.d.ts +45 -5
- package/dist/server.js +171 -227
- package/dist/server.mjs +165 -225
- package/dist/session-grant-CJ27DwrT.d.mts +19 -0
- package/dist/session-grant-CJ27DwrT.d.ts +19 -0
- package/dist/shootout-BJZeX6FG.d.ts +140 -0
- package/dist/shootout-tcZd1Rxt.d.mts +140 -0
- package/dist/state-replica-stMtdkVD.d.mts +42 -0
- package/dist/state-replica-stMtdkVD.d.ts +42 -0
- package/dist/studio-CowqWqez.d.mts +14 -0
- package/dist/studio-CowqWqez.d.ts +14 -0
- package/dist/styles.css +1 -1
- package/dist/template-AhCdB1kW.d.mts +190 -0
- package/dist/template-BkEGVTQj.d.ts +190 -0
- package/dist/terrain-BMxEc6Oc.d.ts +429 -0
- package/dist/terrain-C-XC1Oui.d.mts +429 -0
- package/dist/testing/msw.d.mts +28 -4
- package/dist/testing/msw.d.ts +28 -4
- package/dist/testing/msw.js +15 -21
- package/dist/testing/msw.mjs +15 -21
- package/dist/testing/suite.d.mts +6 -5
- package/dist/testing/suite.d.ts +6 -5
- package/dist/testing/suite.js +89 -124
- package/dist/testing/suite.mjs +81 -116
- package/dist/testing.d.mts +27 -1227
- package/dist/testing.d.ts +27 -1227
- package/dist/testing.js +127 -131
- package/dist/testing.mjs +19 -23
- package/dist/tick-transport-C8QEh8Uw.d.mts +50 -0
- package/dist/tick-transport-UjHY3xK1.d.ts +50 -0
- package/dist/timeline-protocol-hp6e8zFB.d.mts +47 -0
- package/dist/timeline-protocol-hp6e8zFB.d.ts +47 -0
- package/dist/tokens-DhanQRQS.d.mts +21 -0
- package/dist/tokens-K8yxwd6G.d.ts +21 -0
- package/dist/tree-C-Io2Hbx.d.mts +35 -0
- package/dist/tree-CP_qSW4H.d.ts +35 -0
- package/dist/tycoon-B5KHk2Xx.d.mts +255 -0
- package/dist/tycoon-hmHo-3HX.d.ts +255 -0
- package/dist/types-BQkxPwZP.d.mts +219 -0
- package/dist/types-D_f6UUxM.d.ts +219 -0
- package/dist/ui-DwHicuFv.d.mts +563 -0
- package/dist/ui-hi7S2YcH.d.ts +563 -0
- package/dist/{sign-in-DQlIdqsi.d.mts → url-52ndUruG.d.mts} +15 -1
- package/dist/{sign-in-DQlIdqsi.d.ts → url-52ndUruG.d.ts} +15 -1
- package/dist/utils.d.mts +3 -3
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +37 -37
- package/dist/utils.mjs +4 -4
- package/dist/vars-Dc_PrhBK.d.mts +511 -0
- package/dist/vars-Dc_PrhBK.d.ts +511 -0
- package/dist/vm-IUARFFAI.mjs +63 -0
- package/dist/vm-N7L6MGGH.js +65 -0
- package/dist/weave-delivery-CW-Kstut.d.mts +360 -0
- package/dist/weave-delivery-CW-Kstut.d.ts +360 -0
- package/dist/web-Dss74a7v.d.ts +883 -0
- package/dist/web-f9ZQPoyw.d.mts +883 -0
- package/dist/web-transport-C7MkBL0a.d.ts +19 -0
- package/dist/web-transport-aYEqXMd9.d.mts +19 -0
- package/dist/weight-CPGjsgjV.d.ts +92 -0
- package/dist/weight-tF1ODR1p.d.mts +92 -0
- package/dist/word-BcX9Jcmv.d.mts +70 -0
- package/dist/word-C7sVPLHm.d.ts +70 -0
- package/dist/world-PvILHDR1.d.ts +2285 -0
- package/dist/world-qekkXjJv.d.mts +2285 -0
- package/dist/worlds-Br2Pb0Cs.d.ts +109 -0
- package/dist/worlds-D5ydYr7d.d.mts +109 -0
- package/engines/c/cimplify.h +108 -0
- package/engines/c/cimplify.lib.js +11 -0
- package/engines/godot/addons/cimplify/cimplify.gd +97 -0
- package/engines/rust/interactives-ctx/Cargo.toml +9 -0
- package/engines/rust/interactives-ctx/src/lib.rs +189 -0
- package/package.json +189 -3
- package/vendor/rapier3d-compat/LICENSE +201 -0
- package/vendor/rapier3d-compat/PATCHES.md +61 -0
- package/dist/chunk-2P4KXFB6.js +0 -274
- package/dist/chunk-3G6RQLXK.mjs +0 -21
- package/dist/chunk-3V4DVXV3.mjs +0 -254
- package/dist/chunk-EDK3LNM6.js +0 -2436
- package/dist/chunk-F7J3HK27.js +0 -4549
- package/dist/chunk-U4MW6PYU.mjs +0 -23
- package/dist/chunk-XREIZ56K.js +0 -26
|
@@ -0,0 +1,3078 @@
|
|
|
1
|
+
import { dO as CtxAchievements, eq as CtxWallet, m0 as WalletOffer, kx as SpendAllowance, kC as SpendResult, iW as ReplayRules, iT as ReplayClass, iX as ReplayScoreRule, iV as ReplayRecording, en as CtxSocial, B as CtxRequest, dD as CounterApi, $ as Persona, hA as ParticipantId, d0 as ChallengeResult, a7 as SocialPostResult, iH as RankMode, kt as SortDirection, ez as DataScope, iL as RankedEntry, e7 as CtxLeaderboards, jO as ScoreReceipt, gG as LeaderboardScope, gH as LeaderboardWindow, gE as LeaderboardPage, je as RoomApi, U as Unsubscribe, bd as AiResult, j as AiRun, b5 as AiEvent, a4 as MediaRef, e5 as CtxIdentity, bX as AvatarConsent, cQ as CapturedIdentity, X as DeclaredAgeRange, dV as CtxCamera, cG as CameraFacing, cN as CameraViewPlacement, cL as CameraView, F as FaceColours, fe as FACE_LAYOUT, fZ as IdentityCaptureCode, e9 as CtxMedia, fV as HostCall, ac as GraphicsSurface, kk as ShareAudience, a8 as ShareResult } from './local-VZkqsCzR.js';
|
|
2
|
+
import { K as KeySource } from './ports-CGU_3e_0.js';
|
|
3
|
+
import { E as Economy } from './tycoon-hmHo-3HX.js';
|
|
4
|
+
import { E as EconomyDecl, i as InWorldContext, b as CimplesOffer, D as DisclosedOdds, F as Faucet, h as GenreTemplate } from './template-BkEGVTQj.js';
|
|
5
|
+
import { S as SeededRandom, d as MessageType, e as GameNet, G as Game, f as GameUi, g as ChemistryRegion, h as ChemistryEvent, i as CELL_CLASSES, j as CHEMISTRY_EVENT_KINDS, k as CHEMISTRY_GROUPS$1, l as CHEMISTRY_REFUSALS, m as CHEMISTRY_REFUSAL_TEXT, n as CellBox, o as CellClass, p as CellProbe, C as Chemistry, q as ChemistryEventKind, r as ChemistryGroup, s as ChemistryMemory, t as ChemistryParticles, u as ChemistryRefusal, v as ChemistryVessel, b as DefineResult, w as MaterialInfo, N as NatureOptions, x as ReactionInfo, y as ReactionTerm, z as RegionOptions, B as RegionStats, V as VesselState, E as groupNames, I as InputActions, A as ActionId } from './game-fgQy2YIm.js';
|
|
6
|
+
import { h as TurnRoomPort, M as MoveListener, R as ResetListener, g as TurnHistory } from './ludo-B8ClkDqr.js';
|
|
7
|
+
import { aW as RollbackState, b as AssetSource, N as NodeId, v as TextureId, F as FrameTime, br as CHEMISTRY_ATMOSPHERE, bs as CHEMISTRY_BOX_WORDS, bt as CHEMISTRY_COLUMNS, bu as CHEMISTRY_EVENT_HEADER, bv as CHEMISTRY_EVENT_WORDS, bw as CHEMISTRY_EXPORT_NAMES, bx as CHEMISTRY_NATURE_WORDS, by as CHEMISTRY_PROBE_WORDS, bz as CHEMISTRY_REACTION_WORDS, bA as CHEMISTRY_REFUSED, bB as CHEMISTRY_SLOTS, bC as CHEMISTRY_SPECIES_WORDS, bD as CHEMISTRY_STATS_WORDS, bE as CHEMISTRY_TQ, bF as CHEMISTRY_UNSET, bG as CHEMISTRY_VACUUM, bH as CHEMISTRY_VESSEL_SLOTS, bI as CHEMISTRY_VESSEL_WORDS, aA as ChemistryEngine, bJ as ChemistryExportName, bK as ChemistryExports, bL as bindChemistryEngine, V as Vec3$1, aw as Quat, f as Vec3Like, a9 as PickHit, am as ClipAnimationPort, al as ClipActionId, bM as ClipLoop, ar as BlendSpaceId, aq as ClipEvent, i as GeometryId, j as MaterialId, bN as LightKind, aj as ModelInfo, $ as MaterialTextureSlot, D as DeviceTier, af as WeatherState, aZ as ComponentMemory, bO as TypedArray, aX as Scalar, aY as ArrayFor, bg as WorldSnapshots, a_ as TransformColumns, bP as PhysicsWorldDesc, bk as Ragdoll } from './backend-gUCzs5Kg.js';
|
|
8
|
+
import { E as Entity, K as KernelRunner, T as Transforms } from './world-PvILHDR1.js';
|
|
9
|
+
import { b as Graphics, I as InstancedBatch, G as GameScene, a as GameSystem } from './fluid-ARr0qUIL.js';
|
|
10
|
+
import { a as IdentityParams, I as IdentityBase } from './params-DxFb5G_U.js';
|
|
11
|
+
import { a as IdentityFitter, I as IdentityCapture, b as IdentityFitOptions, c as IdentityFit } from './fit-DK0oT7zO.js';
|
|
12
|
+
import { V as Vec3Array } from './courier-Cnn-edJ4.js';
|
|
13
|
+
import { bs as ThirdPersonRig, bz as TouchViewportSource, by as TouchViewport, ab as ClipEventReader } from './play-BRRlfLhX.js';
|
|
14
|
+
import { SlotMap, SlotTemplate, SlotValues, RemixManifest, RemixSources, ThemeSlot, CharacterSlot, TrackSlot, ParamsSlot } from './game/kit/slots.js';
|
|
15
|
+
import { E as EndlessRunner } from './runner-CQcLL7By.js';
|
|
16
|
+
import { P as PenaltyShootout } from './shootout-BJZeX6FG.js';
|
|
17
|
+
import { G as GameTheme } from './game-theme-Dg-ict5A.js';
|
|
18
|
+
import { G as GameUi$1 } from './ui-hi7S2YcH.js';
|
|
19
|
+
import { AI_CAPABILITY, BOX_CAPACITY, CHEMISTRY_GROUPS, CHEMISTRY_PROMPT, CHEMISTRY_SCHEMA, CHEMISTRY_SCHEMA_NAME, CHEMISTRY_TEMPLATE, ChemistryAi, ChemistryRequest, EVENT, EVENT_A, EVENT_B, EVENT_C_HIGH, EVENT_C_LOW, EVENT_KIND, EVENT_PLAYER, EVENT_WORDS, FIELD, FRAME_MAGIC, FRAME_VERSION, FrontierCommands, FrontierLink, FrontierMirror, FrontierPlanet, FrontierPlanetOptions, FrontierSession, HEADER_BYTES, HEALTH_FIELDS, HERD, HERD_FIELDS, HERD_HEALTH, INVENTION_SCHEMA, INVENT_PROMPT, INVENT_SCHEMA, INVENT_TEMPLATE, InventionAi, InventionRequest, KINDS, LANES, LAYER, MACHINE_FLAG, MAX_ACTIVATION, MAX_BEHAVIOURS, MAX_CHEMISTRY_NAME, MAX_COUNT, MAX_DENSITY, MAX_ENTHALPY, MAX_GROUPS, MAX_GROUP_CHARS, MAX_HARDNESS, MAX_HEAT_CAPACITY, MAX_INGREDIENTS, MAX_KELVIN, MAX_KNOWN_CHARS, MAX_LATENT, MAX_MATERIAL_CHARS, MAX_NAME_CHARS, MAX_PARAM, MAX_QUANTITY, MAX_RATE_MILLI, MAX_STEPS, MAX_STEP_VALUE, MAX_SURVEYED, MAX_TERMS, MIRROR_EVENTS, PLOT, PLOT_FIELDS, PLOT_HEALTH, PROCESSES, REACTOR, REACTOR_FIELDS, REACTOR_SLOTS, REGION_METRES, ReplayFrontierLink, SLOT_FIELDS, TickFrontierLink, VERBS, chemistryRequest, frontierAiSection, frontierAiToml, frontierChemistryAiSection, inventionRequest, itemFromCode, joinFrontierPlanet, requestChemistry, requestInvention } from './game/kit/frontier.js';
|
|
20
|
+
import { A as ACTION, a as ACTION_BASE, b as AI_RUN_BYTES, c as AI_RUN_PREFIX, C as CHANNEL, d as COMPARE, e as CommandWriter, F as FRONTIER_CHANNEL_SLOT, f as FrontierCommand, I as INVENTION_FLAG, M as MAX_COMMAND_BYTES, N as NO_INVENTION, g as NO_ITEM$1, P as PATHOGEN, h as PROCESS, R as RUN_ID_BYTES, i as RegionRef, T as TRAIT, j as actionOf, k as encodeCommand, l as inventionItem, m as isInvention, n as materialItem, r as regionFromBigInt, o as regionKey, p as runIdFromAiRun, q as runIdFromHex } from './protocol-C8qbpUbT.js';
|
|
21
|
+
import { C as CHEMISTRY_AI_CAPABILITY, a as CHEMISTRY_PROMPT$1, b as CHEMISTRY_SCHEMA$1, c as CHEMISTRY_TEMPLATE$1, d as ChemistryAi$1, M as MAX_FORMULA, e as MAX_KNOWN_CHARS$1, f as MAX_NAME, g as MAX_SPECIES, h as MAX_TERMS$1, P as PROPOSAL_SCHEMA, i as Proposal, j as ProposedMaterial, k as ProposedTerm, R as ReactionIdea, l as chemistryAiSection, m as chemistryAiToml, n as knownMaterials, p as proposalText, o as proposeReaction, r as reactionRequest, q as PointerLockTarget, s as PointerLockDocument, t as CameraProjection, T as Terrain } from './terrain-BMxEc6Oc.js';
|
|
22
|
+
import { ACTION as ACTION$1, AI_CAPABILITY as AI_CAPABILITY$1, BLESSED, BOX_CAPACITY as BOX_CAPACITY$1, ByteWriter, CHRONICLE_MAX_UNITS, CHRONICLE_PROMPT, CHRONICLE_TEMPLATE, CONSTITUTION_PROMPT, CONSTITUTION_SCHEMA, CONSTITUTION_SCHEMA_NAME, CONSTITUTION_TEMPLATE, CURSED, ChronicleRequest, Clause, Constitution, ConstitutionRequest, DECREE_REFUSALS, DECREE_REFUSAL_BASE, DEFAULT_NATURE, DESTINY, DISASTER, Decree, EDIT_RING, ENVELOPE, Edit, Effect, EraReply, FACT_KINDS, FACT_RING, FACT_SLOTS, FIELD as FIELD$1, FORECAST_FAILED, FRAME, Fact, FaithRecord, Filter, ForecastReply, ForecastYear, Found, GENESIS_ACTIVE_WORDS, GENESIS_CHANNEL_SLOT, GENESIS_EXPORT_NAMES, GENESIS_INDICATOR_WORDS, GENESIS_OPEN_WORDS, GENESIS_REFUSED, GENESIS_SETTLEMENT_WORDS, GIFTED, GOVERNMENT, GenesisAi, GenesisCommands, GenesisEngine, GenesisExportName, GenesisExports, GenesisLink, GenesisMirror, GenesisNature, GenesisSession, GenesisState, GenesisWorld, GenesisWorldOptions, HUMAN, LAT_BANDS_MAX, LocalGenesis, LocalIndicators, LocalStart, MAX_DECREE_BYTES, MAX_FACT_CHARS, MAX_FAITHS, MAX_NAME_CHARS as MAX_NAME_CHARS$1, MAX_SETTLEMENTS, MAX_WORLD_CHARS, MONTHS_PER_YEAR, NONE, NO_FAITH, NameRefusal, Nature, OP, Office, PROPERTY, PersonRecord, Power, Predicate, Q16, REFUSED_DRAFT, REFUSED_FULL, REFUSED_MALFORMED, REFUSED_SEAT, RIGHT, RIGHTS_ALL, RUN_ID_BYTES as RUN_ID_BYTES$1, ReplayGenesisLink, Review, Rule, SELECTION, SINK, START_MONTH, Species, TERRAIN, TIER, TRIGGER, Target, TickGenesisLink, applyNature, bindGenesisEngine, chronicleRequest, constitutionRequest, encodeDecree, encodeReviewedLaw, factsText, finalize, genesisAiSection, genesisAiToml, joinGenesisWorld, mix, nameOf, percentQ16, ratioQ16, requestChronicle, requestConstitution, screenName, writeConstitution, writeNature, yearOf } from './game/kit/genesis.js';
|
|
23
|
+
import { b as CompiledThing, s as ThingEffect, t as ThingEffectKind, V as Vec3$2, D as ThingShapeKind, r as ThingCombine, z as ThingMirror, A as ThingPart, B as ThingShape, H as WorldDoc, P as PhoneCost, N as Point2, R as Road, K as WorldPlacement, G as GroundStroke, l as ScatterStroke, F as WeatherPreset, O as WorldSky } from './types-D_f6UUxM.js';
|
|
24
|
+
import { S as SoundId } from './audio-m0w8cnxq.js';
|
|
25
|
+
import { S as SceneCatalogue } from './catalogue-DzrTXP3v.js';
|
|
26
|
+
import { W as WorldWeight } from './weight-CPGjsgjV.js';
|
|
27
|
+
import { w as UiBinding, q as MusicBed, j as CrowdDoc, c as BindState, A as AdaptiveMusic, g as CheerMeter, h as Conductor, x as VotePoll } from './crowd-DdHFbqKK.js';
|
|
28
|
+
import { b as StudioOutgoing, a as StudioMessage } from './studio-CowqWqez.js';
|
|
29
|
+
import { E as EngineRuntime, c as EngineExports } from './runtime-DyuBMkKM.js';
|
|
30
|
+
|
|
31
|
+
type KitErrorCode = "invalid_declaration" | "one_way_money" | "odds_required" | "odds_mismatch" | "catalogue_mismatch" | "minor_restricted" | "spend_limited" | "consent_denied" | "newer_save" | "invalid_save" | "illegal_move" | "not_your_turn" | "seam_unavailable" | "capacity_exceeded";
|
|
32
|
+
declare class KitError extends Error {
|
|
33
|
+
readonly code: KitErrorCode;
|
|
34
|
+
constructor(code: KitErrorCode, message: string);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare const achievementSlotBrand: unique symbol;
|
|
38
|
+
type AchievementSlot = number & {
|
|
39
|
+
readonly [achievementSlotBrand]: true;
|
|
40
|
+
};
|
|
41
|
+
declare const NO_ACHIEVEMENT = -1;
|
|
42
|
+
interface AchievementDecl<Id extends string = string> {
|
|
43
|
+
readonly id: Id;
|
|
44
|
+
readonly target: number;
|
|
45
|
+
}
|
|
46
|
+
declare class Achievements<Id extends string = string> {
|
|
47
|
+
readonly decls: readonly AchievementDecl<Id>[];
|
|
48
|
+
private readonly port;
|
|
49
|
+
private readonly keys;
|
|
50
|
+
private readonly slots;
|
|
51
|
+
private readonly targets;
|
|
52
|
+
private readonly progressValues;
|
|
53
|
+
private readonly pending;
|
|
54
|
+
private readonly unlockedFlags;
|
|
55
|
+
private readonly queue;
|
|
56
|
+
private queueHead;
|
|
57
|
+
private queueCount;
|
|
58
|
+
constructor(decls: readonly AchievementDecl<Id>[], port: CtxAchievements, keys: KeySource);
|
|
59
|
+
slot(id: Id): AchievementSlot;
|
|
60
|
+
record(slot: AchievementSlot, increment?: number): void;
|
|
61
|
+
progress(slot: AchievementSlot): number;
|
|
62
|
+
unlocked(slot: AchievementSlot): boolean;
|
|
63
|
+
pollUnlocked(): AchievementSlot | typeof NO_ACHIEVEMENT;
|
|
64
|
+
sync(): Promise<void>;
|
|
65
|
+
flush(): Promise<number>;
|
|
66
|
+
private apply;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type EconomyViolationCode = "identifier" | "duplicate_id" | "currency_class" | "unknown_reference" | "class_mismatch" | "quantity" | "price" | "one_way_money" | "odds_missing" | "odds_total" | "odds_outcome" | "real_money_name" | "in_world_context";
|
|
70
|
+
interface EconomyViolation {
|
|
71
|
+
readonly code: EconomyViolationCode;
|
|
72
|
+
readonly subject: string;
|
|
73
|
+
readonly message: string;
|
|
74
|
+
}
|
|
75
|
+
declare const ECONOMY_IDENTIFIER: RegExp;
|
|
76
|
+
declare function auditEconomy(decl: EconomyDecl, context?: InWorldContext | null): EconomyViolation[];
|
|
77
|
+
|
|
78
|
+
interface ManifestCurrency {
|
|
79
|
+
readonly id: string;
|
|
80
|
+
readonly name: string;
|
|
81
|
+
readonly class: "soft" | "premium";
|
|
82
|
+
readonly inWorld: boolean;
|
|
83
|
+
}
|
|
84
|
+
interface ManifestItem {
|
|
85
|
+
readonly id: string;
|
|
86
|
+
readonly name: string;
|
|
87
|
+
readonly currency: string | null;
|
|
88
|
+
readonly price: number | null;
|
|
89
|
+
readonly random: boolean;
|
|
90
|
+
}
|
|
91
|
+
interface ManifestOdds {
|
|
92
|
+
readonly item: string;
|
|
93
|
+
readonly outcomes: readonly {
|
|
94
|
+
readonly value: string;
|
|
95
|
+
readonly partsPerMillion: number;
|
|
96
|
+
}[];
|
|
97
|
+
}
|
|
98
|
+
type ManifestGrantKind = "item" | "currency" | "unlock" | "effect";
|
|
99
|
+
interface ManifestGrant {
|
|
100
|
+
readonly kind: ManifestGrantKind;
|
|
101
|
+
readonly id: string;
|
|
102
|
+
readonly quantity: number;
|
|
103
|
+
}
|
|
104
|
+
interface ManifestOfferOutcome {
|
|
105
|
+
readonly label: string;
|
|
106
|
+
readonly partsPerMillion: number;
|
|
107
|
+
readonly grants: readonly ManifestGrant[];
|
|
108
|
+
}
|
|
109
|
+
interface ManifestOffer {
|
|
110
|
+
readonly id: string;
|
|
111
|
+
readonly name: string;
|
|
112
|
+
readonly priceCimples: number;
|
|
113
|
+
readonly grants: readonly ManifestGrant[];
|
|
114
|
+
readonly odds: readonly ManifestOfferOutcome[];
|
|
115
|
+
}
|
|
116
|
+
interface ManifestRule {
|
|
117
|
+
readonly id: string;
|
|
118
|
+
readonly kind: "faucet" | "sink";
|
|
119
|
+
readonly currency: string | null;
|
|
120
|
+
readonly item: string | null;
|
|
121
|
+
readonly maxQuantity: number;
|
|
122
|
+
}
|
|
123
|
+
interface ManifestEconomy {
|
|
124
|
+
readonly currencies: readonly ManifestCurrency[];
|
|
125
|
+
readonly items: readonly ManifestItem[];
|
|
126
|
+
readonly odds: readonly ManifestOdds[];
|
|
127
|
+
readonly offers: readonly ManifestOffer[];
|
|
128
|
+
readonly rules: readonly ManifestRule[];
|
|
129
|
+
}
|
|
130
|
+
declare function economyManifest(economy: Economy): ManifestEconomy;
|
|
131
|
+
declare function economyToml(manifest: ManifestEconomy): string;
|
|
132
|
+
|
|
133
|
+
interface PremiumStorePorts {
|
|
134
|
+
readonly wallet: Pick<CtxWallet, "offers" | "spend" | "allowance">;
|
|
135
|
+
readonly keys: KeySource;
|
|
136
|
+
}
|
|
137
|
+
interface PresentedOffer {
|
|
138
|
+
readonly offer: CimplesOffer;
|
|
139
|
+
readonly host: WalletOffer;
|
|
140
|
+
}
|
|
141
|
+
declare function oddsMatch(declared: DisclosedOdds, host: WalletOffer["odds"]): boolean;
|
|
142
|
+
declare function offerMatches(offer: CimplesOffer, host: WalletOffer): boolean;
|
|
143
|
+
declare function remainingCimples(allowance: SpendAllowance): number;
|
|
144
|
+
declare class PremiumStore {
|
|
145
|
+
private readonly economy;
|
|
146
|
+
private readonly ports;
|
|
147
|
+
private readonly verified;
|
|
148
|
+
constructor(economy: Economy, ports: PremiumStorePorts);
|
|
149
|
+
catalogue(): Promise<readonly PresentedOffer[]>;
|
|
150
|
+
allowance(): Promise<SpendAllowance>;
|
|
151
|
+
buy(offerId: string, quantity?: number): Promise<SpendResult>;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
interface DropOutcome {
|
|
155
|
+
readonly faucet: Faucet;
|
|
156
|
+
readonly quantity: number;
|
|
157
|
+
readonly weight: number;
|
|
158
|
+
}
|
|
159
|
+
declare class DropTable {
|
|
160
|
+
readonly outcomes: readonly DropOutcome[];
|
|
161
|
+
private readonly cumulative;
|
|
162
|
+
private readonly total;
|
|
163
|
+
constructor(outcomes: readonly DropOutcome[]);
|
|
164
|
+
roll(random: SeededRandom): number;
|
|
165
|
+
probability(index: number): number;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
declare const REPLAY_RATES: Readonly<Record<ReplayClass, {
|
|
169
|
+
readonly simulationHz: number;
|
|
170
|
+
readonly physicsHz: number;
|
|
171
|
+
}>>;
|
|
172
|
+
interface ReplayDeclaration {
|
|
173
|
+
readonly rules: ReplayRules;
|
|
174
|
+
readonly class: ReplayClass;
|
|
175
|
+
readonly score: ReplayScoreRule;
|
|
176
|
+
}
|
|
177
|
+
interface LocalReplay {
|
|
178
|
+
readonly score: number | null;
|
|
179
|
+
readonly digest: string;
|
|
180
|
+
}
|
|
181
|
+
declare class ReplayRecorder {
|
|
182
|
+
readonly declaration: ReplayDeclaration;
|
|
183
|
+
private readonly inputs;
|
|
184
|
+
private ticksValue;
|
|
185
|
+
private readonly external;
|
|
186
|
+
constructor(declaration: ReplayDeclaration);
|
|
187
|
+
get ticks(): number;
|
|
188
|
+
get full(): boolean;
|
|
189
|
+
record(axisX: number, axisZ: number, buttons: number): boolean;
|
|
190
|
+
reset(): void;
|
|
191
|
+
recordExternal(runId: string, outputDigest: string, bytes: Uint8Array): boolean;
|
|
192
|
+
replay(): LocalReplay;
|
|
193
|
+
recording(): ReplayRecording;
|
|
194
|
+
}
|
|
195
|
+
declare function replayInputs(inputs: Uint8Array, ticks: number, declaration: ReplayDeclaration): LocalReplay;
|
|
196
|
+
|
|
197
|
+
type CounterOpener = (request: CtxRequest<"counter.open">) => Promise<CounterApi>;
|
|
198
|
+
interface LeaderboardOptions {
|
|
199
|
+
readonly name: string;
|
|
200
|
+
readonly scope: DataScope;
|
|
201
|
+
readonly mode?: RankMode;
|
|
202
|
+
readonly direction?: SortDirection;
|
|
203
|
+
}
|
|
204
|
+
declare const FIRST_RANK = 1;
|
|
205
|
+
declare class Leaderboard {
|
|
206
|
+
readonly counter: CounterApi;
|
|
207
|
+
readonly mode: RankMode;
|
|
208
|
+
readonly direction: SortDirection;
|
|
209
|
+
private constructor();
|
|
210
|
+
static open(open: CounterOpener, options: LeaderboardOptions): Promise<Leaderboard>;
|
|
211
|
+
submit(member: string, score: number): Promise<RankedEntry>;
|
|
212
|
+
top(limit: number): Promise<readonly RankedEntry[]>;
|
|
213
|
+
rankOf(member: string): Promise<RankedEntry | null>;
|
|
214
|
+
around(member: string, radius: number): Promise<readonly RankedEntry[]>;
|
|
215
|
+
}
|
|
216
|
+
declare class RankedScores {
|
|
217
|
+
private readonly port;
|
|
218
|
+
private readonly keys;
|
|
219
|
+
constructor(port: CtxLeaderboards, keys: KeySource);
|
|
220
|
+
submit(leaderboardId: string, score: number, replay: ReplayRecorder): Promise<ScoreReceipt>;
|
|
221
|
+
page(leaderboardId: string, scope: LeaderboardScope, window: LeaderboardWindow, limit: number): Promise<LeaderboardPage>;
|
|
222
|
+
friends(leaderboardId: string, window: LeaderboardWindow, limit: number): Promise<LeaderboardPage>;
|
|
223
|
+
}
|
|
224
|
+
type ScoreDirection = "higher" | "lower";
|
|
225
|
+
declare function beats(score: number, target: number, direction: ScoreDirection): boolean;
|
|
226
|
+
type ChallengePort = Pick<CtxSocial, "friends" | "challenge" | "post">;
|
|
227
|
+
declare class FriendChallenges {
|
|
228
|
+
private readonly social;
|
|
229
|
+
constructor(social: ChallengePort);
|
|
230
|
+
friends(limit: number): Promise<readonly Persona[]>;
|
|
231
|
+
send(recipients: readonly ParticipantId[], score: number, roomId?: string | null): Promise<ChallengeResult>;
|
|
232
|
+
postResult(score: number): Promise<SocialPostResult>;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
declare class CtxTurnRoom implements TurnRoomPort {
|
|
236
|
+
private readonly room;
|
|
237
|
+
private readonly keys;
|
|
238
|
+
readonly seat: number;
|
|
239
|
+
readonly seats: number;
|
|
240
|
+
private seedValue;
|
|
241
|
+
private match;
|
|
242
|
+
private constructor();
|
|
243
|
+
static open(room: RoomApi, keys: KeySource): Promise<CtxTurnRoom>;
|
|
244
|
+
get seed(): number;
|
|
245
|
+
submit(turn: number, move: number): Promise<void>;
|
|
246
|
+
onMove(listener: MoveListener): Unsubscribe;
|
|
247
|
+
onReset(listener: ResetListener): Unsubscribe;
|
|
248
|
+
history(): Promise<TurnHistory>;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
declare const REPLAY_FORMAT_VERSION = 1;
|
|
252
|
+
interface ReplayManifest {
|
|
253
|
+
readonly version: number;
|
|
254
|
+
readonly interactive_id: string;
|
|
255
|
+
readonly revision: string;
|
|
256
|
+
readonly tick_hz: number;
|
|
257
|
+
readonly start_tick: number;
|
|
258
|
+
readonly ticks: number;
|
|
259
|
+
readonly input_stride: number;
|
|
260
|
+
readonly sections: readonly number[];
|
|
261
|
+
readonly play_from_here: boolean;
|
|
262
|
+
readonly state_digest: string;
|
|
263
|
+
readonly final_digest: string;
|
|
264
|
+
}
|
|
265
|
+
interface ReplayClip {
|
|
266
|
+
readonly manifest: ReplayManifest;
|
|
267
|
+
readonly state: Uint8Array;
|
|
268
|
+
readonly inputs: Uint8Array;
|
|
269
|
+
}
|
|
270
|
+
interface ReplaySimulation {
|
|
271
|
+
readonly states: readonly RollbackState[];
|
|
272
|
+
step(tick: number, input: Uint8Array): void;
|
|
273
|
+
}
|
|
274
|
+
declare function stateDigest(states: readonly RollbackState[]): string;
|
|
275
|
+
declare function encodeReplay(clip: ReplayClip): Uint8Array;
|
|
276
|
+
declare function decodeReplay(bytes: Uint8Array): ReplayClip;
|
|
277
|
+
interface ReplayRecorderOptions {
|
|
278
|
+
readonly window_ticks: number;
|
|
279
|
+
readonly keyframe_every: number;
|
|
280
|
+
readonly input_stride: number;
|
|
281
|
+
readonly tick_hz: number;
|
|
282
|
+
readonly interactive_id: string;
|
|
283
|
+
readonly revision: string;
|
|
284
|
+
readonly play_from_here: boolean;
|
|
285
|
+
}
|
|
286
|
+
declare class ReplayClipRecorder {
|
|
287
|
+
private readonly options;
|
|
288
|
+
private readonly layout;
|
|
289
|
+
private readonly keyframes;
|
|
290
|
+
private readonly keyTicks;
|
|
291
|
+
private slots;
|
|
292
|
+
private readonly inputs;
|
|
293
|
+
private readonly inputTicks;
|
|
294
|
+
private last;
|
|
295
|
+
private first;
|
|
296
|
+
breaks: number;
|
|
297
|
+
constructor(sim: Pick<ReplaySimulation, "states">, options: ReplayRecorderOptions);
|
|
298
|
+
private reset;
|
|
299
|
+
record(tick: number, input: Uint8Array): void;
|
|
300
|
+
get recordedTicks(): number;
|
|
301
|
+
private keyframeFor;
|
|
302
|
+
keep(ticks: number): ReplayClip | null;
|
|
303
|
+
}
|
|
304
|
+
interface ReplayRun {
|
|
305
|
+
readonly digest: string;
|
|
306
|
+
readonly matches: boolean;
|
|
307
|
+
readonly next_tick: number;
|
|
308
|
+
}
|
|
309
|
+
declare function simulateReplay(clip: ReplayClip, sim: ReplaySimulation): ReplayRun;
|
|
310
|
+
declare function playFromReplay(clip: ReplayClip, sim: ReplaySimulation): ReplayRun;
|
|
311
|
+
|
|
312
|
+
interface AiWatch {
|
|
313
|
+
watch(run: AiRun, listener: (event: AiEvent) => void): () => void;
|
|
314
|
+
}
|
|
315
|
+
type AiApply = (result: AiResult) => void;
|
|
316
|
+
declare class AiInbox {
|
|
317
|
+
private readonly pending;
|
|
318
|
+
private readonly stops;
|
|
319
|
+
private readonly ai;
|
|
320
|
+
private readonly recorder;
|
|
321
|
+
constructor(ai: AiWatch, recorder?: ReplayRecorder | null);
|
|
322
|
+
track(run: AiRun, onDelta?: ((text: string) => void) | null): void;
|
|
323
|
+
get waiting(): number;
|
|
324
|
+
applyAtStep(apply: AiApply): number;
|
|
325
|
+
dispose(): void;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare const SNAPSHOT_CHANNEL = "kit.snapshot";
|
|
329
|
+
interface PlanarSnapshotOptions {
|
|
330
|
+
readonly entities: number;
|
|
331
|
+
readonly extent: number;
|
|
332
|
+
readonly bits?: number;
|
|
333
|
+
readonly history?: number;
|
|
334
|
+
}
|
|
335
|
+
declare class PlanarSnapshotSync {
|
|
336
|
+
readonly entities: number;
|
|
337
|
+
readonly type: MessageType;
|
|
338
|
+
private readonly channel;
|
|
339
|
+
private readonly writer;
|
|
340
|
+
private readonly reader;
|
|
341
|
+
private readonly buffer;
|
|
342
|
+
private readonly fields;
|
|
343
|
+
private readonly tickField;
|
|
344
|
+
private readonly position;
|
|
345
|
+
private readonly rotation;
|
|
346
|
+
private readonly sampled;
|
|
347
|
+
private readonly sampledRotation;
|
|
348
|
+
private latestTick;
|
|
349
|
+
constructor(net: GameNet, options: PlanarSnapshotOptions);
|
|
350
|
+
get latest(): number;
|
|
351
|
+
publish(tick: number, xz: Float32Array): void;
|
|
352
|
+
receive(): number;
|
|
353
|
+
sample(tick: number, out: Float32Array): boolean;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
type AvatarRig = "humanoid" | "head" | "sprite";
|
|
357
|
+
type AvatarRole = "player" | "friend";
|
|
358
|
+
interface AvatarCharacter {
|
|
359
|
+
readonly participant: ParticipantId;
|
|
360
|
+
readonly displayName: string;
|
|
361
|
+
readonly role: AvatarRole;
|
|
362
|
+
readonly model: AssetSource;
|
|
363
|
+
readonly portrait: MediaRef | null;
|
|
364
|
+
}
|
|
365
|
+
interface AvatarRosterPorts {
|
|
366
|
+
readonly identity: Pick<CtxIdentity, "current">;
|
|
367
|
+
readonly social: Pick<CtxSocial, "friends" | "avatars">;
|
|
368
|
+
}
|
|
369
|
+
interface AvatarRosterOptions {
|
|
370
|
+
readonly rig: AvatarRig;
|
|
371
|
+
readonly maxFriends: number;
|
|
372
|
+
readonly models: Readonly<Record<AvatarRig, AssetSource>>;
|
|
373
|
+
}
|
|
374
|
+
declare class AvatarRoster {
|
|
375
|
+
readonly player: AvatarCharacter | null;
|
|
376
|
+
readonly friends: readonly AvatarCharacter[];
|
|
377
|
+
private constructor();
|
|
378
|
+
static load(ports: AvatarRosterPorts, options: AvatarRosterOptions): Promise<AvatarRoster>;
|
|
379
|
+
static share(social: Pick<CtxSocial, "avatar_consent">, share: boolean): Promise<AvatarConsent>;
|
|
380
|
+
friend(seed: number): AvatarCharacter | null;
|
|
381
|
+
}
|
|
382
|
+
declare class AvatarModels {
|
|
383
|
+
private readonly graphics;
|
|
384
|
+
private readonly models;
|
|
385
|
+
private readonly portraits;
|
|
386
|
+
constructor(graphics: Graphics);
|
|
387
|
+
spawn(entity: Entity, character: AvatarCharacter): Promise<NodeId>;
|
|
388
|
+
portrait(character: AvatarCharacter): Promise<TextureId> | null;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
interface FaceIdentitySource {
|
|
392
|
+
captureIdentity(): Promise<CapturedIdentity>;
|
|
393
|
+
}
|
|
394
|
+
interface FaceCapture {
|
|
395
|
+
readonly identity: Uint8Array;
|
|
396
|
+
readonly params: IdentityParams;
|
|
397
|
+
}
|
|
398
|
+
declare function captureFace(face: FaceIdentitySource): Promise<FaceCapture>;
|
|
399
|
+
|
|
400
|
+
type CaptureSource = "camera" | "library";
|
|
401
|
+
type CaptureSubject = "self" | "other";
|
|
402
|
+
interface CaptureContext {
|
|
403
|
+
readonly ageRange: DeclaredAgeRange;
|
|
404
|
+
readonly consented: boolean;
|
|
405
|
+
readonly subject: CaptureSubject;
|
|
406
|
+
readonly source: CaptureSource;
|
|
407
|
+
readonly faces: number;
|
|
408
|
+
readonly yaw: number;
|
|
409
|
+
readonly pitch: number;
|
|
410
|
+
readonly faceWidth: number;
|
|
411
|
+
}
|
|
412
|
+
type CaptureRefusal = "consent_required" | "age_restricted" | "age_undeclared" | "self_only" | "live_camera_only" | "one_face_only" | "face_turned" | "face_too_small";
|
|
413
|
+
interface CapturePolicy {
|
|
414
|
+
readonly allowed: boolean;
|
|
415
|
+
readonly refusal: CaptureRefusal | null;
|
|
416
|
+
readonly minStylise: number;
|
|
417
|
+
readonly residual: boolean;
|
|
418
|
+
readonly shareable: boolean;
|
|
419
|
+
}
|
|
420
|
+
declare function identityCapturePolicy(context: CaptureContext): CapturePolicy;
|
|
421
|
+
|
|
422
|
+
interface IdentityFromCapture {
|
|
423
|
+
readonly policy: CapturePolicy;
|
|
424
|
+
readonly fit: IdentityFit | null;
|
|
425
|
+
}
|
|
426
|
+
declare function identityFromCapture(base: IdentityBase | IdentityFitter, capture: IdentityCapture, context: CaptureContext, options?: IdentityFitOptions): IdentityFromCapture;
|
|
427
|
+
|
|
428
|
+
interface IdentityBuildOptions {
|
|
429
|
+
readonly lod?: number;
|
|
430
|
+
readonly name?: string;
|
|
431
|
+
}
|
|
432
|
+
declare function buildIdentityCharacter(base: IdentityBase, params: IdentityParams, options?: IdentityBuildOptions): Uint8Array;
|
|
433
|
+
|
|
434
|
+
declare const LAUNCH_RIG = "kit-humanoid";
|
|
435
|
+
declare const LAUNCH_ITEMS: {
|
|
436
|
+
readonly baseCharacter: "cimplify/base-character";
|
|
437
|
+
readonly animations: "cimplify/humanoid-animations";
|
|
438
|
+
readonly identity: "cimplify/identity-base";
|
|
439
|
+
readonly materials: "cimplify/starter-materials";
|
|
440
|
+
};
|
|
441
|
+
declare const LAUNCH_FILES: {
|
|
442
|
+
readonly baseCharacter: "base-character.glb";
|
|
443
|
+
readonly animations: "animations.glb";
|
|
444
|
+
readonly clips: "clips.json";
|
|
445
|
+
readonly identity: "identity.cidb";
|
|
446
|
+
readonly materials: "materials.json";
|
|
447
|
+
};
|
|
448
|
+
declare const LAUNCH_CLIPS: {
|
|
449
|
+
readonly locomotion: readonly ["walk", "walk_back", "walk_formal", "walk_carry", "jog", "jog_back", "run", "crouch_walk", "crouch_back", "swim", "jump", "fall", "land", "roll", "slide", "climb_up"];
|
|
450
|
+
readonly strafe: readonly ["walk", "strafe_forward_left", "strafe_left", "strafe_back_left", "walk_back", "strafe_back_right", "strafe_right", "strafe_forward_right"];
|
|
451
|
+
readonly turn: readonly ["turn_left_45", "turn_left_90", "turn_left_180", "turn_right_45", "turn_right_90", "turn_right_180"];
|
|
452
|
+
readonly idle: readonly ["idle", "idle_talk", "idle_fold_arms", "idle_phone", "crouch_idle", "swim_idle"];
|
|
453
|
+
readonly emote: readonly ["wave", "clap", "cheer", "bow", "point", "shrug", "salute", "nod", "look_around", "fist_pump", "dance", "yes", "no"];
|
|
454
|
+
readonly sports: readonly ["kick", "header", "throw_in", "throw", "punch_jab", "punch_cross", "keeper_ready", "dive_left", "dive_right", "keeper_smother", "keeper_hold"];
|
|
455
|
+
readonly driving: readonly ["drive", "steer_left", "steer_right", "honk"];
|
|
456
|
+
readonly sitting: readonly ["sit_down", "sit", "sit_talk", "sit_cheer", "sit_clap", "stand_up", "get_up"];
|
|
457
|
+
readonly reaction: readonly ["hit_chest", "hit_head", "stumble", "stagger", "fall_down"];
|
|
458
|
+
};
|
|
459
|
+
declare const LAUNCH_HAIR_STYLES: readonly ["parted", "buzzed", "long", "buns", "buzzed_soft", "none"];
|
|
460
|
+
|
|
461
|
+
interface Exemplar {
|
|
462
|
+
readonly width: number;
|
|
463
|
+
readonly height: number;
|
|
464
|
+
readonly data: Uint8Array;
|
|
465
|
+
}
|
|
466
|
+
interface QuiltOptions {
|
|
467
|
+
readonly size: number;
|
|
468
|
+
readonly block: number;
|
|
469
|
+
readonly overlap: number;
|
|
470
|
+
readonly candidates: number;
|
|
471
|
+
readonly seed: number;
|
|
472
|
+
}
|
|
473
|
+
declare function quiltTexture(exemplar: Exemplar, options: QuiltOptions): Uint8Array;
|
|
474
|
+
|
|
475
|
+
type Vec3 = readonly [number, number, number];
|
|
476
|
+
type PropShape = {
|
|
477
|
+
readonly box: Vec3;
|
|
478
|
+
readonly at: Vec3;
|
|
479
|
+
} | {
|
|
480
|
+
readonly frustum: readonly [number, number, number, number];
|
|
481
|
+
readonly at?: readonly [number, number];
|
|
482
|
+
readonly caps?: boolean;
|
|
483
|
+
readonly segments?: number;
|
|
484
|
+
} | {
|
|
485
|
+
readonly sphere: number;
|
|
486
|
+
readonly at: Vec3;
|
|
487
|
+
readonly segments?: number;
|
|
488
|
+
} | {
|
|
489
|
+
readonly rod: readonly [Vec3, Vec3];
|
|
490
|
+
readonly radius: number;
|
|
491
|
+
readonly segments?: number;
|
|
492
|
+
};
|
|
493
|
+
interface PropPart {
|
|
494
|
+
readonly material: string;
|
|
495
|
+
readonly tint?: readonly [number, number, number];
|
|
496
|
+
readonly shapes: readonly PropShape[];
|
|
497
|
+
}
|
|
498
|
+
interface PropRecipe {
|
|
499
|
+
readonly name: string;
|
|
500
|
+
readonly parts: readonly PropPart[];
|
|
501
|
+
}
|
|
502
|
+
type PropLevel = "close" | "middle" | "far";
|
|
503
|
+
declare const PROP_LEVELS: readonly PropLevel[];
|
|
504
|
+
declare function propBounds(recipe: PropRecipe): {
|
|
505
|
+
readonly min: Vec3;
|
|
506
|
+
readonly max: Vec3;
|
|
507
|
+
};
|
|
508
|
+
declare function propTriangles(recipe: PropRecipe, level?: PropLevel): number;
|
|
509
|
+
declare function buildPropGlb(recipe: PropRecipe, level?: PropLevel): Uint8Array;
|
|
510
|
+
|
|
511
|
+
type SoundRoute = "auto" | "kernels" | "js";
|
|
512
|
+
interface SoundOptions {
|
|
513
|
+
readonly route?: SoundRoute;
|
|
514
|
+
readonly runner?: KernelRunner;
|
|
515
|
+
}
|
|
516
|
+
interface SoundMode {
|
|
517
|
+
readonly frequency: number;
|
|
518
|
+
readonly decay: number;
|
|
519
|
+
readonly gain: number;
|
|
520
|
+
}
|
|
521
|
+
type SoundRecipe = {
|
|
522
|
+
readonly kind: "impact";
|
|
523
|
+
readonly seconds: number;
|
|
524
|
+
readonly seed: number;
|
|
525
|
+
readonly modes: readonly SoundMode[];
|
|
526
|
+
readonly noise: number;
|
|
527
|
+
readonly brightness: number;
|
|
528
|
+
readonly contact: number;
|
|
529
|
+
} | {
|
|
530
|
+
readonly kind: "engine";
|
|
531
|
+
readonly seconds: number;
|
|
532
|
+
readonly seed: number;
|
|
533
|
+
readonly rpm: number;
|
|
534
|
+
readonly cylinders: number;
|
|
535
|
+
readonly harmonics: number;
|
|
536
|
+
readonly rolloff: number;
|
|
537
|
+
readonly roughness: number;
|
|
538
|
+
} | {
|
|
539
|
+
readonly kind: "rain";
|
|
540
|
+
readonly seconds: number;
|
|
541
|
+
readonly seed: number;
|
|
542
|
+
readonly drops: number;
|
|
543
|
+
readonly radius: readonly [number, number];
|
|
544
|
+
readonly bed: number;
|
|
545
|
+
} | {
|
|
546
|
+
readonly kind: "wind";
|
|
547
|
+
readonly seconds: number;
|
|
548
|
+
readonly seed: number;
|
|
549
|
+
readonly strength: number;
|
|
550
|
+
readonly gust: number;
|
|
551
|
+
readonly pitch: number;
|
|
552
|
+
};
|
|
553
|
+
declare function synthesizeSound(recipe: SoundRecipe, options?: SoundOptions): Float32Array;
|
|
554
|
+
declare function encodeWav(samples: Float32Array, rate?: number): Uint8Array;
|
|
555
|
+
|
|
556
|
+
type RecipeRgb = readonly [number, number, number];
|
|
557
|
+
type TexturePattern = {
|
|
558
|
+
readonly kind: "fbm";
|
|
559
|
+
readonly period: number;
|
|
560
|
+
readonly octaves: number;
|
|
561
|
+
readonly gain: number;
|
|
562
|
+
} | {
|
|
563
|
+
readonly kind: "ridged";
|
|
564
|
+
readonly period: number;
|
|
565
|
+
readonly octaves: number;
|
|
566
|
+
readonly gain: number;
|
|
567
|
+
} | {
|
|
568
|
+
readonly kind: "cells";
|
|
569
|
+
readonly period: number;
|
|
570
|
+
readonly jitter: number;
|
|
571
|
+
} | {
|
|
572
|
+
readonly kind: "bricks";
|
|
573
|
+
readonly rows: number;
|
|
574
|
+
readonly columns: number;
|
|
575
|
+
readonly mortar: number;
|
|
576
|
+
} | {
|
|
577
|
+
readonly kind: "tiles";
|
|
578
|
+
readonly count: number;
|
|
579
|
+
readonly grout: number;
|
|
580
|
+
} | {
|
|
581
|
+
readonly kind: "weave";
|
|
582
|
+
readonly count: number;
|
|
583
|
+
} | {
|
|
584
|
+
readonly kind: "rings";
|
|
585
|
+
readonly frequency: number;
|
|
586
|
+
readonly distortion: number;
|
|
587
|
+
};
|
|
588
|
+
interface TextureRecipe {
|
|
589
|
+
readonly size: number;
|
|
590
|
+
readonly seed: number;
|
|
591
|
+
readonly pattern: TexturePattern;
|
|
592
|
+
readonly detail: number;
|
|
593
|
+
readonly dark: RecipeRgb;
|
|
594
|
+
readonly light: RecipeRgb;
|
|
595
|
+
readonly variation: number;
|
|
596
|
+
readonly roughness: readonly [number, number];
|
|
597
|
+
readonly normal: number;
|
|
598
|
+
}
|
|
599
|
+
interface SynthesizedTexture {
|
|
600
|
+
readonly size: number;
|
|
601
|
+
readonly albedo: Uint8Array;
|
|
602
|
+
readonly normal: Uint8Array;
|
|
603
|
+
}
|
|
604
|
+
declare function synthesizeTexture(recipe: TextureRecipe): SynthesizedTexture;
|
|
605
|
+
|
|
606
|
+
declare const TEXTURE_RECIPES: Readonly<Record<string, TextureRecipe>>;
|
|
607
|
+
declare const PROP_RECIPES: readonly PropRecipe[];
|
|
608
|
+
declare const SOUND_RECIPES: Readonly<Record<string, SoundRecipe>>;
|
|
609
|
+
|
|
610
|
+
declare const CATALOGUE_PROP_RECIPES: readonly PropRecipe[];
|
|
611
|
+
declare const CATALOGUE_RECIPE_SOURCES: {
|
|
612
|
+
readonly [kind: string]: string;
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
type ArkitName = (typeof FACE_LAYOUT.arkit)[number];
|
|
616
|
+
declare const FaceExpression: {
|
|
617
|
+
readonly Smile: number;
|
|
618
|
+
readonly JawOpen: number;
|
|
619
|
+
readonly BlinkLeft: number;
|
|
620
|
+
readonly BlinkRight: number;
|
|
621
|
+
readonly BrowRaise: number;
|
|
622
|
+
readonly Pucker: number;
|
|
623
|
+
};
|
|
624
|
+
type FaceExpressionId = number;
|
|
625
|
+
declare const EXPRESSION_COUNT: 6;
|
|
626
|
+
declare const HeadPose: {
|
|
627
|
+
readonly Yaw: number;
|
|
628
|
+
readonly Pitch: number;
|
|
629
|
+
readonly Roll: number;
|
|
630
|
+
readonly X: number;
|
|
631
|
+
readonly Y: number;
|
|
632
|
+
readonly Z: number;
|
|
633
|
+
};
|
|
634
|
+
type HeadPoseAxis = number;
|
|
635
|
+
declare const POSE_COUNT: 6;
|
|
636
|
+
declare const ARKIT_COUNT: 52;
|
|
637
|
+
declare function arkitWeight(name: ArkitName): number;
|
|
638
|
+
declare const FaceLandmark: {
|
|
639
|
+
readonly NoseTip: 0;
|
|
640
|
+
readonly Forehead: 1;
|
|
641
|
+
readonly Chin: 2;
|
|
642
|
+
readonly LeftEye: 3;
|
|
643
|
+
readonly RightEye: 4;
|
|
644
|
+
readonly Mouth: 5;
|
|
645
|
+
};
|
|
646
|
+
type FaceLandmarkId = (typeof FaceLandmark)[keyof typeof FaceLandmark];
|
|
647
|
+
declare const LANDMARK_COUNT: number;
|
|
648
|
+
type FaceCameraPort = Pick<CtxCamera, "request" | "release" | "track_face" | "view"> & Partial<Pick<CtxCamera, "capture_identity">>;
|
|
649
|
+
interface FaceSessionOptions {
|
|
650
|
+
readonly facing?: CameraFacing;
|
|
651
|
+
readonly recording?: boolean;
|
|
652
|
+
readonly smoothingSeconds?: number;
|
|
653
|
+
}
|
|
654
|
+
declare const METRIC_WIDTH = 0;
|
|
655
|
+
declare class FaceSession {
|
|
656
|
+
readonly expressions: Float32Array<ArrayBuffer>;
|
|
657
|
+
readonly pose: Float32Array<ArrayBuffer>;
|
|
658
|
+
readonly arkit: Float32Array<ArrayBuffer>;
|
|
659
|
+
readonly landmarks: Float32Array<ArrayBuffer>;
|
|
660
|
+
readonly metrics: Float64Array<ArrayBuffer>;
|
|
661
|
+
private readonly camera;
|
|
662
|
+
private readonly grant;
|
|
663
|
+
private readonly tracker;
|
|
664
|
+
private readonly smoothing;
|
|
665
|
+
private readonly views;
|
|
666
|
+
private trackingValue;
|
|
667
|
+
private primed;
|
|
668
|
+
private closed;
|
|
669
|
+
private constructor();
|
|
670
|
+
static start(camera: FaceCameraPort, options?: FaceSessionOptions): Promise<FaceSession>;
|
|
671
|
+
get tracking(): boolean;
|
|
672
|
+
get measured(): boolean;
|
|
673
|
+
view(placement: CameraViewPlacement): Promise<CameraView>;
|
|
674
|
+
update(time: FrameTime): boolean;
|
|
675
|
+
advance(seconds: number): boolean;
|
|
676
|
+
private track;
|
|
677
|
+
private place;
|
|
678
|
+
expression(id: FaceExpressionId): number;
|
|
679
|
+
headPose(axis: HeadPoseAxis): number;
|
|
680
|
+
weight(index: number): number;
|
|
681
|
+
faceWidth(): number;
|
|
682
|
+
captureIdentity(): Promise<CapturedIdentity>;
|
|
683
|
+
colours(): Promise<FaceColours | null>;
|
|
684
|
+
close(): Promise<void>;
|
|
685
|
+
}
|
|
686
|
+
interface FaceAnchor {
|
|
687
|
+
readonly landmark: FaceLandmarkId;
|
|
688
|
+
readonly offsetX: number;
|
|
689
|
+
readonly offsetY: number;
|
|
690
|
+
readonly scale: number;
|
|
691
|
+
}
|
|
692
|
+
declare const ANCHOR_X = 0;
|
|
693
|
+
declare const ANCHOR_Y = 1;
|
|
694
|
+
declare const ANCHOR_SCALE = 2;
|
|
695
|
+
declare const ANCHOR_ROLL = 3;
|
|
696
|
+
declare const ANCHOR_STRIDE = 4;
|
|
697
|
+
declare class FaceAnchors {
|
|
698
|
+
readonly anchors: readonly FaceAnchor[];
|
|
699
|
+
readonly out: Float32Array;
|
|
700
|
+
constructor(anchors: readonly FaceAnchor[]);
|
|
701
|
+
update(face: FaceSession): void;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
declare class IdentityCaptureError extends Error {
|
|
705
|
+
readonly code: IdentityCaptureCode;
|
|
706
|
+
constructor(code: IdentityCaptureCode);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
declare const DEFAULT_CLIP_MS = 15000;
|
|
710
|
+
interface ClipPorts {
|
|
711
|
+
readonly media: Pick<CtxMedia, "record_clip"> & Partial<Pick<CtxMedia, "keep_clip">>;
|
|
712
|
+
readonly share: HostCall<"share.open">;
|
|
713
|
+
readonly social: Pick<CtxSocial, "post">;
|
|
714
|
+
}
|
|
715
|
+
declare class ClipRecorder {
|
|
716
|
+
private readonly ports;
|
|
717
|
+
private recording;
|
|
718
|
+
private lastClip;
|
|
719
|
+
constructor(ports: ClipPorts);
|
|
720
|
+
get active(): boolean;
|
|
721
|
+
get clip(): MediaRef | null;
|
|
722
|
+
start(surface: GraphicsSurface, maxMs?: number): Promise<void>;
|
|
723
|
+
stop(): Promise<MediaRef>;
|
|
724
|
+
/** Saves what the host already captured, for a goal or a win: no start needed, the host always keeps the last few seconds. */
|
|
725
|
+
keepLast(ms?: number): Promise<MediaRef>;
|
|
726
|
+
cancel(): void;
|
|
727
|
+
share(audience?: ShareAudience | null): Promise<ShareResult>;
|
|
728
|
+
post(score?: number | null): Promise<SocialPostResult>;
|
|
729
|
+
private requireClip;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
interface ManifestEconomyInput {
|
|
733
|
+
readonly currencies: readonly {
|
|
734
|
+
readonly id: string;
|
|
735
|
+
readonly name?: string;
|
|
736
|
+
readonly class: string;
|
|
737
|
+
readonly inWorld?: boolean;
|
|
738
|
+
}[];
|
|
739
|
+
readonly items: readonly {
|
|
740
|
+
readonly id: string;
|
|
741
|
+
readonly currency: string | null;
|
|
742
|
+
readonly random?: boolean;
|
|
743
|
+
}[];
|
|
744
|
+
readonly odds: readonly {
|
|
745
|
+
readonly item: string;
|
|
746
|
+
readonly outcomes: readonly {
|
|
747
|
+
readonly value: string;
|
|
748
|
+
readonly partsPerMillion: number;
|
|
749
|
+
}[];
|
|
750
|
+
}[];
|
|
751
|
+
}
|
|
752
|
+
declare function auditManifestEconomy(manifest: ManifestEconomyInput, context?: InWorldContext | null): EconomyViolation[];
|
|
753
|
+
type KitGateName = "currency classes" | "odds disclosure" | "one-way money" | "economy declaration";
|
|
754
|
+
interface KitGateResult {
|
|
755
|
+
readonly name: KitGateName;
|
|
756
|
+
readonly passed: boolean;
|
|
757
|
+
readonly detail: string;
|
|
758
|
+
}
|
|
759
|
+
declare function judgeEconomy(violations: readonly EconomyViolation[]): KitGateResult[];
|
|
760
|
+
declare function kitPublicationGates(economy: EconomyDecl | null, manifest?: ManifestEconomyInput | null, context?: InWorldContext | null): KitGateResult[];
|
|
761
|
+
|
|
762
|
+
declare const BOX_X = 0;
|
|
763
|
+
declare const BOX_Y = 1;
|
|
764
|
+
declare const BOX_Z = 2;
|
|
765
|
+
declare const BOX_ROTATION = 3;
|
|
766
|
+
declare const BOX_SX = 7;
|
|
767
|
+
declare const BOX_SY = 8;
|
|
768
|
+
declare const BOX_SZ = 9;
|
|
769
|
+
declare class BoxBatch {
|
|
770
|
+
readonly batch: InstancedBatch;
|
|
771
|
+
readonly box: Float32Array<ArrayBuffer>;
|
|
772
|
+
private readonly game;
|
|
773
|
+
private count;
|
|
774
|
+
constructor(game: Game, capacity: number, roughness?: number);
|
|
775
|
+
begin(): void;
|
|
776
|
+
add(rgb: number): void;
|
|
777
|
+
sizes(sx: number, sy: number, sz: number): this;
|
|
778
|
+
addAt(source: Float64Array | Float32Array, at: number, rgb: number, lift?: number): void;
|
|
779
|
+
standAt(source: Float64Array | Float32Array, at: number, rgb: number): void;
|
|
780
|
+
end(): void;
|
|
781
|
+
}
|
|
782
|
+
declare function addSceneCamera(game: Game, x: number, y: number, z: number, fov: number, pitch: number): Entity;
|
|
783
|
+
|
|
784
|
+
declare const NO_ITEM = -1;
|
|
785
|
+
declare const DEFAULT_STACK_LIMIT = 99;
|
|
786
|
+
declare const INVENTORY_SNAPSHOT_STRIDE = 2;
|
|
787
|
+
declare class Inventory {
|
|
788
|
+
readonly items: Int32Array;
|
|
789
|
+
readonly counts: Int32Array;
|
|
790
|
+
readonly stackLimit: number;
|
|
791
|
+
constructor(slots: number, stackLimit?: number);
|
|
792
|
+
get slots(): number;
|
|
793
|
+
count(item: number): number;
|
|
794
|
+
has(item: number, quantity?: number): boolean;
|
|
795
|
+
room(item: number): number;
|
|
796
|
+
add(item: number, quantity: number): number;
|
|
797
|
+
remove(item: number, quantity: number): boolean;
|
|
798
|
+
clear(): void;
|
|
799
|
+
saveInto(out: Int32Array): void;
|
|
800
|
+
restore(source: Int32Array): void;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
interface ShopOffer {
|
|
804
|
+
readonly item: number;
|
|
805
|
+
readonly quantity: number;
|
|
806
|
+
readonly price: number;
|
|
807
|
+
readonly stock?: number;
|
|
808
|
+
}
|
|
809
|
+
declare const ShopResult: {
|
|
810
|
+
readonly Bought: 0;
|
|
811
|
+
readonly UnknownOffer: 1;
|
|
812
|
+
readonly TooPoor: 2;
|
|
813
|
+
readonly SoldOut: 3;
|
|
814
|
+
readonly NoRoom: 4;
|
|
815
|
+
};
|
|
816
|
+
type ShopResultCode = (typeof ShopResult)[keyof typeof ShopResult];
|
|
817
|
+
declare const UNLIMITED_STOCK = -1;
|
|
818
|
+
declare class Shop {
|
|
819
|
+
readonly currency: number;
|
|
820
|
+
readonly items: Int32Array;
|
|
821
|
+
readonly quantities: Int32Array;
|
|
822
|
+
readonly prices: Int32Array;
|
|
823
|
+
readonly stock: Int32Array;
|
|
824
|
+
private readonly initialStock;
|
|
825
|
+
constructor(currency: number, offers: readonly ShopOffer[]);
|
|
826
|
+
get offers(): number;
|
|
827
|
+
check(offer: number, inventory: Inventory): ShopResultCode;
|
|
828
|
+
buy(offer: number, inventory: Inventory): ShopResultCode;
|
|
829
|
+
restock(): void;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
interface ObjectiveDecl {
|
|
833
|
+
readonly id: string;
|
|
834
|
+
readonly target: number;
|
|
835
|
+
readonly after?: string;
|
|
836
|
+
}
|
|
837
|
+
declare const NO_OBJECTIVE = -1;
|
|
838
|
+
declare class Objectives {
|
|
839
|
+
readonly ids: readonly string[];
|
|
840
|
+
readonly targets: Float64Array;
|
|
841
|
+
readonly progress: Float64Array;
|
|
842
|
+
readonly done: Uint8Array;
|
|
843
|
+
readonly prerequisite: Int32Array;
|
|
844
|
+
private readonly completedQueue;
|
|
845
|
+
private queueHead;
|
|
846
|
+
private queueCount;
|
|
847
|
+
private doneCount;
|
|
848
|
+
constructor(decls: readonly ObjectiveDecl[]);
|
|
849
|
+
index(id: string): number;
|
|
850
|
+
get count(): number;
|
|
851
|
+
get completed(): number;
|
|
852
|
+
get allDone(): boolean;
|
|
853
|
+
unlocked(objective: number): boolean;
|
|
854
|
+
active(objective: number): boolean;
|
|
855
|
+
record(objective: number, amount?: number): boolean;
|
|
856
|
+
firstActive(): number;
|
|
857
|
+
pollCompleted(): number;
|
|
858
|
+
fractionInto(out: Float64Array, slot: number, objective: number): void;
|
|
859
|
+
reset(): void;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
interface WaveDecl {
|
|
863
|
+
readonly count: number;
|
|
864
|
+
readonly interval: number;
|
|
865
|
+
readonly delay?: number;
|
|
866
|
+
}
|
|
867
|
+
interface WavesOptions {
|
|
868
|
+
readonly waitForClear?: boolean;
|
|
869
|
+
readonly endless?: boolean;
|
|
870
|
+
readonly growth?: number;
|
|
871
|
+
}
|
|
872
|
+
declare const NO_SLOT = -1;
|
|
873
|
+
declare class Waves {
|
|
874
|
+
readonly state: Float64Array<ArrayBuffer>;
|
|
875
|
+
private readonly decls;
|
|
876
|
+
private readonly waitForClear;
|
|
877
|
+
private readonly endless;
|
|
878
|
+
private readonly growth;
|
|
879
|
+
constructor(waves: readonly WaveDecl[], options?: WavesOptions);
|
|
880
|
+
get wave(): number;
|
|
881
|
+
get spawned(): number;
|
|
882
|
+
get resting(): boolean;
|
|
883
|
+
get finished(): boolean;
|
|
884
|
+
waveSize(): number;
|
|
885
|
+
step(time: FrameTime, alive: number): number;
|
|
886
|
+
reset(): void;
|
|
887
|
+
private declOffset;
|
|
888
|
+
private advance;
|
|
889
|
+
}
|
|
890
|
+
declare class SlotPool {
|
|
891
|
+
readonly alive: Uint8Array;
|
|
892
|
+
private readonly free;
|
|
893
|
+
private freeCount;
|
|
894
|
+
constructor(capacity: number);
|
|
895
|
+
get capacity(): number;
|
|
896
|
+
get count(): number;
|
|
897
|
+
acquire(): number;
|
|
898
|
+
release(slot: number): boolean;
|
|
899
|
+
clear(): void;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
interface ScoreTimerOptions {
|
|
903
|
+
readonly seconds?: number;
|
|
904
|
+
readonly comboWindow?: number;
|
|
905
|
+
readonly maxCombo?: number;
|
|
906
|
+
readonly clockSeconds?: number;
|
|
907
|
+
}
|
|
908
|
+
interface ScoreHudNames {
|
|
909
|
+
readonly score?: string;
|
|
910
|
+
readonly clock?: string;
|
|
911
|
+
readonly combo?: string;
|
|
912
|
+
}
|
|
913
|
+
declare const SCORE = 0;
|
|
914
|
+
declare const SCORE_BEST = 1;
|
|
915
|
+
declare const SCORE_COMBO = 2;
|
|
916
|
+
declare const SCORE_COMBO_LEFT = 3;
|
|
917
|
+
declare const SCORE_ELAPSED = 4;
|
|
918
|
+
declare const SCORE_REMAINING = 5;
|
|
919
|
+
declare const SCORE_TIME_UP = 6;
|
|
920
|
+
declare class ScoreTimer {
|
|
921
|
+
readonly state: Float64Array<ArrayBuffer>;
|
|
922
|
+
readonly seconds: number;
|
|
923
|
+
readonly comboWindow: number;
|
|
924
|
+
readonly maxCombo: number;
|
|
925
|
+
private readonly labels;
|
|
926
|
+
constructor(options?: ScoreTimerOptions);
|
|
927
|
+
get score(): number;
|
|
928
|
+
get best(): number;
|
|
929
|
+
get combo(): number;
|
|
930
|
+
get timeUp(): boolean;
|
|
931
|
+
step(time: FrameTime): boolean;
|
|
932
|
+
add(points: number): number;
|
|
933
|
+
clockText(): string;
|
|
934
|
+
reset(): void;
|
|
935
|
+
}
|
|
936
|
+
declare class ScoreHud {
|
|
937
|
+
private readonly ui;
|
|
938
|
+
private readonly timer;
|
|
939
|
+
private readonly scoreSlot;
|
|
940
|
+
private readonly clockSlot;
|
|
941
|
+
private readonly comboSlot;
|
|
942
|
+
constructor(ui: GameUi, timer: ScoreTimer, names?: ScoreHudNames);
|
|
943
|
+
update(): void;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
interface ScheduleStop {
|
|
947
|
+
readonly hour: number;
|
|
948
|
+
readonly x: number;
|
|
949
|
+
readonly z: number;
|
|
950
|
+
readonly activity: number;
|
|
951
|
+
}
|
|
952
|
+
interface NpcSpawn {
|
|
953
|
+
readonly x: number;
|
|
954
|
+
readonly z: number;
|
|
955
|
+
readonly speed: number;
|
|
956
|
+
readonly stops: readonly ScheduleStop[];
|
|
957
|
+
}
|
|
958
|
+
declare const HOURS_PER_DAY = 24;
|
|
959
|
+
declare const NPC_WALKING = -1;
|
|
960
|
+
declare const NPC_STRIDE = 3;
|
|
961
|
+
declare const DAY_HOUR = 0;
|
|
962
|
+
declare const DAY_INDEX = 1;
|
|
963
|
+
declare class DayClock {
|
|
964
|
+
readonly state: Float64Array<ArrayBuffer>;
|
|
965
|
+
readonly secondsPerDay: number;
|
|
966
|
+
constructor(secondsPerDay: number, startHour?: number);
|
|
967
|
+
get hour(): number;
|
|
968
|
+
get day(): number;
|
|
969
|
+
step(time: FrameTime): boolean;
|
|
970
|
+
}
|
|
971
|
+
declare class NpcSchedules {
|
|
972
|
+
readonly positions: Float64Array;
|
|
973
|
+
readonly facing: Float64Array;
|
|
974
|
+
readonly activities: Int32Array;
|
|
975
|
+
readonly stopIndex: Int32Array;
|
|
976
|
+
private readonly speeds;
|
|
977
|
+
private readonly stops;
|
|
978
|
+
private readonly stopCounts;
|
|
979
|
+
private readonly maxStops;
|
|
980
|
+
private readonly arriveRadius;
|
|
981
|
+
private npcs;
|
|
982
|
+
constructor(capacity: number, maxStops: number, arriveRadius?: number);
|
|
983
|
+
get count(): number;
|
|
984
|
+
add(spawn: NpcSpawn): number;
|
|
985
|
+
stopAt(npc: number, clock: DayClock): number;
|
|
986
|
+
step(clock: DayClock, time: FrameTime): void;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
interface CheckpointOptions {
|
|
990
|
+
readonly radius: number;
|
|
991
|
+
readonly ordered?: boolean;
|
|
992
|
+
readonly killY?: number;
|
|
993
|
+
}
|
|
994
|
+
declare const NO_CHECKPOINT = -1;
|
|
995
|
+
declare class Checkpoints {
|
|
996
|
+
readonly positions: Float64Array;
|
|
997
|
+
readonly reachedFlags: Uint8Array;
|
|
998
|
+
readonly spawn: Float64Array<ArrayBuffer>;
|
|
999
|
+
readonly radius: number;
|
|
1000
|
+
readonly ordered: boolean;
|
|
1001
|
+
readonly killY: number;
|
|
1002
|
+
private used;
|
|
1003
|
+
private reachedCount;
|
|
1004
|
+
private last;
|
|
1005
|
+
constructor(capacity: number, options: CheckpointOptions);
|
|
1006
|
+
get count(): number;
|
|
1007
|
+
get reached(): number;
|
|
1008
|
+
get lastReached(): number;
|
|
1009
|
+
get finished(): boolean;
|
|
1010
|
+
setSpawn(x: number, y: number, z: number): void;
|
|
1011
|
+
add(x: number, y: number, z: number): number;
|
|
1012
|
+
next(): number;
|
|
1013
|
+
touch(source: Vec3Array, offset: number): number;
|
|
1014
|
+
fallen(source: Vec3Array, offset: number): boolean;
|
|
1015
|
+
respawnInto(out: Float64Array, offset?: number): void;
|
|
1016
|
+
reset(): void;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
interface ArenaOptions {
|
|
1020
|
+
readonly half: number;
|
|
1021
|
+
readonly wallHeight: number;
|
|
1022
|
+
readonly wallThickness?: number;
|
|
1023
|
+
readonly groundDepth?: number;
|
|
1024
|
+
}
|
|
1025
|
+
interface DaylightOptions {
|
|
1026
|
+
readonly sun?: number;
|
|
1027
|
+
readonly sky?: number;
|
|
1028
|
+
readonly sunX?: number;
|
|
1029
|
+
readonly sunY?: number;
|
|
1030
|
+
readonly sunZ?: number;
|
|
1031
|
+
}
|
|
1032
|
+
declare function staticBox(game: Game, x: number, y: number, z: number, hx: number, hy: number, hz: number): Entity;
|
|
1033
|
+
declare function walledArena(game: Game, options: ArenaOptions): void;
|
|
1034
|
+
declare function daylight(game: Game, options?: DaylightOptions): void;
|
|
1035
|
+
|
|
1036
|
+
interface SeekBotOptions {
|
|
1037
|
+
readonly arrive?: number;
|
|
1038
|
+
readonly jumpEvery?: number;
|
|
1039
|
+
readonly jumpHold?: number;
|
|
1040
|
+
}
|
|
1041
|
+
declare class SeekBot {
|
|
1042
|
+
private readonly arrive;
|
|
1043
|
+
private readonly jumpEvery;
|
|
1044
|
+
private readonly jumpHold;
|
|
1045
|
+
private slotX;
|
|
1046
|
+
private slotY;
|
|
1047
|
+
private slotJump;
|
|
1048
|
+
private jumpHeld;
|
|
1049
|
+
constructor(options?: SeekBotOptions);
|
|
1050
|
+
drive(game: Game, rig: ThirdPersonRig, goal: Float64Array, frame: number): void;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
interface SlottedGenre<S extends SlotMap, Scene extends GameScene<Game>> {
|
|
1054
|
+
readonly template: SlotTemplate<S>;
|
|
1055
|
+
readonly base: GenreTemplate<Scene>;
|
|
1056
|
+
build(values: SlotValues<S>): GenreTemplate<Scene>;
|
|
1057
|
+
remix(manifest: RemixManifest, sources?: RemixSources): GenreTemplate<Scene>;
|
|
1058
|
+
}
|
|
1059
|
+
declare function playable<S extends SlotMap, Scene extends GameScene<Game>>(t: SlotTemplate<S>, build: (values: SlotValues<S>) => GenreTemplate<Scene>): SlottedGenre<S, Scene>;
|
|
1060
|
+
|
|
1061
|
+
declare const slottedShootout: SlottedGenre<{
|
|
1062
|
+
readonly theme: ThemeSlot;
|
|
1063
|
+
readonly music: TrackSlot;
|
|
1064
|
+
readonly rules: ParamsSlot<{
|
|
1065
|
+
readonly kicksPerSeries: {
|
|
1066
|
+
readonly type: "int";
|
|
1067
|
+
readonly min: number;
|
|
1068
|
+
readonly max: number;
|
|
1069
|
+
};
|
|
1070
|
+
readonly seriesPauseSeconds: {
|
|
1071
|
+
readonly type: "number";
|
|
1072
|
+
readonly min: number;
|
|
1073
|
+
readonly max: number;
|
|
1074
|
+
};
|
|
1075
|
+
}>;
|
|
1076
|
+
}, PenaltyShootout>;
|
|
1077
|
+
declare const slottedRunner: SlottedGenre<{
|
|
1078
|
+
readonly theme: ThemeSlot;
|
|
1079
|
+
readonly hero: CharacterSlot;
|
|
1080
|
+
readonly music: TrackSlot;
|
|
1081
|
+
readonly rules: ParamsSlot<{
|
|
1082
|
+
readonly startSpeed: {
|
|
1083
|
+
readonly type: "number";
|
|
1084
|
+
readonly min: number;
|
|
1085
|
+
readonly max: number;
|
|
1086
|
+
};
|
|
1087
|
+
readonly maxSpeed: {
|
|
1088
|
+
readonly type: "number";
|
|
1089
|
+
readonly min: number;
|
|
1090
|
+
readonly max: number;
|
|
1091
|
+
};
|
|
1092
|
+
readonly jumpVelocity: {
|
|
1093
|
+
readonly type: "number";
|
|
1094
|
+
readonly min: number;
|
|
1095
|
+
readonly max: number;
|
|
1096
|
+
};
|
|
1097
|
+
}>;
|
|
1098
|
+
}, EndlessRunner>;
|
|
1099
|
+
|
|
1100
|
+
declare const SHOWCASE: {
|
|
1101
|
+
readonly arenaHalf: 16;
|
|
1102
|
+
readonly wallHeight: 1;
|
|
1103
|
+
readonly characters: 6;
|
|
1104
|
+
readonly ring: 7;
|
|
1105
|
+
readonly wander: 2.6;
|
|
1106
|
+
readonly hitRadius: 2.4;
|
|
1107
|
+
readonly hitDamage: 25;
|
|
1108
|
+
readonly maxHealth: 100;
|
|
1109
|
+
readonly bounty: 100;
|
|
1110
|
+
readonly contactRadius: 1.1;
|
|
1111
|
+
readonly contactDamage: 18;
|
|
1112
|
+
readonly regen: 6;
|
|
1113
|
+
readonly scoreSeconds: 0.6;
|
|
1114
|
+
};
|
|
1115
|
+
declare const SHOWCASE_NAMES: readonly ["Ada", "Kofi", "Zuri", "Tunde", "Amara", "Kwame"];
|
|
1116
|
+
declare const SHOWCASE_THEME: GameTheme;
|
|
1117
|
+
interface ShowcaseOptions {
|
|
1118
|
+
readonly ui: GameUi$1 | null;
|
|
1119
|
+
readonly font?: number;
|
|
1120
|
+
readonly surface?: TouchViewportSource | null;
|
|
1121
|
+
readonly viewport?: TouchViewport;
|
|
1122
|
+
readonly flush?: boolean;
|
|
1123
|
+
}
|
|
1124
|
+
declare class GameUiShowcase implements GameScene<Game> {
|
|
1125
|
+
readonly name = "game-ui-showcase";
|
|
1126
|
+
rig: ThirdPersonRig | null;
|
|
1127
|
+
paused: boolean;
|
|
1128
|
+
score: number;
|
|
1129
|
+
downs: number;
|
|
1130
|
+
readonly health: Int32Array<ArrayBuffer>;
|
|
1131
|
+
private readonly closest;
|
|
1132
|
+
readonly positions: Float64Array<ArrayBuffer>;
|
|
1133
|
+
readonly anchors: Float64Array<ArrayBuffer>;
|
|
1134
|
+
private readonly state;
|
|
1135
|
+
private readonly phase;
|
|
1136
|
+
private readonly hurt;
|
|
1137
|
+
private readonly statics;
|
|
1138
|
+
private boxes;
|
|
1139
|
+
private hud;
|
|
1140
|
+
private plates;
|
|
1141
|
+
private readonly options;
|
|
1142
|
+
get playerHealth(): number;
|
|
1143
|
+
constructor(options: ShowcaseOptions);
|
|
1144
|
+
enter(game: Game): void;
|
|
1145
|
+
setPaused(paused: boolean): void;
|
|
1146
|
+
restart(): void;
|
|
1147
|
+
fixedUpdate(game: Game): void;
|
|
1148
|
+
update(game: Game): void;
|
|
1149
|
+
exit(): void;
|
|
1150
|
+
nearestToPlayer(game: Game): number;
|
|
1151
|
+
private strike;
|
|
1152
|
+
private place;
|
|
1153
|
+
private layoutStatics;
|
|
1154
|
+
private draw;
|
|
1155
|
+
}
|
|
1156
|
+
declare const gameUiShowcaseTemplate: GenreTemplate<GameUiShowcase>;
|
|
1157
|
+
|
|
1158
|
+
type showcase_GameUiShowcase = GameUiShowcase;
|
|
1159
|
+
declare const showcase_GameUiShowcase: typeof GameUiShowcase;
|
|
1160
|
+
declare const showcase_SHOWCASE: typeof SHOWCASE;
|
|
1161
|
+
declare const showcase_SHOWCASE_NAMES: typeof SHOWCASE_NAMES;
|
|
1162
|
+
declare const showcase_SHOWCASE_THEME: typeof SHOWCASE_THEME;
|
|
1163
|
+
type showcase_ShowcaseOptions = ShowcaseOptions;
|
|
1164
|
+
declare const showcase_gameUiShowcaseTemplate: typeof gameUiShowcaseTemplate;
|
|
1165
|
+
declare namespace showcase {
|
|
1166
|
+
export { showcase_GameUiShowcase as GameUiShowcase, showcase_SHOWCASE as SHOWCASE, showcase_SHOWCASE_NAMES as SHOWCASE_NAMES, showcase_SHOWCASE_THEME as SHOWCASE_THEME, type showcase_ShowcaseOptions as ShowcaseOptions, showcase_gameUiShowcaseTemplate as gameUiShowcaseTemplate };
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
declare const index$2_ACTION: typeof ACTION;
|
|
1170
|
+
declare const index$2_ACTION_BASE: typeof ACTION_BASE;
|
|
1171
|
+
declare const index$2_AI_CAPABILITY: typeof AI_CAPABILITY;
|
|
1172
|
+
declare const index$2_AI_RUN_BYTES: typeof AI_RUN_BYTES;
|
|
1173
|
+
declare const index$2_AI_RUN_PREFIX: typeof AI_RUN_PREFIX;
|
|
1174
|
+
declare const index$2_BOX_CAPACITY: typeof BOX_CAPACITY;
|
|
1175
|
+
declare const index$2_CHANNEL: typeof CHANNEL;
|
|
1176
|
+
declare const index$2_CHEMISTRY_GROUPS: typeof CHEMISTRY_GROUPS;
|
|
1177
|
+
declare const index$2_CHEMISTRY_PROMPT: typeof CHEMISTRY_PROMPT;
|
|
1178
|
+
declare const index$2_CHEMISTRY_SCHEMA: typeof CHEMISTRY_SCHEMA;
|
|
1179
|
+
declare const index$2_CHEMISTRY_SCHEMA_NAME: typeof CHEMISTRY_SCHEMA_NAME;
|
|
1180
|
+
declare const index$2_CHEMISTRY_TEMPLATE: typeof CHEMISTRY_TEMPLATE;
|
|
1181
|
+
declare const index$2_COMPARE: typeof COMPARE;
|
|
1182
|
+
declare const index$2_ChemistryAi: typeof ChemistryAi;
|
|
1183
|
+
declare const index$2_ChemistryRequest: typeof ChemistryRequest;
|
|
1184
|
+
declare const index$2_CommandWriter: typeof CommandWriter;
|
|
1185
|
+
declare const index$2_EVENT: typeof EVENT;
|
|
1186
|
+
declare const index$2_EVENT_A: typeof EVENT_A;
|
|
1187
|
+
declare const index$2_EVENT_B: typeof EVENT_B;
|
|
1188
|
+
declare const index$2_EVENT_C_HIGH: typeof EVENT_C_HIGH;
|
|
1189
|
+
declare const index$2_EVENT_C_LOW: typeof EVENT_C_LOW;
|
|
1190
|
+
declare const index$2_EVENT_KIND: typeof EVENT_KIND;
|
|
1191
|
+
declare const index$2_EVENT_PLAYER: typeof EVENT_PLAYER;
|
|
1192
|
+
declare const index$2_EVENT_WORDS: typeof EVENT_WORDS;
|
|
1193
|
+
declare const index$2_FIELD: typeof FIELD;
|
|
1194
|
+
declare const index$2_FRAME_MAGIC: typeof FRAME_MAGIC;
|
|
1195
|
+
declare const index$2_FRAME_VERSION: typeof FRAME_VERSION;
|
|
1196
|
+
declare const index$2_FRONTIER_CHANNEL_SLOT: typeof FRONTIER_CHANNEL_SLOT;
|
|
1197
|
+
declare const index$2_FrontierCommand: typeof FrontierCommand;
|
|
1198
|
+
declare const index$2_FrontierCommands: typeof FrontierCommands;
|
|
1199
|
+
declare const index$2_FrontierLink: typeof FrontierLink;
|
|
1200
|
+
declare const index$2_FrontierMirror: typeof FrontierMirror;
|
|
1201
|
+
declare const index$2_FrontierPlanet: typeof FrontierPlanet;
|
|
1202
|
+
declare const index$2_FrontierPlanetOptions: typeof FrontierPlanetOptions;
|
|
1203
|
+
declare const index$2_FrontierSession: typeof FrontierSession;
|
|
1204
|
+
declare const index$2_HEADER_BYTES: typeof HEADER_BYTES;
|
|
1205
|
+
declare const index$2_HEALTH_FIELDS: typeof HEALTH_FIELDS;
|
|
1206
|
+
declare const index$2_HERD: typeof HERD;
|
|
1207
|
+
declare const index$2_HERD_FIELDS: typeof HERD_FIELDS;
|
|
1208
|
+
declare const index$2_HERD_HEALTH: typeof HERD_HEALTH;
|
|
1209
|
+
declare const index$2_INVENTION_FLAG: typeof INVENTION_FLAG;
|
|
1210
|
+
declare const index$2_INVENTION_SCHEMA: typeof INVENTION_SCHEMA;
|
|
1211
|
+
declare const index$2_INVENT_PROMPT: typeof INVENT_PROMPT;
|
|
1212
|
+
declare const index$2_INVENT_SCHEMA: typeof INVENT_SCHEMA;
|
|
1213
|
+
declare const index$2_INVENT_TEMPLATE: typeof INVENT_TEMPLATE;
|
|
1214
|
+
declare const index$2_InventionAi: typeof InventionAi;
|
|
1215
|
+
declare const index$2_InventionRequest: typeof InventionRequest;
|
|
1216
|
+
declare const index$2_KINDS: typeof KINDS;
|
|
1217
|
+
declare const index$2_LANES: typeof LANES;
|
|
1218
|
+
declare const index$2_LAYER: typeof LAYER;
|
|
1219
|
+
declare const index$2_MACHINE_FLAG: typeof MACHINE_FLAG;
|
|
1220
|
+
declare const index$2_MAX_ACTIVATION: typeof MAX_ACTIVATION;
|
|
1221
|
+
declare const index$2_MAX_BEHAVIOURS: typeof MAX_BEHAVIOURS;
|
|
1222
|
+
declare const index$2_MAX_CHEMISTRY_NAME: typeof MAX_CHEMISTRY_NAME;
|
|
1223
|
+
declare const index$2_MAX_COMMAND_BYTES: typeof MAX_COMMAND_BYTES;
|
|
1224
|
+
declare const index$2_MAX_COUNT: typeof MAX_COUNT;
|
|
1225
|
+
declare const index$2_MAX_DENSITY: typeof MAX_DENSITY;
|
|
1226
|
+
declare const index$2_MAX_ENTHALPY: typeof MAX_ENTHALPY;
|
|
1227
|
+
declare const index$2_MAX_GROUPS: typeof MAX_GROUPS;
|
|
1228
|
+
declare const index$2_MAX_GROUP_CHARS: typeof MAX_GROUP_CHARS;
|
|
1229
|
+
declare const index$2_MAX_HARDNESS: typeof MAX_HARDNESS;
|
|
1230
|
+
declare const index$2_MAX_HEAT_CAPACITY: typeof MAX_HEAT_CAPACITY;
|
|
1231
|
+
declare const index$2_MAX_INGREDIENTS: typeof MAX_INGREDIENTS;
|
|
1232
|
+
declare const index$2_MAX_KELVIN: typeof MAX_KELVIN;
|
|
1233
|
+
declare const index$2_MAX_KNOWN_CHARS: typeof MAX_KNOWN_CHARS;
|
|
1234
|
+
declare const index$2_MAX_LATENT: typeof MAX_LATENT;
|
|
1235
|
+
declare const index$2_MAX_MATERIAL_CHARS: typeof MAX_MATERIAL_CHARS;
|
|
1236
|
+
declare const index$2_MAX_NAME_CHARS: typeof MAX_NAME_CHARS;
|
|
1237
|
+
declare const index$2_MAX_PARAM: typeof MAX_PARAM;
|
|
1238
|
+
declare const index$2_MAX_QUANTITY: typeof MAX_QUANTITY;
|
|
1239
|
+
declare const index$2_MAX_RATE_MILLI: typeof MAX_RATE_MILLI;
|
|
1240
|
+
declare const index$2_MAX_STEPS: typeof MAX_STEPS;
|
|
1241
|
+
declare const index$2_MAX_STEP_VALUE: typeof MAX_STEP_VALUE;
|
|
1242
|
+
declare const index$2_MAX_SURVEYED: typeof MAX_SURVEYED;
|
|
1243
|
+
declare const index$2_MAX_TERMS: typeof MAX_TERMS;
|
|
1244
|
+
declare const index$2_MIRROR_EVENTS: typeof MIRROR_EVENTS;
|
|
1245
|
+
declare const index$2_NO_INVENTION: typeof NO_INVENTION;
|
|
1246
|
+
declare const index$2_PATHOGEN: typeof PATHOGEN;
|
|
1247
|
+
declare const index$2_PLOT: typeof PLOT;
|
|
1248
|
+
declare const index$2_PLOT_FIELDS: typeof PLOT_FIELDS;
|
|
1249
|
+
declare const index$2_PLOT_HEALTH: typeof PLOT_HEALTH;
|
|
1250
|
+
declare const index$2_PROCESS: typeof PROCESS;
|
|
1251
|
+
declare const index$2_PROCESSES: typeof PROCESSES;
|
|
1252
|
+
declare const index$2_REACTOR: typeof REACTOR;
|
|
1253
|
+
declare const index$2_REACTOR_FIELDS: typeof REACTOR_FIELDS;
|
|
1254
|
+
declare const index$2_REACTOR_SLOTS: typeof REACTOR_SLOTS;
|
|
1255
|
+
declare const index$2_REGION_METRES: typeof REGION_METRES;
|
|
1256
|
+
declare const index$2_RUN_ID_BYTES: typeof RUN_ID_BYTES;
|
|
1257
|
+
declare const index$2_RegionRef: typeof RegionRef;
|
|
1258
|
+
declare const index$2_ReplayFrontierLink: typeof ReplayFrontierLink;
|
|
1259
|
+
declare const index$2_SLOT_FIELDS: typeof SLOT_FIELDS;
|
|
1260
|
+
declare const index$2_TRAIT: typeof TRAIT;
|
|
1261
|
+
declare const index$2_TickFrontierLink: typeof TickFrontierLink;
|
|
1262
|
+
declare const index$2_VERBS: typeof VERBS;
|
|
1263
|
+
declare const index$2_actionOf: typeof actionOf;
|
|
1264
|
+
declare const index$2_chemistryRequest: typeof chemistryRequest;
|
|
1265
|
+
declare const index$2_encodeCommand: typeof encodeCommand;
|
|
1266
|
+
declare const index$2_frontierAiSection: typeof frontierAiSection;
|
|
1267
|
+
declare const index$2_frontierAiToml: typeof frontierAiToml;
|
|
1268
|
+
declare const index$2_frontierChemistryAiSection: typeof frontierChemistryAiSection;
|
|
1269
|
+
declare const index$2_inventionItem: typeof inventionItem;
|
|
1270
|
+
declare const index$2_inventionRequest: typeof inventionRequest;
|
|
1271
|
+
declare const index$2_isInvention: typeof isInvention;
|
|
1272
|
+
declare const index$2_itemFromCode: typeof itemFromCode;
|
|
1273
|
+
declare const index$2_joinFrontierPlanet: typeof joinFrontierPlanet;
|
|
1274
|
+
declare const index$2_materialItem: typeof materialItem;
|
|
1275
|
+
declare const index$2_regionFromBigInt: typeof regionFromBigInt;
|
|
1276
|
+
declare const index$2_regionKey: typeof regionKey;
|
|
1277
|
+
declare const index$2_requestChemistry: typeof requestChemistry;
|
|
1278
|
+
declare const index$2_requestInvention: typeof requestInvention;
|
|
1279
|
+
declare const index$2_runIdFromAiRun: typeof runIdFromAiRun;
|
|
1280
|
+
declare const index$2_runIdFromHex: typeof runIdFromHex;
|
|
1281
|
+
declare namespace index$2 {
|
|
1282
|
+
export { index$2_ACTION as ACTION, index$2_ACTION_BASE as ACTION_BASE, index$2_AI_CAPABILITY as AI_CAPABILITY, index$2_AI_RUN_BYTES as AI_RUN_BYTES, index$2_AI_RUN_PREFIX as AI_RUN_PREFIX, index$2_BOX_CAPACITY as BOX_CAPACITY, index$2_CHANNEL as CHANNEL, index$2_CHEMISTRY_GROUPS as CHEMISTRY_GROUPS, index$2_CHEMISTRY_PROMPT as CHEMISTRY_PROMPT, index$2_CHEMISTRY_SCHEMA as CHEMISTRY_SCHEMA, index$2_CHEMISTRY_SCHEMA_NAME as CHEMISTRY_SCHEMA_NAME, index$2_CHEMISTRY_TEMPLATE as CHEMISTRY_TEMPLATE, index$2_COMPARE as COMPARE, index$2_ChemistryAi as ChemistryAi, index$2_ChemistryRequest as ChemistryRequest, index$2_CommandWriter as CommandWriter, index$2_EVENT as EVENT, index$2_EVENT_A as EVENT_A, index$2_EVENT_B as EVENT_B, index$2_EVENT_C_HIGH as EVENT_C_HIGH, index$2_EVENT_C_LOW as EVENT_C_LOW, index$2_EVENT_KIND as EVENT_KIND, index$2_EVENT_PLAYER as EVENT_PLAYER, index$2_EVENT_WORDS as EVENT_WORDS, index$2_FIELD as FIELD, index$2_FRAME_MAGIC as FRAME_MAGIC, index$2_FRAME_VERSION as FRAME_VERSION, index$2_FRONTIER_CHANNEL_SLOT as FRONTIER_CHANNEL_SLOT, index$2_FrontierCommand as FrontierCommand, index$2_FrontierCommands as FrontierCommands, index$2_FrontierLink as FrontierLink, index$2_FrontierMirror as FrontierMirror, index$2_FrontierPlanet as FrontierPlanet, index$2_FrontierPlanetOptions as FrontierPlanetOptions, index$2_FrontierSession as FrontierSession, index$2_HEADER_BYTES as HEADER_BYTES, index$2_HEALTH_FIELDS as HEALTH_FIELDS, index$2_HERD as HERD, index$2_HERD_FIELDS as HERD_FIELDS, index$2_HERD_HEALTH as HERD_HEALTH, index$2_INVENTION_FLAG as INVENTION_FLAG, index$2_INVENTION_SCHEMA as INVENTION_SCHEMA, index$2_INVENT_PROMPT as INVENT_PROMPT, index$2_INVENT_SCHEMA as INVENT_SCHEMA, index$2_INVENT_TEMPLATE as INVENT_TEMPLATE, index$2_InventionAi as InventionAi, index$2_InventionRequest as InventionRequest, index$2_KINDS as KINDS, index$2_LANES as LANES, index$2_LAYER as LAYER, index$2_MACHINE_FLAG as MACHINE_FLAG, index$2_MAX_ACTIVATION as MAX_ACTIVATION, index$2_MAX_BEHAVIOURS as MAX_BEHAVIOURS, index$2_MAX_CHEMISTRY_NAME as MAX_CHEMISTRY_NAME, index$2_MAX_COMMAND_BYTES as MAX_COMMAND_BYTES, index$2_MAX_COUNT as MAX_COUNT, index$2_MAX_DENSITY as MAX_DENSITY, index$2_MAX_ENTHALPY as MAX_ENTHALPY, index$2_MAX_GROUPS as MAX_GROUPS, index$2_MAX_GROUP_CHARS as MAX_GROUP_CHARS, index$2_MAX_HARDNESS as MAX_HARDNESS, index$2_MAX_HEAT_CAPACITY as MAX_HEAT_CAPACITY, index$2_MAX_INGREDIENTS as MAX_INGREDIENTS, index$2_MAX_KELVIN as MAX_KELVIN, index$2_MAX_KNOWN_CHARS as MAX_KNOWN_CHARS, index$2_MAX_LATENT as MAX_LATENT, index$2_MAX_MATERIAL_CHARS as MAX_MATERIAL_CHARS, index$2_MAX_NAME_CHARS as MAX_NAME_CHARS, index$2_MAX_PARAM as MAX_PARAM, index$2_MAX_QUANTITY as MAX_QUANTITY, index$2_MAX_RATE_MILLI as MAX_RATE_MILLI, index$2_MAX_STEPS as MAX_STEPS, index$2_MAX_STEP_VALUE as MAX_STEP_VALUE, index$2_MAX_SURVEYED as MAX_SURVEYED, index$2_MAX_TERMS as MAX_TERMS, index$2_MIRROR_EVENTS as MIRROR_EVENTS, index$2_NO_INVENTION as NO_INVENTION, NO_ITEM$1 as NO_ITEM, index$2_PATHOGEN as PATHOGEN, index$2_PLOT as PLOT, index$2_PLOT_FIELDS as PLOT_FIELDS, index$2_PLOT_HEALTH as PLOT_HEALTH, index$2_PROCESS as PROCESS, index$2_PROCESSES as PROCESSES, index$2_REACTOR as REACTOR, index$2_REACTOR_FIELDS as REACTOR_FIELDS, index$2_REACTOR_SLOTS as REACTOR_SLOTS, index$2_REGION_METRES as REGION_METRES, index$2_RUN_ID_BYTES as RUN_ID_BYTES, index$2_RegionRef as RegionRef, index$2_ReplayFrontierLink as ReplayFrontierLink, index$2_SLOT_FIELDS as SLOT_FIELDS, index$2_TRAIT as TRAIT, index$2_TickFrontierLink as TickFrontierLink, index$2_VERBS as VERBS, index$2_actionOf as actionOf, index$2_chemistryRequest as chemistryRequest, index$2_encodeCommand as encodeCommand, index$2_frontierAiSection as frontierAiSection, index$2_frontierAiToml as frontierAiToml, index$2_frontierChemistryAiSection as frontierChemistryAiSection, index$2_inventionItem as inventionItem, index$2_inventionRequest as inventionRequest, index$2_isInvention as isInvention, index$2_itemFromCode as itemFromCode, index$2_joinFrontierPlanet as joinFrontierPlanet, index$2_materialItem as materialItem, index$2_regionFromBigInt as regionFromBigInt, index$2_regionKey as regionKey, index$2_requestChemistry as requestChemistry, index$2_requestInvention as requestInvention, index$2_runIdFromAiRun as runIdFromAiRun, index$2_runIdFromHex as runIdFromHex };
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
declare const SANDBOX_TOOLS: readonly [{
|
|
1286
|
+
readonly id: "sand";
|
|
1287
|
+
readonly label: "Sand";
|
|
1288
|
+
readonly material: "sand";
|
|
1289
|
+
}, {
|
|
1290
|
+
readonly id: "water";
|
|
1291
|
+
readonly label: "Water";
|
|
1292
|
+
readonly material: "H2O";
|
|
1293
|
+
}, {
|
|
1294
|
+
readonly id: "wood";
|
|
1295
|
+
readonly label: "Wood";
|
|
1296
|
+
readonly material: "wood";
|
|
1297
|
+
}, {
|
|
1298
|
+
readonly id: "oil";
|
|
1299
|
+
readonly label: "Oil";
|
|
1300
|
+
readonly material: "oil";
|
|
1301
|
+
}, {
|
|
1302
|
+
readonly id: "salt";
|
|
1303
|
+
readonly label: "Salt";
|
|
1304
|
+
readonly material: "NaCl";
|
|
1305
|
+
}, {
|
|
1306
|
+
readonly id: "iron";
|
|
1307
|
+
readonly label: "Iron";
|
|
1308
|
+
readonly material: "Fe";
|
|
1309
|
+
}, {
|
|
1310
|
+
readonly id: "rust";
|
|
1311
|
+
readonly label: "Rust";
|
|
1312
|
+
readonly material: "hematite";
|
|
1313
|
+
}, {
|
|
1314
|
+
readonly id: "aluminium";
|
|
1315
|
+
readonly label: "Aluminium";
|
|
1316
|
+
readonly material: "Al";
|
|
1317
|
+
}, {
|
|
1318
|
+
readonly id: "charcoal";
|
|
1319
|
+
readonly label: "Charcoal";
|
|
1320
|
+
readonly material: "charcoal";
|
|
1321
|
+
}, {
|
|
1322
|
+
readonly id: "limestone";
|
|
1323
|
+
readonly label: "Limestone";
|
|
1324
|
+
readonly material: "CaCO3";
|
|
1325
|
+
}, {
|
|
1326
|
+
readonly id: "acid";
|
|
1327
|
+
readonly label: "Acid";
|
|
1328
|
+
readonly material: "HCl";
|
|
1329
|
+
}, {
|
|
1330
|
+
readonly id: "sodium";
|
|
1331
|
+
readonly label: "Sodium";
|
|
1332
|
+
readonly material: "Na";
|
|
1333
|
+
}, {
|
|
1334
|
+
readonly id: "tnt";
|
|
1335
|
+
readonly label: "TNT";
|
|
1336
|
+
readonly material: "TNT";
|
|
1337
|
+
}, {
|
|
1338
|
+
readonly id: "gunpowder";
|
|
1339
|
+
readonly label: "Gunpowder";
|
|
1340
|
+
readonly material: "gunpowder";
|
|
1341
|
+
}, {
|
|
1342
|
+
readonly id: "fire";
|
|
1343
|
+
readonly label: "Fire";
|
|
1344
|
+
readonly material: "";
|
|
1345
|
+
}, {
|
|
1346
|
+
readonly id: "frost";
|
|
1347
|
+
readonly label: "Frost";
|
|
1348
|
+
readonly material: "";
|
|
1349
|
+
}, {
|
|
1350
|
+
readonly id: "spark";
|
|
1351
|
+
readonly label: "Spark";
|
|
1352
|
+
readonly material: "";
|
|
1353
|
+
}, {
|
|
1354
|
+
readonly id: "erase";
|
|
1355
|
+
readonly label: "Erase";
|
|
1356
|
+
readonly material: "";
|
|
1357
|
+
}];
|
|
1358
|
+
type SandboxToolId = (typeof SANDBOX_TOOLS)[number]["id"];
|
|
1359
|
+
interface SandboxOptions {
|
|
1360
|
+
readonly width?: number;
|
|
1361
|
+
readonly height?: number;
|
|
1362
|
+
readonly seed?: number;
|
|
1363
|
+
readonly brush?: number;
|
|
1364
|
+
readonly viewport?: () => {
|
|
1365
|
+
readonly width: number;
|
|
1366
|
+
readonly height: number;
|
|
1367
|
+
};
|
|
1368
|
+
readonly background?: number;
|
|
1369
|
+
readonly onEvent?: (event: Readonly<ChemistryEvent>) => void;
|
|
1370
|
+
readonly onMenu?: (which: "tool" | "invent") => void;
|
|
1371
|
+
}
|
|
1372
|
+
declare class ChemistrySandbox implements GameScene<Game> {
|
|
1373
|
+
private readonly options;
|
|
1374
|
+
readonly name = "chemistry-sandbox";
|
|
1375
|
+
readonly width: number;
|
|
1376
|
+
readonly height: number;
|
|
1377
|
+
region: ChemistryRegion | null;
|
|
1378
|
+
tool: SandboxToolId;
|
|
1379
|
+
explosions: number;
|
|
1380
|
+
reactions: number;
|
|
1381
|
+
private pixels;
|
|
1382
|
+
private texture;
|
|
1383
|
+
private material;
|
|
1384
|
+
private node;
|
|
1385
|
+
private readonly pointer;
|
|
1386
|
+
private wasDown;
|
|
1387
|
+
private readonly materials;
|
|
1388
|
+
private readonly brush;
|
|
1389
|
+
private readonly background;
|
|
1390
|
+
private readonly countEvent;
|
|
1391
|
+
constructor(options?: SandboxOptions);
|
|
1392
|
+
enter(game: Game): void;
|
|
1393
|
+
private layout;
|
|
1394
|
+
selectTool(tool: SandboxToolId): void;
|
|
1395
|
+
nextTool(): SandboxToolId;
|
|
1396
|
+
toolLabel(): string;
|
|
1397
|
+
applyAt(cellX: number, cellY: number): void;
|
|
1398
|
+
applyScreen(x: number, y: number, viewportWidth: number, viewportHeight: number): void;
|
|
1399
|
+
fixedUpdate(game: Game): void;
|
|
1400
|
+
update(game: Game): void;
|
|
1401
|
+
exit(game: Game): void;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
declare const index$1_CELL_CLASSES: typeof CELL_CLASSES;
|
|
1405
|
+
declare const index$1_CHEMISTRY_AI_CAPABILITY: typeof CHEMISTRY_AI_CAPABILITY;
|
|
1406
|
+
declare const index$1_CHEMISTRY_ATMOSPHERE: typeof CHEMISTRY_ATMOSPHERE;
|
|
1407
|
+
declare const index$1_CHEMISTRY_BOX_WORDS: typeof CHEMISTRY_BOX_WORDS;
|
|
1408
|
+
declare const index$1_CHEMISTRY_COLUMNS: typeof CHEMISTRY_COLUMNS;
|
|
1409
|
+
declare const index$1_CHEMISTRY_EVENT_HEADER: typeof CHEMISTRY_EVENT_HEADER;
|
|
1410
|
+
declare const index$1_CHEMISTRY_EVENT_KINDS: typeof CHEMISTRY_EVENT_KINDS;
|
|
1411
|
+
declare const index$1_CHEMISTRY_EVENT_WORDS: typeof CHEMISTRY_EVENT_WORDS;
|
|
1412
|
+
declare const index$1_CHEMISTRY_EXPORT_NAMES: typeof CHEMISTRY_EXPORT_NAMES;
|
|
1413
|
+
declare const index$1_CHEMISTRY_NATURE_WORDS: typeof CHEMISTRY_NATURE_WORDS;
|
|
1414
|
+
declare const index$1_CHEMISTRY_PROBE_WORDS: typeof CHEMISTRY_PROBE_WORDS;
|
|
1415
|
+
declare const index$1_CHEMISTRY_REACTION_WORDS: typeof CHEMISTRY_REACTION_WORDS;
|
|
1416
|
+
declare const index$1_CHEMISTRY_REFUSALS: typeof CHEMISTRY_REFUSALS;
|
|
1417
|
+
declare const index$1_CHEMISTRY_REFUSAL_TEXT: typeof CHEMISTRY_REFUSAL_TEXT;
|
|
1418
|
+
declare const index$1_CHEMISTRY_REFUSED: typeof CHEMISTRY_REFUSED;
|
|
1419
|
+
declare const index$1_CHEMISTRY_SLOTS: typeof CHEMISTRY_SLOTS;
|
|
1420
|
+
declare const index$1_CHEMISTRY_SPECIES_WORDS: typeof CHEMISTRY_SPECIES_WORDS;
|
|
1421
|
+
declare const index$1_CHEMISTRY_STATS_WORDS: typeof CHEMISTRY_STATS_WORDS;
|
|
1422
|
+
declare const index$1_CHEMISTRY_TQ: typeof CHEMISTRY_TQ;
|
|
1423
|
+
declare const index$1_CHEMISTRY_UNSET: typeof CHEMISTRY_UNSET;
|
|
1424
|
+
declare const index$1_CHEMISTRY_VACUUM: typeof CHEMISTRY_VACUUM;
|
|
1425
|
+
declare const index$1_CHEMISTRY_VESSEL_SLOTS: typeof CHEMISTRY_VESSEL_SLOTS;
|
|
1426
|
+
declare const index$1_CHEMISTRY_VESSEL_WORDS: typeof CHEMISTRY_VESSEL_WORDS;
|
|
1427
|
+
declare const index$1_CellBox: typeof CellBox;
|
|
1428
|
+
declare const index$1_CellClass: typeof CellClass;
|
|
1429
|
+
declare const index$1_CellProbe: typeof CellProbe;
|
|
1430
|
+
declare const index$1_Chemistry: typeof Chemistry;
|
|
1431
|
+
declare const index$1_ChemistryEngine: typeof ChemistryEngine;
|
|
1432
|
+
declare const index$1_ChemistryEvent: typeof ChemistryEvent;
|
|
1433
|
+
declare const index$1_ChemistryEventKind: typeof ChemistryEventKind;
|
|
1434
|
+
declare const index$1_ChemistryExportName: typeof ChemistryExportName;
|
|
1435
|
+
declare const index$1_ChemistryExports: typeof ChemistryExports;
|
|
1436
|
+
declare const index$1_ChemistryGroup: typeof ChemistryGroup;
|
|
1437
|
+
declare const index$1_ChemistryMemory: typeof ChemistryMemory;
|
|
1438
|
+
declare const index$1_ChemistryParticles: typeof ChemistryParticles;
|
|
1439
|
+
declare const index$1_ChemistryRefusal: typeof ChemistryRefusal;
|
|
1440
|
+
declare const index$1_ChemistryRegion: typeof ChemistryRegion;
|
|
1441
|
+
type index$1_ChemistrySandbox = ChemistrySandbox;
|
|
1442
|
+
declare const index$1_ChemistrySandbox: typeof ChemistrySandbox;
|
|
1443
|
+
declare const index$1_ChemistryVessel: typeof ChemistryVessel;
|
|
1444
|
+
declare const index$1_DefineResult: typeof DefineResult;
|
|
1445
|
+
declare const index$1_MAX_FORMULA: typeof MAX_FORMULA;
|
|
1446
|
+
declare const index$1_MAX_NAME: typeof MAX_NAME;
|
|
1447
|
+
declare const index$1_MAX_SPECIES: typeof MAX_SPECIES;
|
|
1448
|
+
declare const index$1_MaterialInfo: typeof MaterialInfo;
|
|
1449
|
+
declare const index$1_NatureOptions: typeof NatureOptions;
|
|
1450
|
+
declare const index$1_PROPOSAL_SCHEMA: typeof PROPOSAL_SCHEMA;
|
|
1451
|
+
declare const index$1_Proposal: typeof Proposal;
|
|
1452
|
+
declare const index$1_ProposedMaterial: typeof ProposedMaterial;
|
|
1453
|
+
declare const index$1_ProposedTerm: typeof ProposedTerm;
|
|
1454
|
+
declare const index$1_ReactionIdea: typeof ReactionIdea;
|
|
1455
|
+
declare const index$1_ReactionInfo: typeof ReactionInfo;
|
|
1456
|
+
declare const index$1_ReactionTerm: typeof ReactionTerm;
|
|
1457
|
+
declare const index$1_RegionOptions: typeof RegionOptions;
|
|
1458
|
+
declare const index$1_RegionStats: typeof RegionStats;
|
|
1459
|
+
declare const index$1_SANDBOX_TOOLS: typeof SANDBOX_TOOLS;
|
|
1460
|
+
type index$1_SandboxOptions = SandboxOptions;
|
|
1461
|
+
type index$1_SandboxToolId = SandboxToolId;
|
|
1462
|
+
declare const index$1_VesselState: typeof VesselState;
|
|
1463
|
+
declare const index$1_bindChemistryEngine: typeof bindChemistryEngine;
|
|
1464
|
+
declare const index$1_chemistryAiSection: typeof chemistryAiSection;
|
|
1465
|
+
declare const index$1_chemistryAiToml: typeof chemistryAiToml;
|
|
1466
|
+
declare const index$1_groupNames: typeof groupNames;
|
|
1467
|
+
declare const index$1_knownMaterials: typeof knownMaterials;
|
|
1468
|
+
declare const index$1_proposalText: typeof proposalText;
|
|
1469
|
+
declare const index$1_proposeReaction: typeof proposeReaction;
|
|
1470
|
+
declare const index$1_reactionRequest: typeof reactionRequest;
|
|
1471
|
+
declare namespace index$1 {
|
|
1472
|
+
export { index$1_CELL_CLASSES as CELL_CLASSES, index$1_CHEMISTRY_AI_CAPABILITY as CHEMISTRY_AI_CAPABILITY, index$1_CHEMISTRY_ATMOSPHERE as CHEMISTRY_ATMOSPHERE, index$1_CHEMISTRY_BOX_WORDS as CHEMISTRY_BOX_WORDS, index$1_CHEMISTRY_COLUMNS as CHEMISTRY_COLUMNS, index$1_CHEMISTRY_EVENT_HEADER as CHEMISTRY_EVENT_HEADER, index$1_CHEMISTRY_EVENT_KINDS as CHEMISTRY_EVENT_KINDS, index$1_CHEMISTRY_EVENT_WORDS as CHEMISTRY_EVENT_WORDS, index$1_CHEMISTRY_EXPORT_NAMES as CHEMISTRY_EXPORT_NAMES, CHEMISTRY_GROUPS$1 as CHEMISTRY_GROUPS, index$1_CHEMISTRY_NATURE_WORDS as CHEMISTRY_NATURE_WORDS, index$1_CHEMISTRY_PROBE_WORDS as CHEMISTRY_PROBE_WORDS, CHEMISTRY_PROMPT$1 as CHEMISTRY_PROMPT, index$1_CHEMISTRY_REACTION_WORDS as CHEMISTRY_REACTION_WORDS, index$1_CHEMISTRY_REFUSALS as CHEMISTRY_REFUSALS, index$1_CHEMISTRY_REFUSAL_TEXT as CHEMISTRY_REFUSAL_TEXT, index$1_CHEMISTRY_REFUSED as CHEMISTRY_REFUSED, CHEMISTRY_SCHEMA$1 as CHEMISTRY_SCHEMA, index$1_CHEMISTRY_SLOTS as CHEMISTRY_SLOTS, index$1_CHEMISTRY_SPECIES_WORDS as CHEMISTRY_SPECIES_WORDS, index$1_CHEMISTRY_STATS_WORDS as CHEMISTRY_STATS_WORDS, CHEMISTRY_TEMPLATE$1 as CHEMISTRY_TEMPLATE, index$1_CHEMISTRY_TQ as CHEMISTRY_TQ, index$1_CHEMISTRY_UNSET as CHEMISTRY_UNSET, index$1_CHEMISTRY_VACUUM as CHEMISTRY_VACUUM, index$1_CHEMISTRY_VESSEL_SLOTS as CHEMISTRY_VESSEL_SLOTS, index$1_CHEMISTRY_VESSEL_WORDS as CHEMISTRY_VESSEL_WORDS, index$1_CellBox as CellBox, index$1_CellClass as CellClass, index$1_CellProbe as CellProbe, index$1_Chemistry as Chemistry, ChemistryAi$1 as ChemistryAi, index$1_ChemistryEngine as ChemistryEngine, index$1_ChemistryEvent as ChemistryEvent, index$1_ChemistryEventKind as ChemistryEventKind, index$1_ChemistryExportName as ChemistryExportName, index$1_ChemistryExports as ChemistryExports, index$1_ChemistryGroup as ChemistryGroup, index$1_ChemistryMemory as ChemistryMemory, index$1_ChemistryParticles as ChemistryParticles, index$1_ChemistryRefusal as ChemistryRefusal, index$1_ChemistryRegion as ChemistryRegion, index$1_ChemistrySandbox as ChemistrySandbox, index$1_ChemistryVessel as ChemistryVessel, index$1_DefineResult as DefineResult, index$1_MAX_FORMULA as MAX_FORMULA, MAX_KNOWN_CHARS$1 as MAX_KNOWN_CHARS, index$1_MAX_NAME as MAX_NAME, index$1_MAX_SPECIES as MAX_SPECIES, MAX_TERMS$1 as MAX_TERMS, index$1_MaterialInfo as MaterialInfo, index$1_NatureOptions as NatureOptions, index$1_PROPOSAL_SCHEMA as PROPOSAL_SCHEMA, index$1_Proposal as Proposal, index$1_ProposedMaterial as ProposedMaterial, index$1_ProposedTerm as ProposedTerm, index$1_ReactionIdea as ReactionIdea, index$1_ReactionInfo as ReactionInfo, index$1_ReactionTerm as ReactionTerm, index$1_RegionOptions as RegionOptions, index$1_RegionStats as RegionStats, index$1_SANDBOX_TOOLS as SANDBOX_TOOLS, type index$1_SandboxOptions as SandboxOptions, type index$1_SandboxToolId as SandboxToolId, index$1_VesselState as VesselState, index$1_bindChemistryEngine as bindChemistryEngine, index$1_chemistryAiSection as chemistryAiSection, index$1_chemistryAiToml as chemistryAiToml, index$1_groupNames as groupNames, index$1_knownMaterials as knownMaterials, index$1_proposalText as proposalText, index$1_proposeReaction as proposeReaction, index$1_reactionRequest as reactionRequest };
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
declare const index_BLESSED: typeof BLESSED;
|
|
1476
|
+
declare const index_ByteWriter: typeof ByteWriter;
|
|
1477
|
+
declare const index_CHRONICLE_MAX_UNITS: typeof CHRONICLE_MAX_UNITS;
|
|
1478
|
+
declare const index_CHRONICLE_PROMPT: typeof CHRONICLE_PROMPT;
|
|
1479
|
+
declare const index_CHRONICLE_TEMPLATE: typeof CHRONICLE_TEMPLATE;
|
|
1480
|
+
declare const index_CONSTITUTION_PROMPT: typeof CONSTITUTION_PROMPT;
|
|
1481
|
+
declare const index_CONSTITUTION_SCHEMA: typeof CONSTITUTION_SCHEMA;
|
|
1482
|
+
declare const index_CONSTITUTION_SCHEMA_NAME: typeof CONSTITUTION_SCHEMA_NAME;
|
|
1483
|
+
declare const index_CONSTITUTION_TEMPLATE: typeof CONSTITUTION_TEMPLATE;
|
|
1484
|
+
declare const index_CURSED: typeof CURSED;
|
|
1485
|
+
declare const index_ChronicleRequest: typeof ChronicleRequest;
|
|
1486
|
+
declare const index_Clause: typeof Clause;
|
|
1487
|
+
declare const index_Constitution: typeof Constitution;
|
|
1488
|
+
declare const index_ConstitutionRequest: typeof ConstitutionRequest;
|
|
1489
|
+
declare const index_DECREE_REFUSALS: typeof DECREE_REFUSALS;
|
|
1490
|
+
declare const index_DECREE_REFUSAL_BASE: typeof DECREE_REFUSAL_BASE;
|
|
1491
|
+
declare const index_DEFAULT_NATURE: typeof DEFAULT_NATURE;
|
|
1492
|
+
declare const index_DESTINY: typeof DESTINY;
|
|
1493
|
+
declare const index_DISASTER: typeof DISASTER;
|
|
1494
|
+
declare const index_Decree: typeof Decree;
|
|
1495
|
+
declare const index_EDIT_RING: typeof EDIT_RING;
|
|
1496
|
+
declare const index_ENVELOPE: typeof ENVELOPE;
|
|
1497
|
+
declare const index_Edit: typeof Edit;
|
|
1498
|
+
declare const index_Effect: typeof Effect;
|
|
1499
|
+
declare const index_EraReply: typeof EraReply;
|
|
1500
|
+
declare const index_FACT_KINDS: typeof FACT_KINDS;
|
|
1501
|
+
declare const index_FACT_RING: typeof FACT_RING;
|
|
1502
|
+
declare const index_FACT_SLOTS: typeof FACT_SLOTS;
|
|
1503
|
+
declare const index_FORECAST_FAILED: typeof FORECAST_FAILED;
|
|
1504
|
+
declare const index_FRAME: typeof FRAME;
|
|
1505
|
+
declare const index_Fact: typeof Fact;
|
|
1506
|
+
declare const index_FaithRecord: typeof FaithRecord;
|
|
1507
|
+
declare const index_Filter: typeof Filter;
|
|
1508
|
+
declare const index_ForecastReply: typeof ForecastReply;
|
|
1509
|
+
declare const index_ForecastYear: typeof ForecastYear;
|
|
1510
|
+
declare const index_Found: typeof Found;
|
|
1511
|
+
declare const index_GENESIS_ACTIVE_WORDS: typeof GENESIS_ACTIVE_WORDS;
|
|
1512
|
+
declare const index_GENESIS_CHANNEL_SLOT: typeof GENESIS_CHANNEL_SLOT;
|
|
1513
|
+
declare const index_GENESIS_EXPORT_NAMES: typeof GENESIS_EXPORT_NAMES;
|
|
1514
|
+
declare const index_GENESIS_INDICATOR_WORDS: typeof GENESIS_INDICATOR_WORDS;
|
|
1515
|
+
declare const index_GENESIS_OPEN_WORDS: typeof GENESIS_OPEN_WORDS;
|
|
1516
|
+
declare const index_GENESIS_REFUSED: typeof GENESIS_REFUSED;
|
|
1517
|
+
declare const index_GENESIS_SETTLEMENT_WORDS: typeof GENESIS_SETTLEMENT_WORDS;
|
|
1518
|
+
declare const index_GIFTED: typeof GIFTED;
|
|
1519
|
+
declare const index_GOVERNMENT: typeof GOVERNMENT;
|
|
1520
|
+
declare const index_GenesisAi: typeof GenesisAi;
|
|
1521
|
+
declare const index_GenesisCommands: typeof GenesisCommands;
|
|
1522
|
+
declare const index_GenesisEngine: typeof GenesisEngine;
|
|
1523
|
+
declare const index_GenesisExportName: typeof GenesisExportName;
|
|
1524
|
+
declare const index_GenesisExports: typeof GenesisExports;
|
|
1525
|
+
declare const index_GenesisLink: typeof GenesisLink;
|
|
1526
|
+
declare const index_GenesisMirror: typeof GenesisMirror;
|
|
1527
|
+
declare const index_GenesisNature: typeof GenesisNature;
|
|
1528
|
+
declare const index_GenesisSession: typeof GenesisSession;
|
|
1529
|
+
declare const index_GenesisState: typeof GenesisState;
|
|
1530
|
+
declare const index_GenesisWorld: typeof GenesisWorld;
|
|
1531
|
+
declare const index_GenesisWorldOptions: typeof GenesisWorldOptions;
|
|
1532
|
+
declare const index_HUMAN: typeof HUMAN;
|
|
1533
|
+
declare const index_LAT_BANDS_MAX: typeof LAT_BANDS_MAX;
|
|
1534
|
+
declare const index_LocalGenesis: typeof LocalGenesis;
|
|
1535
|
+
declare const index_LocalIndicators: typeof LocalIndicators;
|
|
1536
|
+
declare const index_LocalStart: typeof LocalStart;
|
|
1537
|
+
declare const index_MAX_DECREE_BYTES: typeof MAX_DECREE_BYTES;
|
|
1538
|
+
declare const index_MAX_FACT_CHARS: typeof MAX_FACT_CHARS;
|
|
1539
|
+
declare const index_MAX_FAITHS: typeof MAX_FAITHS;
|
|
1540
|
+
declare const index_MAX_SETTLEMENTS: typeof MAX_SETTLEMENTS;
|
|
1541
|
+
declare const index_MAX_WORLD_CHARS: typeof MAX_WORLD_CHARS;
|
|
1542
|
+
declare const index_MONTHS_PER_YEAR: typeof MONTHS_PER_YEAR;
|
|
1543
|
+
declare const index_NONE: typeof NONE;
|
|
1544
|
+
declare const index_NO_FAITH: typeof NO_FAITH;
|
|
1545
|
+
declare const index_NameRefusal: typeof NameRefusal;
|
|
1546
|
+
declare const index_Nature: typeof Nature;
|
|
1547
|
+
declare const index_OP: typeof OP;
|
|
1548
|
+
declare const index_Office: typeof Office;
|
|
1549
|
+
declare const index_PROPERTY: typeof PROPERTY;
|
|
1550
|
+
declare const index_PersonRecord: typeof PersonRecord;
|
|
1551
|
+
declare const index_Power: typeof Power;
|
|
1552
|
+
declare const index_Predicate: typeof Predicate;
|
|
1553
|
+
declare const index_Q16: typeof Q16;
|
|
1554
|
+
declare const index_REFUSED_DRAFT: typeof REFUSED_DRAFT;
|
|
1555
|
+
declare const index_REFUSED_FULL: typeof REFUSED_FULL;
|
|
1556
|
+
declare const index_REFUSED_MALFORMED: typeof REFUSED_MALFORMED;
|
|
1557
|
+
declare const index_REFUSED_SEAT: typeof REFUSED_SEAT;
|
|
1558
|
+
declare const index_RIGHT: typeof RIGHT;
|
|
1559
|
+
declare const index_RIGHTS_ALL: typeof RIGHTS_ALL;
|
|
1560
|
+
declare const index_ReplayGenesisLink: typeof ReplayGenesisLink;
|
|
1561
|
+
declare const index_Review: typeof Review;
|
|
1562
|
+
declare const index_Rule: typeof Rule;
|
|
1563
|
+
declare const index_SELECTION: typeof SELECTION;
|
|
1564
|
+
declare const index_SINK: typeof SINK;
|
|
1565
|
+
declare const index_START_MONTH: typeof START_MONTH;
|
|
1566
|
+
declare const index_Species: typeof Species;
|
|
1567
|
+
declare const index_TERRAIN: typeof TERRAIN;
|
|
1568
|
+
declare const index_TIER: typeof TIER;
|
|
1569
|
+
declare const index_TRIGGER: typeof TRIGGER;
|
|
1570
|
+
declare const index_Target: typeof Target;
|
|
1571
|
+
declare const index_TickGenesisLink: typeof TickGenesisLink;
|
|
1572
|
+
declare const index_applyNature: typeof applyNature;
|
|
1573
|
+
declare const index_bindGenesisEngine: typeof bindGenesisEngine;
|
|
1574
|
+
declare const index_chronicleRequest: typeof chronicleRequest;
|
|
1575
|
+
declare const index_constitutionRequest: typeof constitutionRequest;
|
|
1576
|
+
declare const index_encodeDecree: typeof encodeDecree;
|
|
1577
|
+
declare const index_encodeReviewedLaw: typeof encodeReviewedLaw;
|
|
1578
|
+
declare const index_factsText: typeof factsText;
|
|
1579
|
+
declare const index_finalize: typeof finalize;
|
|
1580
|
+
declare const index_genesisAiSection: typeof genesisAiSection;
|
|
1581
|
+
declare const index_genesisAiToml: typeof genesisAiToml;
|
|
1582
|
+
declare const index_joinGenesisWorld: typeof joinGenesisWorld;
|
|
1583
|
+
declare const index_mix: typeof mix;
|
|
1584
|
+
declare const index_nameOf: typeof nameOf;
|
|
1585
|
+
declare const index_percentQ16: typeof percentQ16;
|
|
1586
|
+
declare const index_ratioQ16: typeof ratioQ16;
|
|
1587
|
+
declare const index_requestChronicle: typeof requestChronicle;
|
|
1588
|
+
declare const index_requestConstitution: typeof requestConstitution;
|
|
1589
|
+
declare const index_runIdFromAiRun: typeof runIdFromAiRun;
|
|
1590
|
+
declare const index_screenName: typeof screenName;
|
|
1591
|
+
declare const index_writeConstitution: typeof writeConstitution;
|
|
1592
|
+
declare const index_writeNature: typeof writeNature;
|
|
1593
|
+
declare const index_yearOf: typeof yearOf;
|
|
1594
|
+
declare namespace index {
|
|
1595
|
+
export { ACTION$1 as ACTION, AI_CAPABILITY$1 as AI_CAPABILITY, index_BLESSED as BLESSED, BOX_CAPACITY$1 as BOX_CAPACITY, index_ByteWriter as ByteWriter, index_CHRONICLE_MAX_UNITS as CHRONICLE_MAX_UNITS, index_CHRONICLE_PROMPT as CHRONICLE_PROMPT, index_CHRONICLE_TEMPLATE as CHRONICLE_TEMPLATE, index_CONSTITUTION_PROMPT as CONSTITUTION_PROMPT, index_CONSTITUTION_SCHEMA as CONSTITUTION_SCHEMA, index_CONSTITUTION_SCHEMA_NAME as CONSTITUTION_SCHEMA_NAME, index_CONSTITUTION_TEMPLATE as CONSTITUTION_TEMPLATE, index_CURSED as CURSED, index_ChronicleRequest as ChronicleRequest, index_Clause as Clause, index_Constitution as Constitution, index_ConstitutionRequest as ConstitutionRequest, index_DECREE_REFUSALS as DECREE_REFUSALS, index_DECREE_REFUSAL_BASE as DECREE_REFUSAL_BASE, index_DEFAULT_NATURE as DEFAULT_NATURE, index_DESTINY as DESTINY, index_DISASTER as DISASTER, index_Decree as Decree, index_EDIT_RING as EDIT_RING, index_ENVELOPE as ENVELOPE, index_Edit as Edit, index_Effect as Effect, index_EraReply as EraReply, index_FACT_KINDS as FACT_KINDS, index_FACT_RING as FACT_RING, index_FACT_SLOTS as FACT_SLOTS, FIELD$1 as FIELD, index_FORECAST_FAILED as FORECAST_FAILED, index_FRAME as FRAME, index_Fact as Fact, index_FaithRecord as FaithRecord, index_Filter as Filter, index_ForecastReply as ForecastReply, index_ForecastYear as ForecastYear, index_Found as Found, index_GENESIS_ACTIVE_WORDS as GENESIS_ACTIVE_WORDS, index_GENESIS_CHANNEL_SLOT as GENESIS_CHANNEL_SLOT, index_GENESIS_EXPORT_NAMES as GENESIS_EXPORT_NAMES, index_GENESIS_INDICATOR_WORDS as GENESIS_INDICATOR_WORDS, index_GENESIS_OPEN_WORDS as GENESIS_OPEN_WORDS, index_GENESIS_REFUSED as GENESIS_REFUSED, index_GENESIS_SETTLEMENT_WORDS as GENESIS_SETTLEMENT_WORDS, index_GIFTED as GIFTED, index_GOVERNMENT as GOVERNMENT, index_GenesisAi as GenesisAi, index_GenesisCommands as GenesisCommands, index_GenesisEngine as GenesisEngine, index_GenesisExportName as GenesisExportName, index_GenesisExports as GenesisExports, index_GenesisLink as GenesisLink, index_GenesisMirror as GenesisMirror, index_GenesisNature as GenesisNature, index_GenesisSession as GenesisSession, index_GenesisState as GenesisState, index_GenesisWorld as GenesisWorld, index_GenesisWorldOptions as GenesisWorldOptions, index_HUMAN as HUMAN, index_LAT_BANDS_MAX as LAT_BANDS_MAX, index_LocalGenesis as LocalGenesis, index_LocalIndicators as LocalIndicators, index_LocalStart as LocalStart, index_MAX_DECREE_BYTES as MAX_DECREE_BYTES, index_MAX_FACT_CHARS as MAX_FACT_CHARS, index_MAX_FAITHS as MAX_FAITHS, MAX_NAME_CHARS$1 as MAX_NAME_CHARS, index_MAX_SETTLEMENTS as MAX_SETTLEMENTS, index_MAX_WORLD_CHARS as MAX_WORLD_CHARS, index_MONTHS_PER_YEAR as MONTHS_PER_YEAR, index_NONE as NONE, index_NO_FAITH as NO_FAITH, index_NameRefusal as NameRefusal, index_Nature as Nature, index_OP as OP, index_Office as Office, index_PROPERTY as PROPERTY, index_PersonRecord as PersonRecord, index_Power as Power, index_Predicate as Predicate, index_Q16 as Q16, index_REFUSED_DRAFT as REFUSED_DRAFT, index_REFUSED_FULL as REFUSED_FULL, index_REFUSED_MALFORMED as REFUSED_MALFORMED, index_REFUSED_SEAT as REFUSED_SEAT, index_RIGHT as RIGHT, index_RIGHTS_ALL as RIGHTS_ALL, RUN_ID_BYTES$1 as RUN_ID_BYTES, index_ReplayGenesisLink as ReplayGenesisLink, index_Review as Review, index_Rule as Rule, index_SELECTION as SELECTION, index_SINK as SINK, index_START_MONTH as START_MONTH, index_Species as Species, index_TERRAIN as TERRAIN, index_TIER as TIER, index_TRIGGER as TRIGGER, index_Target as Target, index_TickGenesisLink as TickGenesisLink, index_applyNature as applyNature, index_bindGenesisEngine as bindGenesisEngine, index_chronicleRequest as chronicleRequest, index_constitutionRequest as constitutionRequest, index_encodeDecree as encodeDecree, index_encodeReviewedLaw as encodeReviewedLaw, index_factsText as factsText, index_finalize as finalize, index_genesisAiSection as genesisAiSection, index_genesisAiToml as genesisAiToml, index_joinGenesisWorld as joinGenesisWorld, index_mix as mix, index_nameOf as nameOf, index_percentQ16 as percentQ16, index_ratioQ16 as ratioQ16, index_requestChronicle as requestChronicle, index_requestConstitution as requestConstitution, index_runIdFromAiRun as runIdFromAiRun, index_screenName as screenName, index_writeConstitution as writeConstitution, index_writeNature as writeNature, index_yearOf as yearOf };
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
declare const BUTTON_PRIMARY = 1;
|
|
1599
|
+
declare const BUTTON_SECONDARY = 2;
|
|
1600
|
+
declare const BUTTON_MIDDLE = 4;
|
|
1601
|
+
interface CameraControl {
|
|
1602
|
+
enabled: boolean;
|
|
1603
|
+
update(dt: number): void;
|
|
1604
|
+
dispose(): void;
|
|
1605
|
+
}
|
|
1606
|
+
interface ControlViewOptions {
|
|
1607
|
+
readonly fov?: number;
|
|
1608
|
+
readonly aspect?: number;
|
|
1609
|
+
}
|
|
1610
|
+
declare function frameDamping(factor: number, dt: number): number;
|
|
1611
|
+
declare class CameraPose {
|
|
1612
|
+
readonly position: Vec3$1;
|
|
1613
|
+
readonly rotation: Quat;
|
|
1614
|
+
readonly transforms: Transforms;
|
|
1615
|
+
readonly camera: Entity;
|
|
1616
|
+
constructor(transforms: Transforms, camera: Entity);
|
|
1617
|
+
read(): void;
|
|
1618
|
+
write(): void;
|
|
1619
|
+
axis(index: number, out: Vec3$1): Vec3$1;
|
|
1620
|
+
forward(out: Vec3$1): Vec3$1;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
interface OrbitControlsOptions extends ControlViewOptions {
|
|
1624
|
+
readonly target?: readonly [number, number, number];
|
|
1625
|
+
readonly enableDamping?: boolean;
|
|
1626
|
+
readonly dampingFactor?: number;
|
|
1627
|
+
readonly minDistance?: number;
|
|
1628
|
+
readonly maxDistance?: number;
|
|
1629
|
+
readonly minPolarAngle?: number;
|
|
1630
|
+
readonly maxPolarAngle?: number;
|
|
1631
|
+
readonly minAzimuthAngle?: number;
|
|
1632
|
+
readonly maxAzimuthAngle?: number;
|
|
1633
|
+
readonly autoRotate?: boolean;
|
|
1634
|
+
readonly autoRotateSpeed?: number;
|
|
1635
|
+
readonly screenSpacePanning?: boolean;
|
|
1636
|
+
readonly zoomToCursor?: boolean;
|
|
1637
|
+
readonly orthographicHeight?: number;
|
|
1638
|
+
}
|
|
1639
|
+
declare class OrbitControls implements CameraControl {
|
|
1640
|
+
enabled: boolean;
|
|
1641
|
+
enableRotate: boolean;
|
|
1642
|
+
enableZoom: boolean;
|
|
1643
|
+
enablePan: boolean;
|
|
1644
|
+
enableDamping: boolean;
|
|
1645
|
+
dampingFactor: number;
|
|
1646
|
+
rotateSpeed: number;
|
|
1647
|
+
zoomSpeed: number;
|
|
1648
|
+
panSpeed: number;
|
|
1649
|
+
minDistance: number;
|
|
1650
|
+
maxDistance: number;
|
|
1651
|
+
minPolarAngle: number;
|
|
1652
|
+
maxPolarAngle: number;
|
|
1653
|
+
minAzimuthAngle: number;
|
|
1654
|
+
maxAzimuthAngle: number;
|
|
1655
|
+
autoRotate: boolean;
|
|
1656
|
+
autoRotateSpeed: number;
|
|
1657
|
+
screenSpacePanning: boolean;
|
|
1658
|
+
zoomToCursor: boolean;
|
|
1659
|
+
fov: number;
|
|
1660
|
+
aspect: number;
|
|
1661
|
+
orthographicHeight: number;
|
|
1662
|
+
rotateButtons: number;
|
|
1663
|
+
panButtons: number;
|
|
1664
|
+
dollyButtons: number;
|
|
1665
|
+
readonly target: Vec3$1;
|
|
1666
|
+
readonly pose: CameraPose;
|
|
1667
|
+
private readonly input;
|
|
1668
|
+
private readonly spherical;
|
|
1669
|
+
private readonly sphericalDelta;
|
|
1670
|
+
private readonly panOffset;
|
|
1671
|
+
private scale;
|
|
1672
|
+
private cursorX;
|
|
1673
|
+
private cursorY;
|
|
1674
|
+
private cursorZoom;
|
|
1675
|
+
private readonly offset;
|
|
1676
|
+
private readonly column;
|
|
1677
|
+
private readonly scratch;
|
|
1678
|
+
private readonly cursorPoint;
|
|
1679
|
+
private readonly savedTarget;
|
|
1680
|
+
private readonly savedPosition;
|
|
1681
|
+
private readonly projection;
|
|
1682
|
+
private readonly world;
|
|
1683
|
+
private readonly ray;
|
|
1684
|
+
private readonly plane;
|
|
1685
|
+
constructor(transforms: Transforms, camera: Entity, input: InputActions, options?: OrbitControlsOptions);
|
|
1686
|
+
get distance(): number;
|
|
1687
|
+
get polarAngle(): number;
|
|
1688
|
+
get azimuthAngle(): number;
|
|
1689
|
+
setViewport(width: number, height: number): void;
|
|
1690
|
+
setTarget(target: Vec3Like): void;
|
|
1691
|
+
saveState(): void;
|
|
1692
|
+
reset(): void;
|
|
1693
|
+
rotateLeft(angle: number): void;
|
|
1694
|
+
rotateUp(angle: number): void;
|
|
1695
|
+
dolly(scale: number): void;
|
|
1696
|
+
pan(normalizedX: number, normalizedY: number): void;
|
|
1697
|
+
update(dt: number): void;
|
|
1698
|
+
dispose(): void;
|
|
1699
|
+
private zoomScale;
|
|
1700
|
+
private readInput;
|
|
1701
|
+
private setCursor;
|
|
1702
|
+
private apply;
|
|
1703
|
+
private cursorTarget;
|
|
1704
|
+
}
|
|
1705
|
+
declare class MapControls extends OrbitControls {
|
|
1706
|
+
constructor(transforms: Transforms, camera: Entity, input: InputActions, options?: OrbitControlsOptions);
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
type LookMode = "drag" | "pointer" | "none";
|
|
1710
|
+
interface MovementKeys {
|
|
1711
|
+
readonly forward: readonly string[];
|
|
1712
|
+
readonly backward: readonly string[];
|
|
1713
|
+
readonly left: readonly string[];
|
|
1714
|
+
readonly right: readonly string[];
|
|
1715
|
+
readonly up: readonly string[];
|
|
1716
|
+
readonly down: readonly string[];
|
|
1717
|
+
}
|
|
1718
|
+
declare const DEFAULT_MOVEMENT_KEYS: MovementKeys;
|
|
1719
|
+
declare class MovementAxes {
|
|
1720
|
+
readonly forward: ActionId;
|
|
1721
|
+
readonly strafe: ActionId;
|
|
1722
|
+
readonly lift: ActionId;
|
|
1723
|
+
constructor(input: InputActions, prefix: string, keys?: MovementKeys);
|
|
1724
|
+
}
|
|
1725
|
+
interface FirstPersonControlsOptions extends ControlViewOptions {
|
|
1726
|
+
readonly lookSpeed?: number;
|
|
1727
|
+
readonly movementSpeed?: number;
|
|
1728
|
+
readonly lookMode?: LookMode;
|
|
1729
|
+
readonly lookVertical?: boolean;
|
|
1730
|
+
readonly maxPitch?: number;
|
|
1731
|
+
readonly keys?: MovementKeys;
|
|
1732
|
+
readonly actionPrefix?: string;
|
|
1733
|
+
}
|
|
1734
|
+
declare class FirstPersonControls implements CameraControl {
|
|
1735
|
+
enabled: boolean;
|
|
1736
|
+
lookSpeed: number;
|
|
1737
|
+
movementSpeed: number;
|
|
1738
|
+
lookMode: LookMode;
|
|
1739
|
+
lookVertical: boolean;
|
|
1740
|
+
maxPitch: number;
|
|
1741
|
+
aspect: number;
|
|
1742
|
+
yaw: number;
|
|
1743
|
+
pitch: number;
|
|
1744
|
+
readonly pose: CameraPose;
|
|
1745
|
+
private readonly input;
|
|
1746
|
+
private readonly axes;
|
|
1747
|
+
private readonly angles;
|
|
1748
|
+
private readonly scratch;
|
|
1749
|
+
private readonly turn;
|
|
1750
|
+
private readonly direction;
|
|
1751
|
+
constructor(transforms: Transforms, camera: Entity, input: InputActions, options?: FirstPersonControlsOptions);
|
|
1752
|
+
setViewport(width: number, height: number): void;
|
|
1753
|
+
look(yawDelta: number, pitchDelta: number): void;
|
|
1754
|
+
update(dt: number): void;
|
|
1755
|
+
dispose(): void;
|
|
1756
|
+
}
|
|
1757
|
+
interface PointerLockControlsOptions {
|
|
1758
|
+
readonly pointerSpeed?: number;
|
|
1759
|
+
readonly minPolarAngle?: number;
|
|
1760
|
+
readonly maxPolarAngle?: number;
|
|
1761
|
+
readonly movementSpeed?: number;
|
|
1762
|
+
readonly keys?: MovementKeys;
|
|
1763
|
+
readonly actionPrefix?: string;
|
|
1764
|
+
}
|
|
1765
|
+
declare class PointerLockControls implements CameraControl {
|
|
1766
|
+
enabled: boolean;
|
|
1767
|
+
locked: boolean;
|
|
1768
|
+
pointerSpeed: number;
|
|
1769
|
+
minPolarAngle: number;
|
|
1770
|
+
maxPolarAngle: number;
|
|
1771
|
+
movementSpeed: number;
|
|
1772
|
+
yaw: number;
|
|
1773
|
+
pitch: number;
|
|
1774
|
+
readonly pose: CameraPose;
|
|
1775
|
+
private readonly input;
|
|
1776
|
+
private readonly axes;
|
|
1777
|
+
private readonly angles;
|
|
1778
|
+
private readonly scratch;
|
|
1779
|
+
private readonly turn;
|
|
1780
|
+
private readonly direction;
|
|
1781
|
+
constructor(transforms: Transforms, camera: Entity, input: InputActions, options?: PointerLockControlsOptions);
|
|
1782
|
+
lock(target: PointerLockTarget): Promise<boolean>;
|
|
1783
|
+
unlock(doc: PointerLockDocument): void;
|
|
1784
|
+
moveForward(distance: number): void;
|
|
1785
|
+
moveRight(distance: number): void;
|
|
1786
|
+
private shiftForward;
|
|
1787
|
+
private shiftRight;
|
|
1788
|
+
update(dt: number): void;
|
|
1789
|
+
dispose(): void;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
interface FlyRotationKeys {
|
|
1793
|
+
readonly pitchUp: readonly string[];
|
|
1794
|
+
readonly pitchDown: readonly string[];
|
|
1795
|
+
readonly yawLeft: readonly string[];
|
|
1796
|
+
readonly yawRight: readonly string[];
|
|
1797
|
+
readonly rollLeft: readonly string[];
|
|
1798
|
+
readonly rollRight: readonly string[];
|
|
1799
|
+
}
|
|
1800
|
+
declare const DEFAULT_FLY_ROTATION_KEYS: FlyRotationKeys;
|
|
1801
|
+
interface FlyControlsOptions extends ControlViewOptions {
|
|
1802
|
+
readonly movementSpeed?: number;
|
|
1803
|
+
readonly rollSpeed?: number;
|
|
1804
|
+
readonly dragToLook?: boolean;
|
|
1805
|
+
readonly dragSpeed?: number;
|
|
1806
|
+
readonly keys?: MovementKeys;
|
|
1807
|
+
readonly rotationKeys?: FlyRotationKeys;
|
|
1808
|
+
readonly actionPrefix?: string;
|
|
1809
|
+
}
|
|
1810
|
+
declare class FlyControls implements CameraControl {
|
|
1811
|
+
enabled: boolean;
|
|
1812
|
+
movementSpeed: number;
|
|
1813
|
+
rollSpeed: number;
|
|
1814
|
+
dragToLook: boolean;
|
|
1815
|
+
dragSpeed: number;
|
|
1816
|
+
aspect: number;
|
|
1817
|
+
readonly pose: CameraPose;
|
|
1818
|
+
private readonly input;
|
|
1819
|
+
private readonly axes;
|
|
1820
|
+
private readonly pitchAxis;
|
|
1821
|
+
private readonly yawAxis;
|
|
1822
|
+
private readonly rollAxis;
|
|
1823
|
+
private readonly move;
|
|
1824
|
+
private readonly delta;
|
|
1825
|
+
constructor(transforms: Transforms, camera: Entity, input: InputActions, options?: FlyControlsOptions);
|
|
1826
|
+
setViewport(width: number, height: number): void;
|
|
1827
|
+
rotate(pitch: number, yaw: number, roll: number): void;
|
|
1828
|
+
update(dt: number): void;
|
|
1829
|
+
dispose(): void;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
interface TrackballControlsOptions extends ControlViewOptions {
|
|
1833
|
+
readonly target?: readonly [number, number, number];
|
|
1834
|
+
readonly rotateSpeed?: number;
|
|
1835
|
+
readonly zoomSpeed?: number;
|
|
1836
|
+
readonly panSpeed?: number;
|
|
1837
|
+
readonly staticMoving?: boolean;
|
|
1838
|
+
readonly dynamicDampingFactor?: number;
|
|
1839
|
+
readonly minDistance?: number;
|
|
1840
|
+
readonly maxDistance?: number;
|
|
1841
|
+
}
|
|
1842
|
+
declare class TrackballControls implements CameraControl {
|
|
1843
|
+
enabled: boolean;
|
|
1844
|
+
rotateSpeed: number;
|
|
1845
|
+
zoomSpeed: number;
|
|
1846
|
+
panSpeed: number;
|
|
1847
|
+
staticMoving: boolean;
|
|
1848
|
+
dynamicDampingFactor: number;
|
|
1849
|
+
minDistance: number;
|
|
1850
|
+
maxDistance: number;
|
|
1851
|
+
aspect: number;
|
|
1852
|
+
rotateButtons: number;
|
|
1853
|
+
zoomButtons: number;
|
|
1854
|
+
panButtons: number;
|
|
1855
|
+
readonly target: Vec3$1;
|
|
1856
|
+
readonly up: Vec3$1;
|
|
1857
|
+
readonly pose: CameraPose;
|
|
1858
|
+
private readonly input;
|
|
1859
|
+
private readonly eye;
|
|
1860
|
+
private readonly eyeDirection;
|
|
1861
|
+
private readonly upDirection;
|
|
1862
|
+
private readonly sideways;
|
|
1863
|
+
private readonly moveDirection;
|
|
1864
|
+
private readonly axis;
|
|
1865
|
+
private readonly lastAxis;
|
|
1866
|
+
private readonly pan;
|
|
1867
|
+
private readonly scratch;
|
|
1868
|
+
private readonly turn;
|
|
1869
|
+
private lastAngle;
|
|
1870
|
+
private pendingX;
|
|
1871
|
+
private pendingY;
|
|
1872
|
+
constructor(transforms: Transforms, camera: Entity, input: InputActions, options?: TrackballControlsOptions);
|
|
1873
|
+
setViewport(width: number, height: number): void;
|
|
1874
|
+
rotate(dx: number, dy: number): void;
|
|
1875
|
+
private turnBy;
|
|
1876
|
+
zoom(factor: number): void;
|
|
1877
|
+
update(dt: number): void;
|
|
1878
|
+
dispose(): void;
|
|
1879
|
+
private panBy;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
interface DragPicker {
|
|
1883
|
+
raycast(origin: ArrayLike<number>, direction: ArrayLike<number>, out: PickHit, far?: number, layers?: number): boolean;
|
|
1884
|
+
nodeOf(entity: Entity): NodeId | null;
|
|
1885
|
+
}
|
|
1886
|
+
interface DragControlsOptions {
|
|
1887
|
+
readonly layers?: number;
|
|
1888
|
+
readonly far?: number;
|
|
1889
|
+
}
|
|
1890
|
+
declare class DragControls implements CameraControl {
|
|
1891
|
+
enabled: boolean;
|
|
1892
|
+
layers: number;
|
|
1893
|
+
far: number;
|
|
1894
|
+
dragging: Entity;
|
|
1895
|
+
hovered: Entity;
|
|
1896
|
+
dragStarted: boolean;
|
|
1897
|
+
dragEnded: boolean;
|
|
1898
|
+
readonly objects: Entity[];
|
|
1899
|
+
readonly hit: PickHit;
|
|
1900
|
+
private readonly picker;
|
|
1901
|
+
private readonly transforms;
|
|
1902
|
+
private readonly projection;
|
|
1903
|
+
private readonly input;
|
|
1904
|
+
private readonly ray;
|
|
1905
|
+
private readonly plane;
|
|
1906
|
+
private readonly offset;
|
|
1907
|
+
private readonly point;
|
|
1908
|
+
private readonly position;
|
|
1909
|
+
private readonly normal;
|
|
1910
|
+
private readonly origin;
|
|
1911
|
+
private readonly direction;
|
|
1912
|
+
private wasDown;
|
|
1913
|
+
constructor(picker: DragPicker, transforms: Transforms, projection: CameraProjection, input: InputActions, objects: Entity[], options?: DragControlsOptions);
|
|
1914
|
+
update(): void;
|
|
1915
|
+
dispose(): void;
|
|
1916
|
+
private release;
|
|
1917
|
+
private pick;
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
interface GyroLookOptions {
|
|
1921
|
+
readonly alphaOffset?: number;
|
|
1922
|
+
readonly smoothing?: number;
|
|
1923
|
+
readonly screenOrientation?: number;
|
|
1924
|
+
}
|
|
1925
|
+
declare function deviceQuaternion(out: Quat, alpha: number, beta: number, gamma: number, orientation: number, scratch: Quat): Quat;
|
|
1926
|
+
declare class GyroLookControls implements CameraControl {
|
|
1927
|
+
enabled: boolean;
|
|
1928
|
+
alphaOffset: number;
|
|
1929
|
+
smoothing: number;
|
|
1930
|
+
screenOrientation: number;
|
|
1931
|
+
readonly pose: CameraPose;
|
|
1932
|
+
private readonly input;
|
|
1933
|
+
private readonly goal;
|
|
1934
|
+
private readonly scratch;
|
|
1935
|
+
private readonly base;
|
|
1936
|
+
private settled;
|
|
1937
|
+
constructor(transforms: Transforms, camera: Entity, input: InputActions, options?: GyroLookOptions);
|
|
1938
|
+
setYawOffset(radians: number): void;
|
|
1939
|
+
update(dt: number): void;
|
|
1940
|
+
dispose(): void;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
declare const graphParamBrand: unique symbol;
|
|
1944
|
+
declare const graphStateBrand: unique symbol;
|
|
1945
|
+
declare const graphEventBrand: unique symbol;
|
|
1946
|
+
type GraphParam = number & {
|
|
1947
|
+
readonly [graphParamBrand]: true;
|
|
1948
|
+
};
|
|
1949
|
+
type GraphState = number & {
|
|
1950
|
+
readonly [graphStateBrand]: true;
|
|
1951
|
+
};
|
|
1952
|
+
type GraphEvent = number & {
|
|
1953
|
+
readonly [graphEventBrand]: true;
|
|
1954
|
+
};
|
|
1955
|
+
type AnimationGraphPort = Pick<ClipAnimationPort, "crossFade" | "fadeClip" | "setClipTime" | "setClipSpeed" | "setClipLoop" | "setClipSync" | "setBlendParameterFrom" | "readClipState" | "readClipEvents">;
|
|
1956
|
+
type GraphParamKind = "float" | "bool" | "trigger";
|
|
1957
|
+
type GraphConditionOp = "greater" | "less" | "equal" | "notEqual" | "true" | "false" | "trigger";
|
|
1958
|
+
interface GraphParamDef {
|
|
1959
|
+
readonly name: string;
|
|
1960
|
+
readonly kind: GraphParamKind;
|
|
1961
|
+
readonly initial?: number | boolean;
|
|
1962
|
+
}
|
|
1963
|
+
interface GraphClipStateDef {
|
|
1964
|
+
readonly name: string;
|
|
1965
|
+
readonly kind: "clip";
|
|
1966
|
+
readonly action: ClipActionId;
|
|
1967
|
+
readonly speed?: number;
|
|
1968
|
+
readonly speedParam?: string;
|
|
1969
|
+
readonly loop?: ClipLoop;
|
|
1970
|
+
readonly repetitions?: number;
|
|
1971
|
+
readonly clampWhenFinished?: boolean;
|
|
1972
|
+
readonly sync?: number | null;
|
|
1973
|
+
readonly duration?: number;
|
|
1974
|
+
readonly restart?: boolean;
|
|
1975
|
+
}
|
|
1976
|
+
interface GraphBlendStateDef {
|
|
1977
|
+
readonly name: string;
|
|
1978
|
+
readonly kind: "blend";
|
|
1979
|
+
readonly space: BlendSpaceId;
|
|
1980
|
+
readonly x: string;
|
|
1981
|
+
readonly y?: string;
|
|
1982
|
+
readonly duration?: number;
|
|
1983
|
+
}
|
|
1984
|
+
type GraphStateDef = GraphClipStateDef | GraphBlendStateDef;
|
|
1985
|
+
interface GraphConditionDef {
|
|
1986
|
+
readonly param: string;
|
|
1987
|
+
readonly op: GraphConditionOp;
|
|
1988
|
+
readonly value?: number;
|
|
1989
|
+
}
|
|
1990
|
+
interface GraphTransitionDef {
|
|
1991
|
+
readonly from: string;
|
|
1992
|
+
readonly to: string;
|
|
1993
|
+
readonly conditions?: readonly GraphConditionDef[];
|
|
1994
|
+
readonly exitTime?: number;
|
|
1995
|
+
readonly seconds?: number;
|
|
1996
|
+
readonly warp?: boolean;
|
|
1997
|
+
readonly priority?: number;
|
|
1998
|
+
readonly allowSelf?: boolean;
|
|
1999
|
+
}
|
|
2000
|
+
interface GraphClipEventDef {
|
|
2001
|
+
readonly name: string;
|
|
2002
|
+
readonly id: number;
|
|
2003
|
+
}
|
|
2004
|
+
interface AnimationGraphDef {
|
|
2005
|
+
readonly params?: readonly GraphParamDef[];
|
|
2006
|
+
readonly states: readonly GraphStateDef[];
|
|
2007
|
+
readonly entry?: string;
|
|
2008
|
+
readonly transitions?: readonly GraphTransitionDef[];
|
|
2009
|
+
readonly clipEvents?: readonly GraphClipEventDef[];
|
|
2010
|
+
readonly eventActions?: readonly ClipActionId[];
|
|
2011
|
+
readonly events?: ClipEventReader | null;
|
|
2012
|
+
}
|
|
2013
|
+
type GraphStateListener = (graph: AnimationGraph, state: GraphState, other: GraphState) => void;
|
|
2014
|
+
type GraphClipEventListener = (graph: AnimationGraph, event: GraphEvent, action: ClipActionId, time: number) => void;
|
|
2015
|
+
declare const ANY_STATE = "any";
|
|
2016
|
+
declare const NO_STATE: GraphState;
|
|
2017
|
+
declare const GRAPH_CURRENT = 0;
|
|
2018
|
+
declare const GRAPH_PREVIOUS = 1;
|
|
2019
|
+
declare const GRAPH_TRANSITION = 2;
|
|
2020
|
+
declare const GRAPH_ELAPSED = 3;
|
|
2021
|
+
declare const GRAPH_BLEND_SECONDS = 4;
|
|
2022
|
+
declare const GRAPH_STATE_SECONDS = 5;
|
|
2023
|
+
declare const GRAPH_PRIORITY = 6;
|
|
2024
|
+
declare class AnimationGraph {
|
|
2025
|
+
readonly state: Float64Array<ArrayBuffer>;
|
|
2026
|
+
readonly values: Float64Array;
|
|
2027
|
+
private readonly port;
|
|
2028
|
+
private readonly paramNames;
|
|
2029
|
+
private readonly paramKinds;
|
|
2030
|
+
private readonly paramLookup;
|
|
2031
|
+
private readonly stateNames;
|
|
2032
|
+
private readonly stateLookup;
|
|
2033
|
+
private readonly nodeKind;
|
|
2034
|
+
private readonly nodeAction;
|
|
2035
|
+
private readonly nodeSpace;
|
|
2036
|
+
private readonly nodeX;
|
|
2037
|
+
private readonly nodeY;
|
|
2038
|
+
private readonly nodeDuration;
|
|
2039
|
+
private readonly nodeSpeed;
|
|
2040
|
+
private readonly nodeSpeedParam;
|
|
2041
|
+
private readonly nodeSentSpeed;
|
|
2042
|
+
private readonly nodeRestart;
|
|
2043
|
+
private readonly blendIo;
|
|
2044
|
+
private readonly blendSent;
|
|
2045
|
+
private readonly blendTarget;
|
|
2046
|
+
private readonly blendRate;
|
|
2047
|
+
private readonly transitionTo;
|
|
2048
|
+
private readonly transitionFrom;
|
|
2049
|
+
private readonly transitionExit;
|
|
2050
|
+
private readonly transitionSeconds;
|
|
2051
|
+
private readonly transitionWarp;
|
|
2052
|
+
private readonly transitionPriority;
|
|
2053
|
+
private readonly transitionSelf;
|
|
2054
|
+
private readonly conditionStart;
|
|
2055
|
+
private readonly conditionParam;
|
|
2056
|
+
private readonly conditionOp;
|
|
2057
|
+
private readonly conditionValue;
|
|
2058
|
+
private readonly candidateStart;
|
|
2059
|
+
private readonly candidates;
|
|
2060
|
+
private readonly eventNames;
|
|
2061
|
+
private readonly eventIds;
|
|
2062
|
+
private readonly eventActions;
|
|
2063
|
+
private readonly reader;
|
|
2064
|
+
private readonly ownsEvents;
|
|
2065
|
+
private readonly clip;
|
|
2066
|
+
private readonly enterListeners;
|
|
2067
|
+
private readonly exitListeners;
|
|
2068
|
+
private readonly eventListeners;
|
|
2069
|
+
constructor(port: AnimationGraphPort, def: AnimationGraphDef);
|
|
2070
|
+
param(name: string): GraphParam;
|
|
2071
|
+
stateOf(name: string): GraphState;
|
|
2072
|
+
clipEvent(name: string): GraphEvent;
|
|
2073
|
+
paramName(param: GraphParam): string;
|
|
2074
|
+
stateName(state: GraphState): string;
|
|
2075
|
+
setFloat(param: GraphParam, value: number): void;
|
|
2076
|
+
setBool(param: GraphParam, value: boolean): void;
|
|
2077
|
+
trigger(param: GraphParam): void;
|
|
2078
|
+
resetTrigger(param: GraphParam): void;
|
|
2079
|
+
getFloat(param: GraphParam): number;
|
|
2080
|
+
getBool(param: GraphParam): boolean;
|
|
2081
|
+
currentState(): GraphState;
|
|
2082
|
+
previousState(): GraphState;
|
|
2083
|
+
inTransition(): boolean;
|
|
2084
|
+
activeTransition(): number;
|
|
2085
|
+
transitionProgress(): number;
|
|
2086
|
+
stateSeconds(): number;
|
|
2087
|
+
onEnter(state: GraphState, listener: GraphStateListener): void;
|
|
2088
|
+
onExit(state: GraphState, listener: GraphStateListener): void;
|
|
2089
|
+
onClipEvent(event: GraphEvent, listener: GraphClipEventListener): void;
|
|
2090
|
+
update(dt: number): void;
|
|
2091
|
+
forwardClipEvents(events: readonly ClipEvent[], count: number): void;
|
|
2092
|
+
private settle;
|
|
2093
|
+
private evaluate;
|
|
2094
|
+
private passes;
|
|
2095
|
+
private phase;
|
|
2096
|
+
private fire;
|
|
2097
|
+
private notify;
|
|
2098
|
+
private crossNodes;
|
|
2099
|
+
private drive;
|
|
2100
|
+
private paramIndex;
|
|
2101
|
+
private floatParam;
|
|
2102
|
+
private stateIndex;
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
declare function wrapAngle(angle: number): number;
|
|
2106
|
+
declare function yawOfQuat(rotation: Float32Array | Float64Array, at: number): number;
|
|
2107
|
+
|
|
2108
|
+
interface PortAssetReader {
|
|
2109
|
+
take(asset: string): Promise<Uint8Array>;
|
|
2110
|
+
}
|
|
2111
|
+
declare const AXIS_X = 0;
|
|
2112
|
+
declare const AXIS_Y = 1;
|
|
2113
|
+
declare const AXIS_Z = 2;
|
|
2114
|
+
declare const CAST_SHADOW = 1;
|
|
2115
|
+
declare const RECEIVE_SHADOW = 2;
|
|
2116
|
+
type PortKeyEventType = "keydown" | "keyup";
|
|
2117
|
+
type PortPointerEventType = "pointerdown" | "pointerup";
|
|
2118
|
+
interface PortKeyEvent {
|
|
2119
|
+
readonly type: PortKeyEventType;
|
|
2120
|
+
readonly code: string;
|
|
2121
|
+
readonly key: string;
|
|
2122
|
+
readonly repeat: boolean;
|
|
2123
|
+
preventDefault(): void;
|
|
2124
|
+
}
|
|
2125
|
+
interface PortPointerEvent {
|
|
2126
|
+
readonly type: PortPointerEventType;
|
|
2127
|
+
readonly button: number;
|
|
2128
|
+
clientX: number;
|
|
2129
|
+
clientY: number;
|
|
2130
|
+
preventDefault(): void;
|
|
2131
|
+
}
|
|
2132
|
+
type PortKeyListener = (event: PortKeyEvent) => void;
|
|
2133
|
+
type PortPointerListener = (event: PortPointerEvent) => void;
|
|
2134
|
+
declare function keyOfCode(code: string): string;
|
|
2135
|
+
interface PortLightOptions {
|
|
2136
|
+
readonly color?: number;
|
|
2137
|
+
readonly intensity?: number;
|
|
2138
|
+
readonly distance?: number;
|
|
2139
|
+
readonly decay?: number;
|
|
2140
|
+
readonly angle?: number;
|
|
2141
|
+
readonly penumbra?: number;
|
|
2142
|
+
readonly groundColor?: number;
|
|
2143
|
+
readonly castShadow?: boolean;
|
|
2144
|
+
readonly shadowMapSize?: number;
|
|
2145
|
+
readonly width?: number;
|
|
2146
|
+
readonly height?: number;
|
|
2147
|
+
}
|
|
2148
|
+
declare function clamp(value: number, min: number, max: number): number;
|
|
2149
|
+
declare function lerp(from: number, to: number, t: number): number;
|
|
2150
|
+
declare function damp(from: number, to: number, lambda: number, dt: number): number;
|
|
2151
|
+
declare function degToRad(degrees: number): number;
|
|
2152
|
+
declare function radToDeg(radians: number): number;
|
|
2153
|
+
declare function smoothstep(value: number, min: number, max: number): number;
|
|
2154
|
+
declare function euclideanModulo(n: number, m: number): number;
|
|
2155
|
+
declare const MathUtils: {
|
|
2156
|
+
readonly clamp: typeof clamp;
|
|
2157
|
+
readonly lerp: typeof lerp;
|
|
2158
|
+
readonly damp: typeof damp;
|
|
2159
|
+
readonly degToRad: typeof degToRad;
|
|
2160
|
+
readonly radToDeg: typeof radToDeg;
|
|
2161
|
+
readonly smoothstep: typeof smoothstep;
|
|
2162
|
+
readonly euclideanModulo: typeof euclideanModulo;
|
|
2163
|
+
};
|
|
2164
|
+
declare class PortClipAction {
|
|
2165
|
+
private readonly port;
|
|
2166
|
+
readonly root: Entity;
|
|
2167
|
+
readonly clip: string;
|
|
2168
|
+
private action;
|
|
2169
|
+
private loop;
|
|
2170
|
+
private speed;
|
|
2171
|
+
constructor(port: ThreePort, root: Entity, clip: string);
|
|
2172
|
+
play(fadeSeconds?: number): this;
|
|
2173
|
+
stop(fadeSeconds?: number): this;
|
|
2174
|
+
fadeIn(seconds: number): this;
|
|
2175
|
+
fadeOut(seconds: number): this;
|
|
2176
|
+
reset(): this;
|
|
2177
|
+
setLoop(repeat: boolean): this;
|
|
2178
|
+
setEffectiveTimeScale(speed: number): this;
|
|
2179
|
+
setEffectiveWeight(weight: number): this;
|
|
2180
|
+
isRunning(): boolean;
|
|
2181
|
+
}
|
|
2182
|
+
declare class ThreePort {
|
|
2183
|
+
readonly game: Game;
|
|
2184
|
+
private readonly assets;
|
|
2185
|
+
private readonly euler;
|
|
2186
|
+
private readonly facing;
|
|
2187
|
+
private readonly quat;
|
|
2188
|
+
private readonly position;
|
|
2189
|
+
private readonly keyActions;
|
|
2190
|
+
private readonly keyDown;
|
|
2191
|
+
private readonly keyUp;
|
|
2192
|
+
private readonly keyDownListeners;
|
|
2193
|
+
private readonly keyUpListeners;
|
|
2194
|
+
private readonly pointerDownListeners;
|
|
2195
|
+
private readonly pointerUpListeners;
|
|
2196
|
+
private readonly pointerDown;
|
|
2197
|
+
private readonly pointerUp;
|
|
2198
|
+
private readonly pointerAt;
|
|
2199
|
+
private pointerAction;
|
|
2200
|
+
constructor(game: Game, assets?: PortAssetReader | null);
|
|
2201
|
+
object(): Entity;
|
|
2202
|
+
group(): Entity;
|
|
2203
|
+
mesh(geometry: GeometryId, material: MaterialId, shadows?: number): Entity;
|
|
2204
|
+
light(light: LightKind, options?: PortLightOptions): Entity;
|
|
2205
|
+
perspectiveCamera(fovDegrees: number, near: number, far: number): Entity;
|
|
2206
|
+
orthographicCamera(left: number, right: number, top: number, bottom: number, near: number, far: number): Entity;
|
|
2207
|
+
add(parent: Entity, child: Entity): void;
|
|
2208
|
+
detach(child: Entity): void;
|
|
2209
|
+
setVisible(entity: Entity, visible: boolean): void;
|
|
2210
|
+
positionAxis(entity: Entity, axis: number): number;
|
|
2211
|
+
setPositionAxis(entity: Entity, axis: number, value: number): void;
|
|
2212
|
+
addPositionAxis(entity: Entity, axis: number, delta: number): void;
|
|
2213
|
+
scaleAxis(entity: Entity, axis: number): number;
|
|
2214
|
+
setScaleAxis(entity: Entity, axis: number, value: number): void;
|
|
2215
|
+
addScaleAxis(entity: Entity, axis: number, delta: number): void;
|
|
2216
|
+
rotationAxis(entity: Entity, axis: number): number;
|
|
2217
|
+
setRotationAxis(entity: Entity, axis: number, radians: number): void;
|
|
2218
|
+
addRotationAxis(entity: Entity, axis: number, radians: number): void;
|
|
2219
|
+
setRotation(entity: Entity, x: number, y: number, z: number): void;
|
|
2220
|
+
copyPosition(target: Entity, source: Entity): void;
|
|
2221
|
+
distanceSquared(a: Entity, b: Entity): number;
|
|
2222
|
+
distance(a: Entity, b: Entity): number;
|
|
2223
|
+
lookAt(entity: Entity, x: number, y: number, z: number): void;
|
|
2224
|
+
lookAtEntity(entity: Entity, target: Entity): void;
|
|
2225
|
+
model(path: string): Promise<ModelInfo>;
|
|
2226
|
+
instantiate(model: ModelInfo): Entity;
|
|
2227
|
+
texture(path: string): Promise<TextureId>;
|
|
2228
|
+
withTexture(material: MaterialId, slot: MaterialTextureSlot, texture: Promise<TextureId>): MaterialId;
|
|
2229
|
+
clipAction(root: Entity, clip: string): PortClipAction;
|
|
2230
|
+
setScalar(entity: Entity, scale: number): void;
|
|
2231
|
+
remove(parent: Entity, child: Entity): void;
|
|
2232
|
+
keys(codes: readonly string[]): void;
|
|
2233
|
+
addKeyListener(type: PortKeyEventType, listener: PortKeyListener): void;
|
|
2234
|
+
addPointerListener(type: PortPointerEventType, listener: PortPointerListener): void;
|
|
2235
|
+
dispatchInput(): void;
|
|
2236
|
+
random(): number;
|
|
2237
|
+
elapsedSeconds(): number;
|
|
2238
|
+
private take;
|
|
2239
|
+
private applyEuler;
|
|
2240
|
+
private storeEuler;
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
declare function bakeThingGlb(compiled: CompiledThing, name: string): Uint8Array;
|
|
2244
|
+
|
|
2245
|
+
type EffectWaitReason = "needs_break_bake" | "needs_sound" | "unsupported_here";
|
|
2246
|
+
interface WaitingEffect {
|
|
2247
|
+
readonly index: number;
|
|
2248
|
+
readonly kind: ThingEffectKind;
|
|
2249
|
+
readonly reason: EffectWaitReason;
|
|
2250
|
+
}
|
|
2251
|
+
interface BrokenThing {
|
|
2252
|
+
readonly model: ModelInfo;
|
|
2253
|
+
readonly fracture: Uint8Array;
|
|
2254
|
+
}
|
|
2255
|
+
interface ThingEffectsInputs {
|
|
2256
|
+
readonly camera: Entity;
|
|
2257
|
+
readonly sounds?: ReadonlyMap<string, SoundId>;
|
|
2258
|
+
readonly broken?: BrokenThing | null;
|
|
2259
|
+
}
|
|
2260
|
+
declare class ThingEffects implements GameSystem<Game> {
|
|
2261
|
+
private readonly game;
|
|
2262
|
+
readonly thing: Entity;
|
|
2263
|
+
readonly effects: readonly ThingEffect[];
|
|
2264
|
+
private readonly options;
|
|
2265
|
+
readonly waiting: readonly WaitingEffect[];
|
|
2266
|
+
readonly running: Uint8Array;
|
|
2267
|
+
private readonly live;
|
|
2268
|
+
private readonly offsets;
|
|
2269
|
+
private readonly starts;
|
|
2270
|
+
private readonly ends;
|
|
2271
|
+
private readonly smokeActive;
|
|
2272
|
+
private readonly at;
|
|
2273
|
+
private readonly position;
|
|
2274
|
+
private readonly rotation;
|
|
2275
|
+
private smoke;
|
|
2276
|
+
private medium;
|
|
2277
|
+
private fluid;
|
|
2278
|
+
private destructible;
|
|
2279
|
+
private elapsed;
|
|
2280
|
+
private playing;
|
|
2281
|
+
private smokeDirty;
|
|
2282
|
+
constructor(game: Game, thing: Entity, effects: readonly ThingEffect[], options: ThingEffectsInputs);
|
|
2283
|
+
get seconds(): number;
|
|
2284
|
+
play(): void;
|
|
2285
|
+
stop(): void;
|
|
2286
|
+
fixedUpdate(game: Game): void;
|
|
2287
|
+
update(game: Game): void;
|
|
2288
|
+
dispose(): void;
|
|
2289
|
+
private make;
|
|
2290
|
+
private spray;
|
|
2291
|
+
private openSmoke;
|
|
2292
|
+
private openFluid;
|
|
2293
|
+
private place;
|
|
2294
|
+
private advance;
|
|
2295
|
+
private start;
|
|
2296
|
+
private end;
|
|
2297
|
+
private shatter;
|
|
2298
|
+
private flushSmoke;
|
|
2299
|
+
private stopAll;
|
|
2300
|
+
}
|
|
2301
|
+
declare function loadThingSounds(game: Game, effects: readonly ThingEffect[]): Promise<Map<string, SoundId>>;
|
|
2302
|
+
|
|
2303
|
+
interface FlatThingPart {
|
|
2304
|
+
readonly shape: ThingShapeKind;
|
|
2305
|
+
readonly size: Vec3$2;
|
|
2306
|
+
readonly radius: number;
|
|
2307
|
+
readonly length: number;
|
|
2308
|
+
readonly at: Vec3$2;
|
|
2309
|
+
readonly turn: Vec3$2;
|
|
2310
|
+
readonly material: string;
|
|
2311
|
+
readonly combine: ThingCombine;
|
|
2312
|
+
readonly mirror: ThingMirror;
|
|
2313
|
+
}
|
|
2314
|
+
declare const DEFAULT_PART_SIZE: Vec3$2;
|
|
2315
|
+
declare const DEFAULT_PART_RADIUS = 0.1;
|
|
2316
|
+
declare const DEFAULT_PART_LENGTH = 0.2;
|
|
2317
|
+
declare function flatPart(part: ThingPart): FlatThingPart;
|
|
2318
|
+
declare function shapeOfFlat(flat: Pick<FlatThingPart, "shape" | "size" | "radius" | "length">): ThingShape;
|
|
2319
|
+
declare function partOfFlat(id: string, name: string, flat: FlatThingPart): ThingPart;
|
|
2320
|
+
|
|
2321
|
+
type PlaceCamera = "walk" | "orbit";
|
|
2322
|
+
declare const PLACE_VIEWER_SET = "world.set";
|
|
2323
|
+
declare const PLACE_VIEWER_CAMERA = "world.camera";
|
|
2324
|
+
declare const EYE_HEIGHT = 1.6;
|
|
2325
|
+
interface PlaceShown {
|
|
2326
|
+
readonly doc: WorldDoc;
|
|
2327
|
+
readonly tier: DeviceTier;
|
|
2328
|
+
}
|
|
2329
|
+
declare class PlaceViewerScene implements GameScene<Game> {
|
|
2330
|
+
private readonly catalogue;
|
|
2331
|
+
private readonly characterBytes;
|
|
2332
|
+
readonly name = "place-viewer";
|
|
2333
|
+
private game;
|
|
2334
|
+
private box;
|
|
2335
|
+
private readonly materials;
|
|
2336
|
+
private readonly spawned;
|
|
2337
|
+
private camera;
|
|
2338
|
+
private walk;
|
|
2339
|
+
private orbit;
|
|
2340
|
+
private mode;
|
|
2341
|
+
private shown;
|
|
2342
|
+
private elapsed;
|
|
2343
|
+
private readonly models;
|
|
2344
|
+
private readonly loading;
|
|
2345
|
+
private character;
|
|
2346
|
+
private readonly things;
|
|
2347
|
+
private peopleShown;
|
|
2348
|
+
private readonly thingEntities;
|
|
2349
|
+
private shownCount;
|
|
2350
|
+
get shownVersion(): number;
|
|
2351
|
+
get thingsShown(): readonly Entity[];
|
|
2352
|
+
get cameraEntity(): Entity | null;
|
|
2353
|
+
constructor(shown?: PlaceShown | null, catalogue?: SceneCatalogue, characterBytes?: ArrayBuffer | null);
|
|
2354
|
+
get solids(): number;
|
|
2355
|
+
get modelled(): number;
|
|
2356
|
+
get hour(): number;
|
|
2357
|
+
get people(): number;
|
|
2358
|
+
get hasCharacter(): boolean;
|
|
2359
|
+
enter(game: Game): void;
|
|
2360
|
+
ready(): Promise<void>;
|
|
2361
|
+
private level;
|
|
2362
|
+
private load;
|
|
2363
|
+
private arrived;
|
|
2364
|
+
exit(): void;
|
|
2365
|
+
show(shown: PlaceShown): void;
|
|
2366
|
+
setThings(glbs: readonly Uint8Array[]): Promise<void>;
|
|
2367
|
+
setCamera(mode: PlaceCamera, reset?: boolean): void;
|
|
2368
|
+
update(game: Game): void;
|
|
2369
|
+
private instance;
|
|
2370
|
+
private placed;
|
|
2371
|
+
private solid;
|
|
2372
|
+
private clear;
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
declare const CROWD_CHARACTER_ASSET: string;
|
|
2376
|
+
declare const CROWD_CHARACTER_ITEM: "cimplify/base-character";
|
|
2377
|
+
declare const CATALOGUE_MODELS: {
|
|
2378
|
+
readonly [kind: string]: string;
|
|
2379
|
+
};
|
|
2380
|
+
declare const LEVEL_FOR_TIER: {
|
|
2381
|
+
readonly [T in DeviceTier]: PropLevel;
|
|
2382
|
+
};
|
|
2383
|
+
interface ModelCost {
|
|
2384
|
+
readonly triangles: {
|
|
2385
|
+
readonly [L in PropLevel]: number;
|
|
2386
|
+
};
|
|
2387
|
+
readonly cost: PhoneCost;
|
|
2388
|
+
}
|
|
2389
|
+
declare function modelRecipeFor(kind: string): PropRecipe | null;
|
|
2390
|
+
declare function hasModel(kind: string): boolean;
|
|
2391
|
+
declare function modelCost(kind: string): ModelCost | null;
|
|
2392
|
+
declare function kindsWithoutModels(): readonly string[];
|
|
2393
|
+
declare function blockoutKinds(doc: WorldDoc, placed: readonly {
|
|
2394
|
+
readonly kind: string;
|
|
2395
|
+
}[]): readonly string[];
|
|
2396
|
+
|
|
2397
|
+
declare const CELL_SOLID = 1;
|
|
2398
|
+
declare const CELL_ROAD = 2;
|
|
2399
|
+
declare const CELL_TAKEN = 4;
|
|
2400
|
+
declare const DEFAULT_CELL = 0.5;
|
|
2401
|
+
declare class OccupancyGrid {
|
|
2402
|
+
readonly size: Point2;
|
|
2403
|
+
readonly cell: number;
|
|
2404
|
+
readonly columns: number;
|
|
2405
|
+
readonly rows: number;
|
|
2406
|
+
readonly cells: Uint8Array;
|
|
2407
|
+
constructor(size: Point2, cell?: number);
|
|
2408
|
+
index(x: number, z: number): number;
|
|
2409
|
+
at(x: number, z: number): number;
|
|
2410
|
+
centre(i: number): Point2;
|
|
2411
|
+
forRect(at: Point2, footprint: Point2, yaw: number, visit: (i: number) => boolean): boolean;
|
|
2412
|
+
mark(at: Point2, footprint: Point2, yaw: number, flags: number): void;
|
|
2413
|
+
clear(at: Point2, footprint: Point2, yaw: number, blocking: number): boolean;
|
|
2414
|
+
markRoad(road: Road): void;
|
|
2415
|
+
}
|
|
2416
|
+
declare function footprintOf(catalogue: SceneCatalogue, kind: string): {
|
|
2417
|
+
readonly footprint: Point2;
|
|
2418
|
+
readonly solid: boolean;
|
|
2419
|
+
};
|
|
2420
|
+
declare function markPlacement(grid: OccupancyGrid, catalogue: SceneCatalogue, placement: WorldPlacement): void;
|
|
2421
|
+
declare function gridOf(doc: WorldDoc, catalogue: SceneCatalogue, placements: readonly WorldPlacement[], cell?: number): OccupancyGrid;
|
|
2422
|
+
|
|
2423
|
+
declare const SCATTER_ATTEMPTS = 12;
|
|
2424
|
+
declare function scatter(stroke: ScatterStroke, grid: OccupancyGrid, catalogue: SceneCatalogue): WorldPlacement[];
|
|
2425
|
+
declare function simplifyStroke(points: readonly Point2[], tolerance: number): Point2[];
|
|
2426
|
+
declare function applyGround(terrain: Pick<Terrain, "sculpt">, strokes: readonly GroundStroke[]): number;
|
|
2427
|
+
|
|
2428
|
+
declare const SHOP_TAG = "shop";
|
|
2429
|
+
type WorldCheckId = "reachable" | "gates" | "inside";
|
|
2430
|
+
interface WorldCheck {
|
|
2431
|
+
readonly id: WorldCheckId;
|
|
2432
|
+
readonly ok: boolean;
|
|
2433
|
+
readonly summary: string;
|
|
2434
|
+
readonly offenders: readonly number[];
|
|
2435
|
+
}
|
|
2436
|
+
declare function walkFrom(grid: OccupancyGrid, starts: readonly Point2[]): Uint8Array;
|
|
2437
|
+
declare function checkWorld(doc: WorldDoc, grid: OccupancyGrid, catalogue: SceneCatalogue, placements: readonly WorldPlacement[]): WorldCheck[];
|
|
2438
|
+
|
|
2439
|
+
type SkyPresetReach = "worldwide" | "regional";
|
|
2440
|
+
interface SkyPreset {
|
|
2441
|
+
readonly weather: WeatherState;
|
|
2442
|
+
readonly hour: number | null;
|
|
2443
|
+
readonly reach: SkyPresetReach;
|
|
2444
|
+
}
|
|
2445
|
+
declare const SKY_PRESETS: {
|
|
2446
|
+
readonly [P in Exclude<WeatherPreset, "real_sky">]: SkyPreset;
|
|
2447
|
+
};
|
|
2448
|
+
declare function weatherOf(preset: WeatherPreset, live?: WeatherState | null): WeatherState;
|
|
2449
|
+
declare function choosePreset(sky: WorldSky, preset: WeatherPreset): WorldSky;
|
|
2450
|
+
declare function hourAt(sky: WorldSky, elapsedSeconds: number): number;
|
|
2451
|
+
interface SkyTarget {
|
|
2452
|
+
setWeather(state: WeatherState): void;
|
|
2453
|
+
setTimeOfDay(hours: number, latitude?: number, dayOfYear?: number): void;
|
|
2454
|
+
}
|
|
2455
|
+
declare function applySky(target: SkyTarget, sky: WorldSky, elapsedSeconds: number, latitude?: number, live?: WeatherState | null): void;
|
|
2456
|
+
declare function clockText(hour: number): string;
|
|
2457
|
+
|
|
2458
|
+
interface BuiltWorld {
|
|
2459
|
+
readonly placements: readonly WorldPlacement[];
|
|
2460
|
+
readonly people: readonly WorldPlacement[];
|
|
2461
|
+
readonly grid: OccupancyGrid;
|
|
2462
|
+
readonly weight: WorldWeight;
|
|
2463
|
+
readonly checks: readonly WorldCheck[];
|
|
2464
|
+
}
|
|
2465
|
+
declare function buildWorld(doc: WorldDoc, catalogue?: SceneCatalogue, cell?: number): BuiltWorld;
|
|
2466
|
+
declare function peopleForTier(built: BuiltWorld, doc: WorldDoc, tier: DeviceTier): readonly WorldPlacement[];
|
|
2467
|
+
|
|
2468
|
+
interface LiveBinding {
|
|
2469
|
+
readonly name: string;
|
|
2470
|
+
readonly binding: UiBinding;
|
|
2471
|
+
}
|
|
2472
|
+
interface LiveDoc {
|
|
2473
|
+
readonly bindings: readonly LiveBinding[];
|
|
2474
|
+
readonly music: MusicBed;
|
|
2475
|
+
readonly crowd: CrowdDoc;
|
|
2476
|
+
}
|
|
2477
|
+
interface LiveFrame {
|
|
2478
|
+
readonly seconds: number;
|
|
2479
|
+
readonly tick: number;
|
|
2480
|
+
readonly hour: number;
|
|
2481
|
+
readonly people: number;
|
|
2482
|
+
}
|
|
2483
|
+
declare const LIVE_VALUES: {
|
|
2484
|
+
readonly hour: "hour";
|
|
2485
|
+
readonly time: "time";
|
|
2486
|
+
readonly people: "people";
|
|
2487
|
+
readonly cheer: "cheer";
|
|
2488
|
+
readonly watchers: "watchers";
|
|
2489
|
+
};
|
|
2490
|
+
declare const START_MOMENT = "start";
|
|
2491
|
+
declare const CHEER_FULL_MOMENT = "cheer_full";
|
|
2492
|
+
declare const PLAYER_WATCHER = 0;
|
|
2493
|
+
declare const ONE_WATCHER = 1;
|
|
2494
|
+
declare function voteKey(id: string, field: string): string;
|
|
2495
|
+
declare function giftKey(gift: string): string;
|
|
2496
|
+
declare class LivePlayer {
|
|
2497
|
+
private readonly ui;
|
|
2498
|
+
readonly doc: LiveDoc;
|
|
2499
|
+
readonly state: BindState;
|
|
2500
|
+
readonly music: AdaptiveMusic;
|
|
2501
|
+
readonly cheer: CheerMeter;
|
|
2502
|
+
private readonly binder;
|
|
2503
|
+
private readonly clock;
|
|
2504
|
+
private readonly votes;
|
|
2505
|
+
private elapsed;
|
|
2506
|
+
private cheerFull;
|
|
2507
|
+
private meter;
|
|
2508
|
+
private meterShown;
|
|
2509
|
+
private started;
|
|
2510
|
+
private lastTick;
|
|
2511
|
+
constructor(ui: GameUi$1 | null, doc: LiveDoc, conductor: Conductor, sounds: ReadonlyMap<string, SoundId>, stepsPerSecond: number);
|
|
2512
|
+
get waitingFor(): readonly string[];
|
|
2513
|
+
get votePolls(): readonly VotePoll[];
|
|
2514
|
+
moment(name: string, tick: number): void;
|
|
2515
|
+
gift(gift: string, tick?: number): number;
|
|
2516
|
+
tapCheer(): void;
|
|
2517
|
+
vote(index: number, choice: number, tick: number): void;
|
|
2518
|
+
frame(frame: LiveFrame): void;
|
|
2519
|
+
private updateVote;
|
|
2520
|
+
private showCheer;
|
|
2521
|
+
private mount;
|
|
2522
|
+
private mountVote;
|
|
2523
|
+
private mountCheer;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
type AuthorValue = {
|
|
2527
|
+
readonly kind: "uint";
|
|
2528
|
+
readonly value: bigint;
|
|
2529
|
+
} | {
|
|
2530
|
+
readonly kind: "int" | "float" | "color" | "ref";
|
|
2531
|
+
readonly value: number;
|
|
2532
|
+
} | {
|
|
2533
|
+
readonly kind: "bool";
|
|
2534
|
+
readonly value: boolean;
|
|
2535
|
+
} | {
|
|
2536
|
+
readonly kind: "str";
|
|
2537
|
+
readonly value: string;
|
|
2538
|
+
} | {
|
|
2539
|
+
readonly kind: "bytes";
|
|
2540
|
+
readonly value: Uint8Array;
|
|
2541
|
+
};
|
|
2542
|
+
type VectorSchemaField = "uint" | "int" | "float" | "color" | "bool" | "str" | "bytes" | "ref";
|
|
2543
|
+
interface VectorSchemaType {
|
|
2544
|
+
readonly key: number;
|
|
2545
|
+
readonly name: string;
|
|
2546
|
+
readonly parents: readonly number[];
|
|
2547
|
+
readonly concrete: boolean;
|
|
2548
|
+
}
|
|
2549
|
+
interface VectorSchemaProp {
|
|
2550
|
+
readonly key: number;
|
|
2551
|
+
readonly owner: number;
|
|
2552
|
+
readonly name: string;
|
|
2553
|
+
readonly field: VectorSchemaField;
|
|
2554
|
+
}
|
|
2555
|
+
interface VectorSchema {
|
|
2556
|
+
readonly types: readonly VectorSchemaType[];
|
|
2557
|
+
readonly props: readonly VectorSchemaProp[];
|
|
2558
|
+
}
|
|
2559
|
+
interface AuthorRefusal {
|
|
2560
|
+
readonly item: number | null;
|
|
2561
|
+
readonly property: number | null;
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
declare const VECTOR_VIEWER: {
|
|
2565
|
+
readonly open: "vector.open";
|
|
2566
|
+
readonly edit: "vector.edit";
|
|
2567
|
+
readonly image: "vector.image";
|
|
2568
|
+
readonly undo: "vector.undo";
|
|
2569
|
+
readonly redo: "vector.redo";
|
|
2570
|
+
readonly checkpoint: "vector.checkpoint";
|
|
2571
|
+
readonly show: "vector.show";
|
|
2572
|
+
readonly play: "vector.play";
|
|
2573
|
+
readonly seek: "vector.seek";
|
|
2574
|
+
readonly input: "vector.input";
|
|
2575
|
+
readonly hit: "vector.hit";
|
|
2576
|
+
readonly save: "vector.save";
|
|
2577
|
+
};
|
|
2578
|
+
declare const VECTOR_REPORT: {
|
|
2579
|
+
readonly ready: "vector.ready";
|
|
2580
|
+
readonly document: "vector.document";
|
|
2581
|
+
readonly refused: "vector.refused";
|
|
2582
|
+
readonly saved: "vector.saved";
|
|
2583
|
+
readonly pointer: "vector.pointer";
|
|
2584
|
+
readonly picked: "vector.picked";
|
|
2585
|
+
};
|
|
2586
|
+
type VectorViewerAction = keyof typeof VECTOR_VIEWER;
|
|
2587
|
+
type VectorRef = number | {
|
|
2588
|
+
readonly created: number;
|
|
2589
|
+
};
|
|
2590
|
+
type VectorValue = {
|
|
2591
|
+
readonly kind: "uint";
|
|
2592
|
+
readonly value: number | string;
|
|
2593
|
+
} | {
|
|
2594
|
+
readonly kind: "int" | "float" | "color";
|
|
2595
|
+
readonly value: number;
|
|
2596
|
+
} | {
|
|
2597
|
+
readonly kind: "bool";
|
|
2598
|
+
readonly value: boolean;
|
|
2599
|
+
} | {
|
|
2600
|
+
readonly kind: "ref";
|
|
2601
|
+
readonly value: number;
|
|
2602
|
+
} | {
|
|
2603
|
+
readonly kind: "ref";
|
|
2604
|
+
readonly created: number;
|
|
2605
|
+
} | {
|
|
2606
|
+
readonly kind: "str";
|
|
2607
|
+
readonly value: string;
|
|
2608
|
+
} | {
|
|
2609
|
+
readonly kind: "bytes";
|
|
2610
|
+
readonly value: readonly number[];
|
|
2611
|
+
};
|
|
2612
|
+
interface VectorPropValue {
|
|
2613
|
+
readonly key: number;
|
|
2614
|
+
readonly value: VectorValue;
|
|
2615
|
+
}
|
|
2616
|
+
type VectorOp = {
|
|
2617
|
+
readonly op: "set";
|
|
2618
|
+
readonly id: VectorRef;
|
|
2619
|
+
readonly key: number;
|
|
2620
|
+
readonly value: VectorValue;
|
|
2621
|
+
} | {
|
|
2622
|
+
readonly op: "unset";
|
|
2623
|
+
readonly id: VectorRef;
|
|
2624
|
+
readonly key: number;
|
|
2625
|
+
} | {
|
|
2626
|
+
readonly op: "insert";
|
|
2627
|
+
readonly parent: VectorRef;
|
|
2628
|
+
readonly type: number;
|
|
2629
|
+
readonly props?: readonly VectorPropValue[];
|
|
2630
|
+
readonly before?: VectorRef | null;
|
|
2631
|
+
} | {
|
|
2632
|
+
readonly op: "add";
|
|
2633
|
+
readonly owner: VectorRef;
|
|
2634
|
+
readonly type: number;
|
|
2635
|
+
readonly props?: readonly VectorPropValue[];
|
|
2636
|
+
} | {
|
|
2637
|
+
readonly op: "remove";
|
|
2638
|
+
readonly id: VectorRef;
|
|
2639
|
+
} | {
|
|
2640
|
+
readonly op: "asset";
|
|
2641
|
+
readonly type: number;
|
|
2642
|
+
readonly props?: readonly VectorPropValue[];
|
|
2643
|
+
} | {
|
|
2644
|
+
readonly op: "artboard";
|
|
2645
|
+
readonly props?: readonly VectorPropValue[];
|
|
2646
|
+
} | {
|
|
2647
|
+
readonly op: "bind";
|
|
2648
|
+
readonly target: VectorRef;
|
|
2649
|
+
readonly type: number;
|
|
2650
|
+
readonly props?: readonly VectorPropValue[];
|
|
2651
|
+
} | {
|
|
2652
|
+
readonly op: "text";
|
|
2653
|
+
readonly parent: VectorRef;
|
|
2654
|
+
readonly text: string;
|
|
2655
|
+
readonly size: number;
|
|
2656
|
+
readonly font?: VectorRef | null;
|
|
2657
|
+
readonly color?: number;
|
|
2658
|
+
} | {
|
|
2659
|
+
readonly op: "layout";
|
|
2660
|
+
readonly parent: VectorRef;
|
|
2661
|
+
readonly width: number;
|
|
2662
|
+
readonly height: number;
|
|
2663
|
+
} | {
|
|
2664
|
+
readonly op: "viewModel";
|
|
2665
|
+
readonly props?: readonly VectorPropValue[];
|
|
2666
|
+
} | {
|
|
2667
|
+
readonly op: "viewModelProperty";
|
|
2668
|
+
readonly viewModel: VectorRef;
|
|
2669
|
+
readonly type: number;
|
|
2670
|
+
readonly props?: readonly VectorPropValue[];
|
|
2671
|
+
} | {
|
|
2672
|
+
readonly op: "viewModelInstance";
|
|
2673
|
+
readonly viewModel: VectorRef;
|
|
2674
|
+
readonly props?: readonly VectorPropValue[];
|
|
2675
|
+
};
|
|
2676
|
+
interface VectorImagePlacement {
|
|
2677
|
+
readonly parent: number;
|
|
2678
|
+
readonly type: number;
|
|
2679
|
+
readonly assetKey: number;
|
|
2680
|
+
readonly props: readonly VectorPropValue[];
|
|
2681
|
+
}
|
|
2682
|
+
interface VectorImageRequest {
|
|
2683
|
+
readonly type: number;
|
|
2684
|
+
readonly props: readonly VectorPropValue[];
|
|
2685
|
+
readonly place: VectorImagePlacement | null;
|
|
2686
|
+
}
|
|
2687
|
+
interface VectorView {
|
|
2688
|
+
readonly left: number;
|
|
2689
|
+
readonly top: number;
|
|
2690
|
+
readonly width: number;
|
|
2691
|
+
readonly height: number;
|
|
2692
|
+
readonly scale: number;
|
|
2693
|
+
}
|
|
2694
|
+
interface VectorShow {
|
|
2695
|
+
readonly artboard: number;
|
|
2696
|
+
readonly view: VectorView;
|
|
2697
|
+
}
|
|
2698
|
+
type VectorPlayKind = "animation" | "machine" | "stop";
|
|
2699
|
+
interface VectorPlayback {
|
|
2700
|
+
readonly kind: VectorPlayKind;
|
|
2701
|
+
readonly index: number;
|
|
2702
|
+
}
|
|
2703
|
+
type VectorSeekKind = Exclude<VectorPlayKind, "stop">;
|
|
2704
|
+
interface VectorSeek {
|
|
2705
|
+
readonly kind: VectorSeekKind;
|
|
2706
|
+
readonly index: number;
|
|
2707
|
+
readonly seconds: number;
|
|
2708
|
+
}
|
|
2709
|
+
interface VectorHit {
|
|
2710
|
+
readonly artboard: number;
|
|
2711
|
+
readonly x: number;
|
|
2712
|
+
readonly y: number;
|
|
2713
|
+
}
|
|
2714
|
+
interface VectorPicked extends VectorHit {
|
|
2715
|
+
readonly item: number;
|
|
2716
|
+
}
|
|
2717
|
+
interface VectorInput {
|
|
2718
|
+
readonly name: string;
|
|
2719
|
+
readonly value: number | boolean;
|
|
2720
|
+
}
|
|
2721
|
+
type VectorPointerPhase = "down" | "move" | "up";
|
|
2722
|
+
interface VectorPointer {
|
|
2723
|
+
readonly phase: VectorPointerPhase;
|
|
2724
|
+
readonly u: number;
|
|
2725
|
+
readonly v: number;
|
|
2726
|
+
}
|
|
2727
|
+
interface VectorRefused extends AuthorRefusal {
|
|
2728
|
+
readonly action: VectorViewerAction;
|
|
2729
|
+
readonly message: string;
|
|
2730
|
+
}
|
|
2731
|
+
interface VectorAuthorPort {
|
|
2732
|
+
readonly canUndo: boolean;
|
|
2733
|
+
readonly canRedo: boolean;
|
|
2734
|
+
readonly refused: AuthorRefusal;
|
|
2735
|
+
json(): string;
|
|
2736
|
+
editJson(ops: string): readonly number[];
|
|
2737
|
+
checkpoint(): void;
|
|
2738
|
+
undo(): boolean;
|
|
2739
|
+
redo(): boolean;
|
|
2740
|
+
addAsset(type: number, contents: Uint8Array | null): number;
|
|
2741
|
+
insert(parent: number, type: number, before?: number | null): number;
|
|
2742
|
+
set(id: number, key: number, value: AuthorValue): void;
|
|
2743
|
+
hit(artboard: number, x: number, y: number): number;
|
|
2744
|
+
write(): Uint8Array;
|
|
2745
|
+
bake(): Uint8Array;
|
|
2746
|
+
close(): void;
|
|
2747
|
+
}
|
|
2748
|
+
interface VectorViewerPorts {
|
|
2749
|
+
open(file: Uint8Array): VectorAuthorPort;
|
|
2750
|
+
send(message: StudioOutgoing): void;
|
|
2751
|
+
draw(file: Uint8Array): void;
|
|
2752
|
+
show(show: VectorShow): void;
|
|
2753
|
+
play(play: VectorPlayback): void;
|
|
2754
|
+
seek(seek: VectorSeek): void;
|
|
2755
|
+
input(input: VectorInput): void;
|
|
2756
|
+
}
|
|
2757
|
+
declare const BLANK_ARTBOARD_NAME = "Artboard";
|
|
2758
|
+
declare const BLANK_ARTBOARD_SIZE = 500;
|
|
2759
|
+
declare function blankVectorFile(width?: number, height?: number, name?: string): Uint8Array<ArrayBuffer>;
|
|
2760
|
+
declare class VectorMessageError extends Error {
|
|
2761
|
+
constructor(message: string);
|
|
2762
|
+
}
|
|
2763
|
+
declare function authorValue(value: VectorValue): AuthorValue;
|
|
2764
|
+
declare function readImageRequest(body: unknown): VectorImageRequest;
|
|
2765
|
+
declare function readShow(body: unknown): VectorShow;
|
|
2766
|
+
declare function readPlayback(body: unknown): VectorPlayback;
|
|
2767
|
+
declare function readInput(body: unknown): VectorInput;
|
|
2768
|
+
declare class VectorEditSession {
|
|
2769
|
+
private readonly ports;
|
|
2770
|
+
private author;
|
|
2771
|
+
private merging;
|
|
2772
|
+
constructor(ports: VectorViewerPorts);
|
|
2773
|
+
get opened(): boolean;
|
|
2774
|
+
handle(message: StudioMessage): void;
|
|
2775
|
+
close(): void;
|
|
2776
|
+
private open;
|
|
2777
|
+
private live;
|
|
2778
|
+
private run;
|
|
2779
|
+
private image;
|
|
2780
|
+
private changed;
|
|
2781
|
+
private refuse;
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
declare const AVATAR_OUTPUT_FLOATS: number;
|
|
2785
|
+
declare const AVATAR_MOODS: readonly ["neutral", "happy", "angry", "sad", "relaxed", "surprised"];
|
|
2786
|
+
declare const AVATAR_SPRING_GROUPS: readonly ["hair", "accessories", "clothing"];
|
|
2787
|
+
declare const AVATAR_SLOTS: readonly ["head", "hair_cover", "face", "ears", "neck", "top", "bottom", "full_body", "outerwear", "feet", "hands", "back", "assistive"];
|
|
2788
|
+
type AvatarMood = (typeof AVATAR_MOODS)[number];
|
|
2789
|
+
type AvatarSpringGroup = (typeof AVATAR_SPRING_GROUPS)[number];
|
|
2790
|
+
type AvatarSlot = (typeof AVATAR_SLOTS)[number];
|
|
2791
|
+
type AvatarFieldValue = number | string | boolean | null;
|
|
2792
|
+
type AvatarOp = {
|
|
2793
|
+
readonly op: "set";
|
|
2794
|
+
readonly field: string;
|
|
2795
|
+
readonly value: AvatarFieldValue;
|
|
2796
|
+
} | {
|
|
2797
|
+
readonly op: "face" | "body";
|
|
2798
|
+
readonly index: number;
|
|
2799
|
+
readonly value: number;
|
|
2800
|
+
} | {
|
|
2801
|
+
readonly op: "identity";
|
|
2802
|
+
readonly cidp: string;
|
|
2803
|
+
} | {
|
|
2804
|
+
readonly op: "expression";
|
|
2805
|
+
readonly name: string;
|
|
2806
|
+
readonly terms: Readonly<Record<string, number>>;
|
|
2807
|
+
} | {
|
|
2808
|
+
readonly op: "remove_expression";
|
|
2809
|
+
readonly name: string;
|
|
2810
|
+
} | {
|
|
2811
|
+
readonly op: "spring";
|
|
2812
|
+
readonly group: AvatarSpringGroup;
|
|
2813
|
+
readonly stiffness?: number;
|
|
2814
|
+
readonly drag?: number;
|
|
2815
|
+
readonly gravity?: number;
|
|
2816
|
+
readonly gravity_dir?: readonly [number, number, number];
|
|
2817
|
+
readonly hit_radius?: number;
|
|
2818
|
+
} | {
|
|
2819
|
+
readonly op: "wear";
|
|
2820
|
+
readonly slot: AvatarSlot;
|
|
2821
|
+
readonly part: string;
|
|
2822
|
+
} | {
|
|
2823
|
+
readonly op: "unwear";
|
|
2824
|
+
readonly slot: AvatarSlot;
|
|
2825
|
+
} | {
|
|
2826
|
+
readonly op: "assistive";
|
|
2827
|
+
readonly kind: string;
|
|
2828
|
+
readonly side?: string;
|
|
2829
|
+
readonly part?: number;
|
|
2830
|
+
} | {
|
|
2831
|
+
readonly op: "clear_assistive";
|
|
2832
|
+
};
|
|
2833
|
+
interface AvatarSchemaField {
|
|
2834
|
+
readonly name: string;
|
|
2835
|
+
readonly group: string;
|
|
2836
|
+
readonly kind: {
|
|
2837
|
+
readonly type: string;
|
|
2838
|
+
readonly min?: number;
|
|
2839
|
+
readonly max?: number;
|
|
2840
|
+
readonly unit?: string;
|
|
2841
|
+
readonly names?: readonly string[];
|
|
2842
|
+
};
|
|
2843
|
+
readonly default: AvatarFieldValue;
|
|
2844
|
+
readonly description: string;
|
|
2845
|
+
}
|
|
2846
|
+
interface AvatarSchema {
|
|
2847
|
+
readonly fields: readonly AvatarSchemaField[];
|
|
2848
|
+
readonly face_shapes: readonly string[];
|
|
2849
|
+
readonly spring_groups: readonly string[];
|
|
2850
|
+
readonly slots: readonly string[];
|
|
2851
|
+
readonly assistive: readonly string[];
|
|
2852
|
+
readonly sides: readonly string[];
|
|
2853
|
+
readonly max_expressions: number;
|
|
2854
|
+
readonly max_terms: number;
|
|
2855
|
+
readonly ops: readonly string[];
|
|
2856
|
+
}
|
|
2857
|
+
interface AvatarDocument {
|
|
2858
|
+
readonly format: number;
|
|
2859
|
+
readonly basis: number;
|
|
2860
|
+
readonly identity: string;
|
|
2861
|
+
readonly face: readonly number[];
|
|
2862
|
+
readonly body: readonly number[];
|
|
2863
|
+
readonly fields: Readonly<Record<string, AvatarFieldValue>>;
|
|
2864
|
+
readonly expressions: readonly {
|
|
2865
|
+
readonly name: string;
|
|
2866
|
+
readonly terms: Readonly<Record<string, number>>;
|
|
2867
|
+
}[];
|
|
2868
|
+
readonly springs: Readonly<Record<AvatarSpringGroup, {
|
|
2869
|
+
stiffness: number;
|
|
2870
|
+
drag: number;
|
|
2871
|
+
gravity: number;
|
|
2872
|
+
gravity_dir: number[];
|
|
2873
|
+
hit_radius: number;
|
|
2874
|
+
}>>;
|
|
2875
|
+
readonly wear: Readonly<Partial<Record<AvatarSlot, string>>>;
|
|
2876
|
+
readonly assistive: readonly {
|
|
2877
|
+
readonly kind: string;
|
|
2878
|
+
readonly side: string;
|
|
2879
|
+
readonly part: number;
|
|
2880
|
+
}[];
|
|
2881
|
+
}
|
|
2882
|
+
declare const ENGINE_AVATAR_EXPORT_NAMES: readonly ["engine_avatar_open", "engine_avatar_close", "engine_avatar_registers", "engine_avatar_json", "engine_avatar_schema", "engine_avatar_edit_json", "engine_avatar_error", "engine_avatar_undo", "engine_avatar_redo", "engine_avatar_write", "engine_avatar_identity", "engine_avatar_performer_create", "engine_avatar_performer_destroy", "engine_avatar_performer_outputs", "engine_avatar_say", "engine_avatar_hear", "engine_avatar_feel", "engine_avatar_express", "engine_avatar_track", "engine_avatar_perform"];
|
|
2883
|
+
type AvatarExports = Readonly<Record<(typeof ENGINE_AVATAR_EXPORT_NAMES)[number], (...args: number[]) => number>>;
|
|
2884
|
+
declare function engineAvatarExports(runtime: EngineRuntime): AvatarExports | null;
|
|
2885
|
+
declare class AvatarDesigner {
|
|
2886
|
+
private readonly runtime;
|
|
2887
|
+
private readonly exports;
|
|
2888
|
+
private readonly handle;
|
|
2889
|
+
private readonly scratch;
|
|
2890
|
+
private closed;
|
|
2891
|
+
constructor(runtime: EngineRuntime, exports: AvatarExports, file?: Uint8Array);
|
|
2892
|
+
static schema(runtime: EngineRuntime, exports: AvatarExports): AvatarSchema;
|
|
2893
|
+
private live;
|
|
2894
|
+
private registers;
|
|
2895
|
+
private check;
|
|
2896
|
+
get canUndo(): boolean;
|
|
2897
|
+
get canRedo(): boolean;
|
|
2898
|
+
get expressionCount(): number;
|
|
2899
|
+
document(): AvatarDocument;
|
|
2900
|
+
edit(ops: readonly AvatarOp[]): number;
|
|
2901
|
+
undo(): boolean;
|
|
2902
|
+
redo(): boolean;
|
|
2903
|
+
write(): Uint8Array;
|
|
2904
|
+
identity(): Uint8Array;
|
|
2905
|
+
performer(sampleRate: number): AvatarPerformer;
|
|
2906
|
+
close(): void;
|
|
2907
|
+
}
|
|
2908
|
+
declare class AvatarPerformer {
|
|
2909
|
+
private readonly runtime;
|
|
2910
|
+
private readonly exports;
|
|
2911
|
+
private readonly handle;
|
|
2912
|
+
private readonly scratch;
|
|
2913
|
+
private readonly tracker;
|
|
2914
|
+
private outputs;
|
|
2915
|
+
private arkitView;
|
|
2916
|
+
private presetView;
|
|
2917
|
+
private buffer;
|
|
2918
|
+
private samples;
|
|
2919
|
+
private sampleCapacity;
|
|
2920
|
+
private closed;
|
|
2921
|
+
constructor(runtime: EngineRuntime, exports: AvatarExports, handle: number);
|
|
2922
|
+
private view;
|
|
2923
|
+
private live;
|
|
2924
|
+
private check;
|
|
2925
|
+
say(line: string): number;
|
|
2926
|
+
hear(samples: Float32Array): void;
|
|
2927
|
+
feel(mood: AvatarMood, weight?: number): void;
|
|
2928
|
+
express(expression: number, weight?: number): void;
|
|
2929
|
+
track(values: ArrayLike<number> | null): void;
|
|
2930
|
+
step(micros: number): Float32Array;
|
|
2931
|
+
get arkit(): Float32Array;
|
|
2932
|
+
get presets(): Float32Array;
|
|
2933
|
+
close(): void;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
declare const AVATAR_DESIGN: {
|
|
2937
|
+
readonly open: "avatar.design.open";
|
|
2938
|
+
readonly edit: "avatar.design.edit";
|
|
2939
|
+
readonly undo: "avatar.design.undo";
|
|
2940
|
+
readonly redo: "avatar.design.redo";
|
|
2941
|
+
readonly save: "avatar.design.save";
|
|
2942
|
+
};
|
|
2943
|
+
declare const AVATAR_DESIGN_REPORT: {
|
|
2944
|
+
readonly ready: "avatar.design.ready";
|
|
2945
|
+
readonly document: "avatar.design.document";
|
|
2946
|
+
readonly refused: "avatar.design.refused";
|
|
2947
|
+
readonly saved: "avatar.design.saved";
|
|
2948
|
+
};
|
|
2949
|
+
type AvatarDesignAction = keyof typeof AVATAR_DESIGN;
|
|
2950
|
+
interface AvatarDesignReady {
|
|
2951
|
+
readonly designing: boolean;
|
|
2952
|
+
readonly schema: AvatarSchema | null;
|
|
2953
|
+
}
|
|
2954
|
+
interface AvatarDesignState {
|
|
2955
|
+
readonly document: AvatarDocument;
|
|
2956
|
+
readonly canUndo: boolean;
|
|
2957
|
+
readonly canRedo: boolean;
|
|
2958
|
+
}
|
|
2959
|
+
interface AvatarDesignRefused {
|
|
2960
|
+
readonly action: AvatarDesignAction;
|
|
2961
|
+
readonly message: string;
|
|
2962
|
+
}
|
|
2963
|
+
interface AvatarDesignerPort {
|
|
2964
|
+
readonly canUndo: boolean;
|
|
2965
|
+
readonly canRedo: boolean;
|
|
2966
|
+
document(): AvatarDocument;
|
|
2967
|
+
edit(ops: readonly AvatarOp[]): number;
|
|
2968
|
+
undo(): boolean;
|
|
2969
|
+
redo(): boolean;
|
|
2970
|
+
write(): Uint8Array;
|
|
2971
|
+
identity(): Uint8Array;
|
|
2972
|
+
close(): void;
|
|
2973
|
+
}
|
|
2974
|
+
interface AvatarDesignPorts {
|
|
2975
|
+
open(file: Uint8Array): AvatarDesignerPort;
|
|
2976
|
+
send(message: StudioOutgoing): void;
|
|
2977
|
+
show(identity: Uint8Array): void;
|
|
2978
|
+
}
|
|
2979
|
+
/** One character open for editing in a Studio viewer: every change is one engine edit, all or none, with one undo step. */
|
|
2980
|
+
declare class AvatarDesignSession {
|
|
2981
|
+
private readonly ports;
|
|
2982
|
+
private designer;
|
|
2983
|
+
constructor(ports: AvatarDesignPorts);
|
|
2984
|
+
get opened(): boolean;
|
|
2985
|
+
handle(message: StudioMessage): void;
|
|
2986
|
+
close(): void;
|
|
2987
|
+
private live;
|
|
2988
|
+
private run;
|
|
2989
|
+
private changed;
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
declare class EngineMemory implements ComponentMemory {
|
|
2993
|
+
private readonly runtime;
|
|
2994
|
+
private readonly pointers;
|
|
2995
|
+
private readonly sizes;
|
|
2996
|
+
constructor(runtime: EngineRuntime);
|
|
2997
|
+
owns(array: TypedArray): boolean;
|
|
2998
|
+
allocate<S extends Scalar>(scalar: S, length: number): ArrayFor<S>;
|
|
2999
|
+
release(): void;
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
declare class EngineSession {
|
|
3003
|
+
readonly exports: EngineExports;
|
|
3004
|
+
readonly memory: EngineMemory;
|
|
3005
|
+
private readonly runtime;
|
|
3006
|
+
world: number;
|
|
3007
|
+
registerWords: Uint32Array<ArrayBuffer>;
|
|
3008
|
+
registerFloats: Float32Array<ArrayBuffer>;
|
|
3009
|
+
descWords: Uint32Array<ArrayBuffer>;
|
|
3010
|
+
descFloats: Float32Array<ArrayBuffer>;
|
|
3011
|
+
contactA: Uint32Array<ArrayBuffer>;
|
|
3012
|
+
contactB: Uint32Array<ArrayBuffer>;
|
|
3013
|
+
contactBegan: Uint8Array<ArrayBuffer>;
|
|
3014
|
+
contacts: number;
|
|
3015
|
+
snapshots: WorldSnapshots | null;
|
|
3016
|
+
private commandWords;
|
|
3017
|
+
private commandFloats;
|
|
3018
|
+
private commandCapacity;
|
|
3019
|
+
private pending;
|
|
3020
|
+
private columns;
|
|
3021
|
+
constructor(runtime: EngineRuntime, memory: EngineMemory);
|
|
3022
|
+
bind(columns: TransformColumns): void;
|
|
3023
|
+
open(desc: PhysicsWorldDesc): void;
|
|
3024
|
+
private createRollback;
|
|
3025
|
+
require(): number;
|
|
3026
|
+
check(code: number, what: string): number;
|
|
3027
|
+
command(op: number, body: number): number;
|
|
3028
|
+
get commandPayload(): Float32Array;
|
|
3029
|
+
get commandPayloadWords(): Uint32Array;
|
|
3030
|
+
get symbols(): Readonly<Record<string, unknown>>;
|
|
3031
|
+
get buffer(): ArrayBuffer;
|
|
3032
|
+
discard(): void;
|
|
3033
|
+
flush(): void;
|
|
3034
|
+
step(): void;
|
|
3035
|
+
close(): void;
|
|
3036
|
+
private bindLayout;
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
declare const ENGINE_RAGDOLL_POLICY_EXPORT_NAMES: readonly ["engine_ragdoll_mjcf", "engine_ragdoll_observe", "engine_ragdoll_act", "engine_ragdoll_policy_create", "engine_ragdoll_policy_destroy", "engine_ragdoll_policy_control"];
|
|
3040
|
+
type PolicyExports = Readonly<Record<(typeof ENGINE_RAGDOLL_POLICY_EXPORT_NAMES)[number], (...args: number[]) => number>>;
|
|
3041
|
+
declare const POLICY_ACTION_MODES: readonly ["orientation", "axes"];
|
|
3042
|
+
declare const POLICY_DRIVE_PRESETS: readonly ["soft", "firm", "stiff"];
|
|
3043
|
+
type PolicyActionMode = (typeof POLICY_ACTION_MODES)[number];
|
|
3044
|
+
type PolicyDrivePreset = (typeof POLICY_DRIVE_PRESETS)[number];
|
|
3045
|
+
interface RagdollPolicySpec {
|
|
3046
|
+
readonly mode?: PolicyActionMode;
|
|
3047
|
+
readonly preset?: PolicyDrivePreset;
|
|
3048
|
+
readonly substeps?: number;
|
|
3049
|
+
readonly goal?: number;
|
|
3050
|
+
readonly ground?: number;
|
|
3051
|
+
readonly feet?: readonly number[];
|
|
3052
|
+
}
|
|
3053
|
+
declare function policyObservationSize(joints: number, spec: RagdollPolicySpec): number;
|
|
3054
|
+
declare function policyActionSize(joints: number): number;
|
|
3055
|
+
declare class RagdollPolicy {
|
|
3056
|
+
private readonly session;
|
|
3057
|
+
private readonly exports;
|
|
3058
|
+
private readonly handle;
|
|
3059
|
+
private readonly goal;
|
|
3060
|
+
private closed;
|
|
3061
|
+
constructor(session: EngineSession, exports: PolicyExports, handle: number, goalSize: number);
|
|
3062
|
+
control(goal?: ArrayLike<number>): void;
|
|
3063
|
+
destroy(): void;
|
|
3064
|
+
}
|
|
3065
|
+
declare class RagdollPolicies {
|
|
3066
|
+
private readonly session;
|
|
3067
|
+
private readonly exports;
|
|
3068
|
+
private readonly spec;
|
|
3069
|
+
constructor(session: EngineSession, exports: PolicyExports);
|
|
3070
|
+
static of(session: EngineSession): RagdollPolicies | null;
|
|
3071
|
+
private world;
|
|
3072
|
+
mjcf(ragdoll: Ragdoll, spec?: RagdollPolicySpec): string;
|
|
3073
|
+
observe(ragdoll: Ragdoll, spec: RagdollPolicySpec, goal: Float32Array, out: Uint32Array): number;
|
|
3074
|
+
act(ragdoll: Ragdoll, spec: RagdollPolicySpec, action: Float32Array): void;
|
|
3075
|
+
create(ragdoll: Ragdoll, spec: RagdollPolicySpec, heads: readonly Uint32Array[]): RagdollPolicy;
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
export { BOX_SX as $, ANCHOR_ROLL as A, type AvatarDesignAction as B, type AvatarDesignPorts as C, type AvatarDesignReady as D, type AvatarDesignRefused as E, AvatarDesignSession as F, type AvatarDesignState as G, AvatarDesigner as H, type AvatarDesignerPort as I, type AvatarDocument as J, type AvatarFieldValue as K, AvatarModels as L, type AvatarMood as M, type AvatarOp as N, AvatarPerformer as O, type AvatarRig as P, type AvatarRole as Q, AvatarRoster as R, type AvatarRosterOptions as S, type AvatarRosterPorts as T, type AvatarSchema as U, type AvatarSchemaField as V, type AvatarSlot as W, type AvatarSpringGroup as X, BLANK_ARTBOARD_NAME as Y, BLANK_ARTBOARD_SIZE as Z, BOX_ROTATION as _, ANCHOR_SCALE as a, type FaceCapture as a$, BOX_SY as a0, BOX_SZ as a1, BOX_X as a2, BOX_Y as a3, BOX_Z as a4, BUTTON_MIDDLE as a5, BUTTON_PRIMARY as a6, BUTTON_SECONDARY as a7, BoxBatch as a8, type BrokenThing as a9, DEFAULT_CLIP_MS as aA, DEFAULT_FLY_ROTATION_KEYS as aB, DEFAULT_MOVEMENT_KEYS as aC, DEFAULT_PART_LENGTH as aD, DEFAULT_PART_RADIUS as aE, DEFAULT_PART_SIZE as aF, DEFAULT_STACK_LIMIT as aG, DayClock as aH, type DaylightOptions as aI, DragControls as aJ, type DragControlsOptions as aK, type DragPicker as aL, type DropOutcome as aM, DropTable as aN, ECONOMY_IDENTIFIER as aO, ENGINE_AVATAR_EXPORT_NAMES as aP, ENGINE_RAGDOLL_POLICY_EXPORT_NAMES as aQ, EXPRESSION_COUNT as aR, EYE_HEIGHT as aS, type EconomyViolation as aT, type EconomyViolationCode as aU, type EffectWaitReason as aV, type Exemplar as aW, FIRST_RANK as aX, type FaceAnchor as aY, FaceAnchors as aZ, type FaceCameraPort as a_, type BuiltWorld as aa, CAST_SHADOW as ab, CATALOGUE_MODELS as ac, CATALOGUE_PROP_RECIPES as ad, CATALOGUE_RECIPE_SOURCES as ae, CELL_ROAD as af, CELL_SOLID as ag, CELL_TAKEN as ah, CHEER_FULL_MOMENT as ai, CROWD_CHARACTER_ASSET as aj, CROWD_CHARACTER_ITEM as ak, type CameraControl as al, CameraPose as am, type CaptureContext as an, type CapturePolicy as ao, type ChallengePort as ap, type CheckpointOptions as aq, Checkpoints as ar, type ClipPorts as as, ClipRecorder as at, type ControlViewOptions as au, type CounterOpener as av, CtxTurnRoom as aw, DAY_HOUR as ax, DAY_INDEX as ay, DEFAULT_CELL as az, ANCHOR_STRIDE as b, METRIC_WIDTH as b$, FaceExpression as b0, type FaceExpressionId as b1, type FaceIdentitySource as b2, FaceLandmark as b3, type FaceLandmarkId as b4, FaceSession as b5, type FaceSessionOptions as b6, FirstPersonControls as b7, type FirstPersonControlsOptions as b8, type FlatThingPart as b9, type GyroLookOptions as bA, HOURS_PER_DAY as bB, HeadPose as bC, type HeadPoseAxis as bD, INVENTORY_SNAPSHOT_STRIDE as bE, IdentityCaptureError as bF, Inventory as bG, KitError as bH, type KitErrorCode as bI, type KitGateName as bJ, type KitGateResult as bK, LANDMARK_COUNT as bL, LAUNCH_CLIPS as bM, LAUNCH_FILES as bN, LAUNCH_HAIR_STYLES as bO, LAUNCH_ITEMS as bP, LAUNCH_RIG as bQ, LEVEL_FOR_TIER as bR, LIVE_VALUES as bS, Leaderboard as bT, type LeaderboardOptions as bU, type LiveBinding as bV, type LiveDoc as bW, type LiveFrame as bX, LivePlayer as bY, type LocalReplay as bZ, type LookMode as b_, FlyControls as ba, type FlyControlsOptions as bb, type FlyRotationKeys as bc, FriendChallenges as bd, GRAPH_BLEND_SECONDS as be, GRAPH_CURRENT as bf, GRAPH_ELAPSED as bg, GRAPH_PREVIOUS as bh, GRAPH_PRIORITY as bi, GRAPH_STATE_SECONDS as bj, GRAPH_TRANSITION as bk, type GraphBlendStateDef as bl, type GraphClipEventDef as bm, type GraphClipEventListener as bn, type GraphClipStateDef as bo, type GraphConditionDef as bp, type GraphConditionOp as bq, type GraphEvent as br, type GraphParam as bs, type GraphParamDef as bt, type GraphParamKind as bu, type GraphState as bv, type GraphStateDef as bw, type GraphStateListener as bx, type GraphTransitionDef as by, GyroLookControls as bz, ANCHOR_X as c, REPLAY_FORMAT_VERSION as c$, type ManifestCurrency as c0, type ManifestEconomy as c1, type ManifestEconomyInput as c2, type ManifestGrant as c3, type ManifestGrantKind as c4, type ManifestItem as c5, type ManifestOdds as c6, type ManifestOffer as c7, type ManifestOfferOutcome as c8, type ManifestRule as c9, POSE_COUNT as cA, PROP_LEVELS as cB, PROP_RECIPES as cC, type PlaceCamera as cD, type PlaceShown as cE, PlaceViewerScene as cF, type PlanarSnapshotOptions as cG, PlanarSnapshotSync as cH, PointerLockControls as cI, type PointerLockControlsOptions as cJ, type PolicyActionMode as cK, type PolicyDrivePreset as cL, type PortAssetReader as cM, PortClipAction as cN, type PortKeyEvent as cO, type PortKeyEventType as cP, type PortKeyListener as cQ, type PortLightOptions as cR, type PortPointerEvent as cS, type PortPointerEventType as cT, type PortPointerListener as cU, PremiumStore as cV, type PremiumStorePorts as cW, type PresentedOffer as cX, type PropLevel as cY, type PropRecipe as cZ, RECEIVE_SHADOW as c_, MapControls as ca, MathUtils as cb, type ModelCost as cc, MovementAxes as cd, type MovementKeys as ce, NO_ACHIEVEMENT as cf, NO_CHECKPOINT as cg, NO_ITEM as ch, NO_OBJECTIVE as ci, NO_SLOT as cj, NO_STATE as ck, NPC_STRIDE as cl, NPC_WALKING as cm, NpcSchedules as cn, type NpcSpawn as co, ONE_WATCHER as cp, type ObjectiveDecl as cq, Objectives as cr, OccupancyGrid as cs, OrbitControls as ct, type OrbitControlsOptions as cu, PLACE_VIEWER_CAMERA as cv, PLACE_VIEWER_SET as cw, PLAYER_WATCHER as cx, POLICY_ACTION_MODES as cy, POLICY_DRIVE_PRESETS as cz, ANCHOR_Y as d, type VectorPicked as d$, REPLAY_RATES as d0, RagdollPolicies as d1, RagdollPolicy as d2, type RagdollPolicySpec as d3, RankedScores as d4, type ReplayClip as d5, ReplayClipRecorder as d6, type ReplayDeclaration as d7, type ReplayManifest as d8, ReplayRecorder as d9, type ShopOffer as dA, ShopResult as dB, type ShopResultCode as dC, type SkyPreset as dD, type SkyPresetReach as dE, type SkyTarget as dF, SlotPool as dG, type SlottedGenre as dH, type SoundRecipe as dI, TEXTURE_RECIPES as dJ, type TextureRecipe as dK, ThingEffects as dL, type ThingEffectsInputs as dM, ThreePort as dN, TrackballControls as dO, type TrackballControlsOptions as dP, UNLIMITED_STOCK as dQ, VECTOR_REPORT as dR, VECTOR_VIEWER as dS, type VectorAuthorPort as dT, VectorEditSession as dU, type VectorHit as dV, type VectorImagePlacement as dW, type VectorImageRequest as dX, type VectorInput as dY, VectorMessageError as dZ, type VectorOp as d_, type ReplayRecorderOptions as da, type ReplayRun as db, type ReplaySimulation as dc, SCATTER_ATTEMPTS as dd, SCORE as de, SCORE_BEST as df, SCORE_COMBO as dg, SCORE_COMBO_LEFT as dh, SCORE_ELAPSED as di, SCORE_REMAINING as dj, SCORE_TIME_UP as dk, SHOP_TAG as dl, SKY_PRESETS as dm, SNAPSHOT_CHANNEL as dn, SOUND_RECIPES as dp, START_MOMENT as dq, type ScheduleStop as dr, type ScoreDirection as ds, ScoreHud as dt, type ScoreHudNames as du, ScoreTimer as dv, type ScoreTimerOptions as dw, SeekBot as dx, type SeekBotOptions as dy, Shop as dz, ANY_STATE as e, keyOfCode as e$, type VectorPlayKind as e0, type VectorPlayback as e1, type VectorPointer as e2, type VectorPointerPhase as e3, type VectorPropValue as e4, type VectorRef as e5, type VectorRefused as e6, type VectorSchema as e7, type VectorSchemaField as e8, type VectorSchemaProp as e9, buildPropGlb as eA, buildWorld as eB, captureFace as eC, checkWorld as eD, index$1 as eE, choosePreset as eF, clockText as eG, daylight as eH, decodeReplay as eI, deviceQuaternion as eJ, economyManifest as eK, economyToml as eL, encodeReplay as eM, encodeWav as eN, engineAvatarExports as eO, flatPart as eP, footprintOf as eQ, frameDamping as eR, index$2 as eS, index as eT, giftKey as eU, gridOf as eV, hasModel as eW, hourAt as eX, identityCapturePolicy as eY, identityFromCapture as eZ, judgeEconomy as e_, type VectorSchemaType as ea, type VectorSeek as eb, type VectorSeekKind as ec, type VectorShow as ed, type VectorValue as ee, type VectorView as ef, type VectorViewerAction as eg, type VectorViewerPorts as eh, type WaitingEffect as ei, type WaveDecl as ej, Waves as ek, type WavesOptions as el, type WorldCheck as em, type WorldCheckId as en, addSceneCamera as eo, applyGround as ep, applySky as eq, arkitWeight as er, auditEconomy as es, auditManifestEconomy as et, authorValue as eu, bakeThingGlb as ev, beats as ew, blankVectorFile as ex, blockoutKinds as ey, buildIdentityCharacter as ez, ARKIT_COUNT as f, kindsWithoutModels as f0, kitPublicationGates as f1, loadThingSounds as f2, markPlacement as f3, modelCost as f4, modelRecipeFor as f5, oddsMatch as f6, offerMatches as f7, partOfFlat as f8, peopleForTier as f9, walledArena as fA, weatherOf as fB, wrapAngle as fC, yawOfQuat as fD, playFromReplay as fa, playable as fb, policyActionSize as fc, policyObservationSize as fd, propBounds as fe, propTriangles as ff, quiltTexture as fg, readImageRequest as fh, readInput as fi, readPlayback as fj, readShow as fk, remainingCimples as fl, replayInputs as fm, scatter as fn, shapeOfFlat as fo, showcase as fp, simplifyStroke as fq, simulateReplay as fr, slottedRunner as fs, slottedShootout as ft, stateDigest as fu, staticBox as fv, synthesizeSound as fw, synthesizeTexture as fx, voteKey as fy, walkFrom as fz, AVATAR_DESIGN as g, AVATAR_DESIGN_REPORT as h, AVATAR_MOODS as i, AVATAR_OUTPUT_FLOATS as j, AVATAR_SLOTS as k, AVATAR_SPRING_GROUPS as l, AXIS_X as m, AXIS_Y as n, AXIS_Z as o, type AchievementDecl as p, type AchievementSlot as q, Achievements as r, type AiApply as s, AiInbox as t, type AiWatch as u, AnimationGraph as v, type AnimationGraphDef as w, type AnimationGraphPort as x, type ArenaOptions as y, type AvatarCharacter as z };
|