@holoscript/core 8.0.5 → 8.0.7
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/README.md +34 -34
- package/bin/holoscript.cjs +1 -1
- package/dist/GLTFPipeline-3EJLL3TS.cjs +38 -0
- package/dist/GLTFPipeline-3OWJV2VK.js +17 -0
- package/dist/{HoloScriptPlusParser-A2W7OCN2.cjs → HoloScriptPlusParser-ADWRY5OS.cjs} +15 -15
- package/dist/{HoloScriptPlusParser-7FBIFUFC.js → HoloScriptPlusParser-JLJDXHSC.js} +4 -4
- package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +27 -0
- package/dist/{HoloScriptPlusParser-F2Z56FJR.js → HoloScriptPlusParser-WENAFEFV.js} +5 -5
- package/dist/HoloScriptRuntime-GGRVEU4T.cjs +19 -0
- package/dist/HoloScriptRuntime-GJK6VJPH.js +10 -0
- package/dist/{USDZExporter-3FWJ25JI.cjs → USDZExporter-AUHZODOF.cjs} +15 -4
- package/dist/{USDZExporter-D2HQLQYK.js → USDZExporter-GXB4AUSG.js} +15 -4
- package/dist/{chunk-V6MKC2FZ.js → chunk-22Q5A6RV.js} +3 -3
- package/dist/{chunk-IUDGEUDO.cjs → chunk-2BZHWUSR.cjs} +27 -15
- package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
- package/dist/{chunk-CCATWPXM.js → chunk-2OWDB4FB.js} +13 -25
- package/dist/{chunk-N75IH2HY.js → chunk-2Y3V22SG.js} +5 -14
- package/dist/{chunk-MXFUTKCO.js → chunk-33YHE7HX.js} +3 -7
- package/dist/{chunk-GYZE55MO.js → chunk-3GWWJT7L.js} +4 -4
- package/dist/{chunk-CMT5NMMS.js → chunk-3NGDZZR4.js} +4 -4
- package/dist/{chunk-WRLUBRKS.cjs → chunk-3SKLAUDD.cjs} +2 -2
- package/dist/{chunk-KKFZ3B6J.cjs → chunk-3VBO3IYQ.cjs} +2 -2
- package/dist/{chunk-YF2I3MV3.js → chunk-47RUFYKR.js} +2 -2
- package/dist/{chunk-LHAXPADA.js → chunk-4JGRWHZJ.js} +7 -5
- package/dist/{chunk-ROHLEP2W.cjs → chunk-4W5G5QVL.cjs} +26 -26
- package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
- package/dist/{chunk-ZMCVKFXI.cjs → chunk-56VOWURB.cjs} +154 -47
- package/dist/{chunk-FXKAW7ZO.cjs → chunk-5A4TCHOC.cjs} +3 -3
- package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
- package/dist/{chunk-UJXISJBN.js → chunk-5ET6L4NS.js} +3 -3
- package/dist/{chunk-5NWINHR5.cjs → chunk-63ZGNR2T.cjs} +43 -39
- package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
- package/dist/{chunk-3WZEJHUQ.cjs → chunk-7DMMMBCY.cjs} +7 -7
- package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
- package/dist/{chunk-YN2YWTXW.js → chunk-7VMGP2FW.js} +44 -28
- package/dist/{chunk-OJXHYNXN.js → chunk-7X5PNIQJ.js} +3 -3
- package/dist/{chunk-FYSPZT4V.cjs → chunk-7ZHYEITD.cjs} +11 -11
- package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
- package/dist/{chunk-UWXE23BT.cjs → chunk-AWB7QYY6.cjs} +6 -6
- package/dist/{chunk-UO4WPSGQ.js → chunk-B4EKV6HQ.js} +154 -48
- package/dist/{chunk-2X7NGX3M.js → chunk-BRNUPDHJ.js} +5 -5
- package/dist/{chunk-D3STJ56J.js → chunk-BTKZGHAV.js} +23 -11
- package/dist/{chunk-I5CDNPPE.cjs → chunk-C4GSLCHE.cjs} +331 -125
- package/dist/{chunk-QPSKHBJP.js → chunk-C7ZBSV2Q.js} +13 -7
- package/dist/{chunk-YN6V7R3L.cjs → chunk-CCPSNT6B.cjs} +12 -7
- package/dist/{chunk-NW5G5FBQ.js → chunk-DD2JQ7TS.js} +4 -3
- package/dist/{chunk-JD7CIZ33.js → chunk-DUCB6LGL.js} +8 -10
- package/dist/{chunk-ANXZFVY2.js → chunk-DY72BMU5.js} +3 -3
- package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
- package/dist/{chunk-6DO5IZ5N.cjs → chunk-EDPYCLRC.cjs} +85 -65
- package/dist/{chunk-WQKJSGVS.js → chunk-F2G6CWFT.js} +271 -66
- package/dist/{chunk-AVJHHUC5.cjs → chunk-F5LKJ6F5.cjs} +43 -31
- package/dist/{chunk-ZU7NIRT6.js → chunk-FGMDMJM7.js} +10 -5
- package/dist/{chunk-YVD3CSO3.js → chunk-FHQFPYV4.js} +4 -4
- package/dist/{chunk-YIMN575O.js → chunk-FNHJRI32.js} +8 -5
- package/dist/{chunk-EXUP2BUM.cjs → chunk-FT6TDR2O.cjs} +27 -27
- package/dist/{chunk-BRQJKJGT.cjs → chunk-FWVYAMNW.cjs} +4 -4
- package/dist/{chunk-PGANYCAG.cjs → chunk-G25QVBA5.cjs} +4 -3
- package/dist/{chunk-XB274MW5.cjs → chunk-G6PNEASF.cjs} +13 -13
- package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
- package/dist/{chunk-HKEXJUWS.cjs → chunk-GH6C2QGW.cjs} +12 -21
- package/dist/{chunk-WRKUDAZJ.js → chunk-GSOUNWEL.js} +35 -27
- package/dist/{chunk-QPOQ7VPI.js → chunk-GTA4Q3A3.js} +2 -2
- package/dist/{chunk-JIYN45TV.cjs → chunk-GVFJ6T4S.cjs} +3 -7
- package/dist/{chunk-IVY74O6C.js → chunk-GVOKJNUN.js} +50 -11
- package/dist/{chunk-GZG4KA4E.js → chunk-GW3LKD5C.js} +6 -4
- package/dist/{chunk-NCWCUZNS.cjs → chunk-HFSVMKM3.cjs} +14 -14
- package/dist/{chunk-IUTY5WQ2.cjs → chunk-HLFDZ35S.cjs} +5 -5
- package/dist/{chunk-IWC5DM2M.cjs → chunk-I76GIKN7.cjs} +20 -16
- package/dist/{chunk-ON5QSY35.cjs → chunk-KAIVDEIG.cjs} +175 -59
- package/dist/{chunk-R24NNAEG.js → chunk-KCPHASCO.js} +18 -6
- package/dist/{chunk-T5J7ZKP3.cjs → chunk-KOUAQL2B.cjs} +16 -13
- package/dist/{chunk-GMP623FG.cjs → chunk-KQU64CIX.cjs} +2 -2
- package/dist/{chunk-MVPBWHAC.js → chunk-L5U4W6JC.js} +4 -4
- package/dist/{chunk-2IWC4FP7.cjs → chunk-LMJ5EBV7.cjs} +10 -10
- package/dist/{chunk-KKP7JKN4.cjs → chunk-LODTHGST.cjs} +18 -12
- package/dist/{chunk-4V2E7U7Q.cjs → chunk-LPS5AMQD.cjs} +8 -8
- package/dist/{chunk-PY37LNDP.js → chunk-LWUOUCYL.js} +9 -5
- package/dist/{chunk-6CTRH7HT.cjs → chunk-LYJJI7ZK.cjs} +12 -14
- package/dist/{chunk-GTU2Z2WW.cjs → chunk-M7K4LE66.cjs} +5 -14
- package/dist/{chunk-URG2SJLK.js → chunk-MDR235RZ.js} +3 -7
- package/dist/{chunk-E4M5OAYO.js → chunk-MSYSQ2AJ.js} +132 -16
- package/dist/{chunk-TWUXUCEW.cjs → chunk-NGBXXZLL.cjs} +50 -62
- package/dist/{chunk-FFAOS5HQ.js → chunk-NHJLP37F.js} +6 -6
- package/dist/{chunk-S3MDHNKB.cjs → chunk-NHYRRAGI.cjs} +5 -5
- package/dist/{chunk-U44IKGG7.cjs → chunk-O3MGZDCT.cjs} +89 -52
- package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
- package/dist/{chunk-KQCN6AKJ.cjs → chunk-OS533P33.cjs} +37 -29
- package/dist/{chunk-DAJXW4KX.js → chunk-PABONWKI.js} +24 -11
- package/dist/{chunk-QACVP4PM.js → chunk-PXNZ6TME.js} +77 -59
- package/dist/{chunk-OMXII44L.js → chunk-Q2Q34NF3.js} +63 -26
- package/dist/{chunk-OH2FAIVU.js → chunk-QBWNJXNR.js} +10 -6
- package/dist/{chunk-XKTPFXGA.js → chunk-QFU53KRH.js} +4 -4
- package/dist/{chunk-CR4FMIWL.cjs → chunk-QGMUTVVH.cjs} +17 -17
- package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
- package/dist/{chunk-QD32ADK6.js → chunk-S762UEV5.js} +5 -5
- package/dist/{chunk-HNDK4IQU.cjs → chunk-SH5PPVK7.cjs} +61 -45
- package/dist/{chunk-JC5YBPSF.cjs → chunk-SKZPC5AG.cjs} +5 -5
- package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
- package/dist/{chunk-5KVXXUD4.js → chunk-SSSN7VAM.js} +3 -3
- package/dist/{chunk-KMC6CQH3.js → chunk-SXOSDZD6.js} +6 -6
- package/dist/{chunk-J32ZJZJH.js → chunk-SYTRBGDS.js} +2 -2
- package/dist/{chunk-CIWWXYHZ.cjs → chunk-T6W3Z3SH.cjs} +2 -2
- package/dist/{chunk-QXH7QDSZ.js → chunk-TEVX443G.js} +44 -51
- package/dist/{chunk-UFZZ7TSN.cjs → chunk-TQ377OLB.cjs} +23 -21
- package/dist/{chunk-PJGFU5DN.cjs → chunk-TRCGG42I.cjs} +195 -152
- package/dist/{chunk-H652NHX5.js → chunk-TVANHNJ7.js} +30 -23
- package/dist/{chunk-EKBKLK7P.js → chunk-UDE4OZMR.js} +3 -3
- package/dist/{chunk-LKWQNUE6.cjs → chunk-UGXHYIWT.cjs} +5 -5
- package/dist/{chunk-JBNDTXXV.cjs → chunk-ULMSSHCJ.cjs} +21 -21
- package/dist/{chunk-YWOBW2PV.cjs → chunk-UOL6Y5TD.cjs} +18 -18
- package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
- package/dist/{chunk-7M3PNU2M.cjs → chunk-V7AKE5VT.cjs} +10 -10
- package/dist/{chunk-J7XZV333.js → chunk-VEPGBETF.js} +6 -6
- package/dist/{chunk-UWJHCOH2.js → chunk-VF257YKO.js} +4 -4
- package/dist/{chunk-4N4SXXWF.js → chunk-VSACG2AR.js} +3 -3
- package/dist/{chunk-ZDSYWBIE.cjs → chunk-VW5CRJBE.cjs} +3 -7
- package/dist/{chunk-YT5L3B57.cjs → chunk-WFKVS2K4.cjs} +65 -27
- package/dist/{chunk-J6M4FPK5.js → chunk-WXQ57LAO.js} +3 -3
- package/dist/{chunk-5H2G27PK.cjs → chunk-X27QRG4C.cjs} +38 -38
- package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
- package/dist/{chunk-DHO2YRIM.js → chunk-XQ5MWMP2.js} +4 -4
- package/dist/{chunk-XIVIE43A.cjs → chunk-XW6IXEQH.cjs} +26 -13
- package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
- package/dist/{chunk-7H33U5SM.cjs → chunk-Y57W2CT5.cjs} +2 -2
- package/dist/{chunk-OBIYPYYS.cjs → chunk-YCM6QQRT.cjs} +46 -53
- package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
- package/dist/{chunk-ADADVMXY.js → chunk-YFWRJW4B.js} +2 -2
- package/dist/{chunk-ONDAWTW4.js → chunk-YN6IETRZ.js} +179 -136
- package/dist/{chunk-4SDKXQ4C.js → chunk-YRRAUB35.js} +4 -4
- package/dist/{chunk-OBP5REIV.js → chunk-Z6PMDS4G.js} +62 -24
- package/dist/{chunk-BOVPWH4H.js → chunk-ZA34AN3R.js} +8 -17
- package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
- package/dist/{chunk-6FH72EB2.cjs → chunk-ZPZAVHXL.cjs} +20 -20
- package/dist/cli/holoscript-runner.cjs +39 -22
- package/dist/cli/holoscript-runner.js +32 -15
- package/dist/compiler/GasOptimizationAnalyzer.d.ts +73 -0
- package/dist/compiler/NFTMarketplaceCompiler.d.ts +23 -0
- package/dist/compiler/agent-inference.cjs +7 -7
- package/dist/compiler/agent-inference.js +3 -3
- package/dist/compiler/android-xr.cjs +8 -8
- package/dist/compiler/android-xr.js +6 -6
- package/dist/compiler/android.cjs +6 -6
- package/dist/compiler/android.js +4 -4
- package/dist/compiler/ar.cjs +6 -6
- package/dist/compiler/ar.js +4 -4
- package/dist/compiler/babylon.cjs +8 -8
- package/dist/compiler/babylon.js +7 -7
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/context.cjs +6 -6
- package/dist/compiler/context.js +3 -3
- package/dist/compiler/domain-block-utils.cjs +153 -153
- package/dist/compiler/domain-block-utils.js +4 -4
- package/dist/compiler/dtdl.cjs +7 -7
- package/dist/compiler/dtdl.js +4 -4
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +6 -6
- package/dist/compiler/godot.js +5 -5
- package/dist/compiler/incremental.cjs +8 -8
- package/dist/compiler/incremental.js +3 -3
- package/dist/compiler/index.cjs +530 -355
- package/dist/compiler/index.d.ts +20 -0
- package/dist/compiler/index.js +374 -210
- package/dist/compiler/ios.cjs +6 -6
- package/dist/compiler/ios.js +4 -4
- package/dist/compiler/llm-provider-capabilities.cjs +6 -6
- package/dist/compiler/llm-provider-capabilities.js +3 -3
- package/dist/compiler/multi-layer.cjs +10 -10
- package/dist/compiler/multi-layer.js +9 -9
- package/dist/compiler/openxr.cjs +7 -7
- package/dist/compiler/openxr.js +6 -6
- package/dist/compiler/playcanvas.cjs +6 -6
- package/dist/compiler/playcanvas.js +5 -5
- package/dist/compiler/r3f.cjs +13 -13
- package/dist/compiler/r3f.js +8 -8
- package/dist/compiler/sdf.cjs +7 -7
- package/dist/compiler/sdf.js +5 -5
- package/dist/compiler/state.cjs +6 -6
- package/dist/compiler/state.js +4 -4
- package/dist/compiler/trait-composition.cjs +8 -8
- package/dist/compiler/trait-composition.js +4 -4
- package/dist/compiler/unity.cjs +7 -7
- package/dist/compiler/unity.js +6 -6
- package/dist/compiler/unreal.cjs +8 -8
- package/dist/compiler/unreal.js +6 -6
- package/dist/compiler/urdf.cjs +14 -14
- package/dist/compiler/urdf.js +5 -5
- package/dist/compiler/usd-physics.cjs +7 -7
- package/dist/compiler/usd-physics.js +4 -4
- package/dist/compiler/visionos.cjs +7 -7
- package/dist/compiler/visionos.js +6 -6
- package/dist/compiler/vrchat.cjs +7 -7
- package/dist/compiler/vrchat.js +5 -5
- package/dist/compiler/vrr.cjs +7 -7
- package/dist/compiler/vrr.js +5 -5
- package/dist/compiler/wasm.cjs +10 -10
- package/dist/compiler/wasm.js +5 -5
- package/dist/compiler/webgpu.cjs +6 -6
- package/dist/compiler/webgpu.js +5 -5
- package/dist/coordinators/index.cjs +27 -10
- package/dist/coordinators/index.js +27 -10
- package/dist/debugger.cjs +6 -6
- package/dist/debugger.js +4 -4
- package/dist/entries/scripting.cjs +6 -6
- package/dist/entries/scripting.js +2 -2
- package/dist/hololand/index.cjs +36 -36
- package/dist/hololand/index.js +2 -2
- package/dist/index.cjs +1080 -2190
- package/dist/index.js +467 -1577
- package/dist/math/tropical-spmv.cjs +10 -10
- package/dist/math/tropical-spmv.js +1 -1
- package/dist/math/vec3.cjs +13 -13
- package/dist/math/vec3.js +1 -1
- package/dist/parser/NFTMarketplaceTypes.d.ts +191 -0
- package/dist/parser.cjs +16 -16
- package/dist/parser.js +5 -5
- package/dist/reconstruction/index.cjs +37 -37
- package/dist/reconstruction/index.js +4 -4
- package/dist/runtime.cjs +280 -74
- package/dist/runtime.d.ts +10 -1
- package/dist/runtime.js +268 -70
- package/dist/self-improvement/index.cjs +12 -4
- package/dist/self-improvement/index.js +12 -4
- package/dist/{src-HCCCSYP7.js → src-J6CM4AUR.js} +91 -33
- package/dist/{src-4ROC227P.cjs → src-PT2FERDV.cjs} +93 -35
- package/dist/testing.cjs +5 -5
- package/dist/testing.js +1 -1
- package/dist/traits/botanical-lotus.cjs +52 -48
- package/dist/traits/botanical-lotus.js +2 -2
- package/dist/traits/engines/index.cjs +39 -39
- package/dist/traits/engines/index.d.ts +279 -0
- package/dist/traits/engines/index.js +4 -4
- package/dist/traits/index.cjs +889 -773
- package/dist/traits/index.js +371 -259
- package/dist/world/index.cjs +21 -18
- package/dist/world/index.js +21 -18
- package/dist/world-model/index.cjs +11 -5
- package/dist/world-model/index.d.ts +8 -0
- package/dist/world-model/index.js +11 -5
- package/package.json +75 -69
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-37FPRVPH.js +0 -17
- package/dist/GLTFPipeline-EK3LFJKW.cjs +0 -38
- package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
- package/dist/HoloScriptRuntime-ACDFKVVH.js +0 -10
- package/dist/HoloScriptRuntime-ON2OQVEF.cjs +0 -19
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkEBS32AJI_cjs = require('./chunk-EBS32AJI.cjs');
|
|
4
|
+
var chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
|
|
5
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
8
8
|
|
|
@@ -14,10 +14,10 @@ chunkHCCQLAA4_cjs.__export(UnityCompiler_exports, {
|
|
|
14
14
|
exports.UnityCompiler = void 0;
|
|
15
15
|
var init_UnityCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
16
16
|
"src/compiler/UnityCompiler.ts"() {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
exports.UnityCompiler = class extends
|
|
17
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
18
|
+
chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
|
|
19
|
+
chunkEBS32AJI_cjs.init_PlatformConditionalCompilerMixin();
|
|
20
|
+
exports.UnityCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
21
21
|
constructor(options = {}) {
|
|
22
22
|
super();
|
|
23
23
|
this.compilerName = "UnityCompiler";
|
|
@@ -32,7 +32,7 @@ var init_UnityCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
32
32
|
holomapPointCloud: options.holomapPointCloud
|
|
33
33
|
};
|
|
34
34
|
if (options.platformTarget) {
|
|
35
|
-
this._platformTarget = typeof options.platformTarget === "string" ?
|
|
35
|
+
this._platformTarget = typeof options.platformTarget === "string" ? chunkEBS32AJI_cjs.createPlatformTarget(options.platformTarget) : options.platformTarget;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
getRequiredCapability() {
|
|
@@ -41,7 +41,7 @@ var init_UnityCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
41
41
|
compile(composition, agentToken, outputPath) {
|
|
42
42
|
this.validateCompilerAccess(agentToken, outputPath);
|
|
43
43
|
if (this._platformTarget) {
|
|
44
|
-
const platformMixin = new
|
|
44
|
+
const platformMixin = new chunkEBS32AJI_cjs.PlatformConditionalCompilerMixin();
|
|
45
45
|
composition = platformMixin.filterForPlatform(composition, this._platformTarget);
|
|
46
46
|
}
|
|
47
47
|
this.lines = [];
|
|
@@ -154,30 +154,20 @@ var init_UnityCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
154
154
|
this.emit(` string holomapPosB64 = ${posLit};`);
|
|
155
155
|
this.emit(` string holomapColB64 = ${colLit};`);
|
|
156
156
|
this.emit(` int holomapN = ${h.pointCount};`);
|
|
157
|
-
this.emit(
|
|
158
|
-
|
|
159
|
-
);
|
|
160
|
-
this.emit(
|
|
161
|
-
" byte[] holomapCol = System.Convert.FromBase64String(holomapColB64);"
|
|
162
|
-
);
|
|
157
|
+
this.emit(" byte[] holomapPos = System.Convert.FromBase64String(holomapPosB64);");
|
|
158
|
+
this.emit(" byte[] holomapCol = System.Convert.FromBase64String(holomapColB64);");
|
|
163
159
|
this.emit(" if (holomapPos.Length >= holomapN * 12 && holomapCol.Length >= holomapN * 3)");
|
|
164
160
|
this.emit(" {");
|
|
165
|
-
this.emit(
|
|
166
|
-
' var holomapGo = new GameObject("HoloMapReconstructionPoints");'
|
|
167
|
-
);
|
|
161
|
+
this.emit(' var holomapGo = new GameObject("HoloMapReconstructionPoints");');
|
|
168
162
|
this.emit(" holomapGo.transform.SetParent(transform, false);");
|
|
169
163
|
this.emit(" var mesh = new Mesh();");
|
|
170
|
-
this.emit(
|
|
171
|
-
" mesh.indexFormat = UnityEngine.Rendering.IndexFormat.UInt32;"
|
|
172
|
-
);
|
|
164
|
+
this.emit(" mesh.indexFormat = UnityEngine.Rendering.IndexFormat.UInt32;");
|
|
173
165
|
this.emit(" var verts = new Vector3[holomapN];");
|
|
174
166
|
this.emit(" var cols = new Color32[holomapN];");
|
|
175
167
|
this.emit(" var idx = new int[holomapN];");
|
|
176
168
|
this.emit(" for (int i = 0; i < holomapN; i++)");
|
|
177
169
|
this.emit(" {");
|
|
178
|
-
this.emit(
|
|
179
|
-
" int p = i * 12; int c = i * 3;"
|
|
180
|
-
);
|
|
170
|
+
this.emit(" int p = i * 12; int c = i * 3;");
|
|
181
171
|
this.emit(
|
|
182
172
|
" verts[i] = new Vector3(System.BitConverter.ToSingle(holomapPos, p), System.BitConverter.ToSingle(holomapPos, p + 4), System.BitConverter.ToSingle(holomapPos, p + 8));"
|
|
183
173
|
);
|
|
@@ -193,13 +183,11 @@ var init_UnityCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
193
183
|
this.emit(" var mf = holomapGo.AddComponent<MeshFilter>();");
|
|
194
184
|
this.emit(" mf.sharedMesh = mesh;");
|
|
195
185
|
this.emit(" var mr = holomapGo.AddComponent<MeshRenderer>();");
|
|
186
|
+
this.emit(' var sh = Shader.Find("Universal Render Pipeline/Unlit");');
|
|
187
|
+
this.emit(' if (sh == null) sh = Shader.Find("Unlit/Color");');
|
|
196
188
|
this.emit(
|
|
197
|
-
'
|
|
198
|
-
);
|
|
199
|
-
this.emit(
|
|
200
|
-
' if (sh == null) sh = Shader.Find("Unlit/Color");'
|
|
189
|
+
' mr.sharedMaterial = sh != null ? new Material(sh) : new Material(Shader.Find("Hidden/InternalErrorShader"));'
|
|
201
190
|
);
|
|
202
|
-
this.emit(' mr.sharedMaterial = sh != null ? new Material(sh) : new Material(Shader.Find("Hidden/InternalErrorShader"));');
|
|
203
191
|
this.emit(" }");
|
|
204
192
|
this.emit(" }");
|
|
205
193
|
}
|
|
@@ -219,63 +207,63 @@ var init_UnityCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
219
207
|
this.emit("");
|
|
220
208
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
221
209
|
let blockIdx = 0;
|
|
222
|
-
const compiled =
|
|
210
|
+
const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
|
|
223
211
|
domainBlocks,
|
|
224
212
|
{
|
|
225
213
|
material: (block) => {
|
|
226
|
-
const mat =
|
|
214
|
+
const mat = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
|
|
227
215
|
const prefix = `db${blockIdx++}`;
|
|
228
|
-
return
|
|
216
|
+
return chunkGH6C2QGW_cjs.materialToUnity(mat, prefix);
|
|
229
217
|
},
|
|
230
218
|
physics: (block) => {
|
|
231
|
-
const phys =
|
|
219
|
+
const phys = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
|
|
232
220
|
const prefix = `db${blockIdx++}`;
|
|
233
|
-
return
|
|
221
|
+
return chunkGH6C2QGW_cjs.physicsToUnity(phys, prefix);
|
|
234
222
|
},
|
|
235
223
|
vfx: (block) => {
|
|
236
|
-
const ps =
|
|
224
|
+
const ps = chunkGH6C2QGW_cjs.compileParticleBlock(block);
|
|
237
225
|
const prefix = `db${blockIdx++}`;
|
|
238
|
-
return
|
|
226
|
+
return chunkGH6C2QGW_cjs.particlesToUnity(ps, prefix);
|
|
239
227
|
},
|
|
240
228
|
postfx: (block) => {
|
|
241
|
-
const pp =
|
|
242
|
-
return
|
|
229
|
+
const pp = chunkGH6C2QGW_cjs.compilePostProcessingBlock(block);
|
|
230
|
+
return chunkGH6C2QGW_cjs.postProcessingToUnity(pp);
|
|
243
231
|
},
|
|
244
232
|
audio: (block) => {
|
|
245
|
-
const audio =
|
|
233
|
+
const audio = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
|
|
246
234
|
const prefix = `db${blockIdx++}`;
|
|
247
|
-
return
|
|
235
|
+
return chunkGH6C2QGW_cjs.audioSourceToUnity(audio, prefix);
|
|
248
236
|
},
|
|
249
237
|
weather: (block) => {
|
|
250
|
-
const weather =
|
|
251
|
-
return
|
|
238
|
+
const weather = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
|
|
239
|
+
return chunkGH6C2QGW_cjs.weatherToUnity(weather);
|
|
252
240
|
},
|
|
253
241
|
narrative: (block) => {
|
|
254
|
-
const narr =
|
|
255
|
-
return
|
|
242
|
+
const narr = chunkGH6C2QGW_cjs.compileNarrativeBlock(block);
|
|
243
|
+
return chunkGH6C2QGW_cjs.narrativeToUnity(narr);
|
|
256
244
|
},
|
|
257
245
|
payment: (block) => {
|
|
258
|
-
const pay =
|
|
259
|
-
return
|
|
246
|
+
const pay = chunkGH6C2QGW_cjs.compilePaymentBlock(block);
|
|
247
|
+
return chunkGH6C2QGW_cjs.paymentToUnity(pay);
|
|
260
248
|
},
|
|
261
249
|
healthcare: (block) => {
|
|
262
|
-
const h =
|
|
263
|
-
return
|
|
250
|
+
const h = chunkGH6C2QGW_cjs.compileHealthcareBlock(block);
|
|
251
|
+
return chunkGH6C2QGW_cjs.healthcareToUnity(h);
|
|
264
252
|
},
|
|
265
253
|
robotics: (block) => {
|
|
266
|
-
const r =
|
|
267
|
-
return
|
|
254
|
+
const r = chunkGH6C2QGW_cjs.compileRoboticsBlock(block);
|
|
255
|
+
return chunkGH6C2QGW_cjs.roboticsToUnity(r);
|
|
268
256
|
},
|
|
269
|
-
iot: (block) =>
|
|
270
|
-
dataviz: (block) =>
|
|
271
|
-
education: (block) =>
|
|
272
|
-
music: (block) =>
|
|
273
|
-
architecture: (block) =>
|
|
274
|
-
web3: (block) =>
|
|
275
|
-
procedural: (block) =>
|
|
276
|
-
rendering: (block) =>
|
|
277
|
-
navigation: (block) =>
|
|
278
|
-
input: (block) =>
|
|
257
|
+
iot: (block) => chunkGH6C2QGW_cjs.iotToUnity(chunkGH6C2QGW_cjs.compileIoTBlock(block)),
|
|
258
|
+
dataviz: (block) => chunkGH6C2QGW_cjs.datavizToUnity(chunkGH6C2QGW_cjs.compileDataVizBlock(block)),
|
|
259
|
+
education: (block) => chunkGH6C2QGW_cjs.educationToUnity(chunkGH6C2QGW_cjs.compileEducationBlock(block)),
|
|
260
|
+
music: (block) => chunkGH6C2QGW_cjs.musicToUnity(chunkGH6C2QGW_cjs.compileMusicBlock(block)),
|
|
261
|
+
architecture: (block) => chunkGH6C2QGW_cjs.architectureToUnity(chunkGH6C2QGW_cjs.compileArchitectureBlock(block)),
|
|
262
|
+
web3: (block) => chunkGH6C2QGW_cjs.web3ToUnity(chunkGH6C2QGW_cjs.compileWeb3Block(block)),
|
|
263
|
+
procedural: (block) => chunkGH6C2QGW_cjs.proceduralToUnity(chunkGH6C2QGW_cjs.compileProceduralBlock(block)),
|
|
264
|
+
rendering: (block) => chunkGH6C2QGW_cjs.renderingToUnity(chunkGH6C2QGW_cjs.compileRenderingBlock(block)),
|
|
265
|
+
navigation: (block) => chunkGH6C2QGW_cjs.navigationToUnity(chunkGH6C2QGW_cjs.compileNavigationBlock(block)),
|
|
266
|
+
input: (block) => chunkGH6C2QGW_cjs.inputToUnity(chunkGH6C2QGW_cjs.compileInputBlock(block))
|
|
279
267
|
},
|
|
280
268
|
(block) => `// Domain block: ${block.domain}/${block.keyword} "${this.escapeStringValue(block.name, "CSharp")}"`
|
|
281
269
|
);
|
|
@@ -777,5 +765,5 @@ var init_UnityCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
777
765
|
|
|
778
766
|
exports.UnityCompiler_exports = UnityCompiler_exports;
|
|
779
767
|
exports.init_UnityCompiler = init_UnityCompiler;
|
|
780
|
-
//# sourceMappingURL=chunk-
|
|
781
|
-
//# sourceMappingURL=chunk-
|
|
768
|
+
//# sourceMappingURL=chunk-NGBXXZLL.cjs.map
|
|
769
|
+
//# sourceMappingURL=chunk-NGBXXZLL.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { init_VRRCompiler, VRRCompiler } from './chunk-
|
|
2
|
-
import { init_ARCompiler, ARCompiler } from './chunk-
|
|
3
|
-
import { init_BabylonCompiler, BabylonCompiler } from './chunk-
|
|
4
|
-
import { init_CompilerBase, CompilerBase } from './chunk-
|
|
1
|
+
import { init_VRRCompiler, VRRCompiler } from './chunk-YRRAUB35.js';
|
|
2
|
+
import { init_ARCompiler, ARCompiler } from './chunk-5ET6L4NS.js';
|
|
3
|
+
import { init_BabylonCompiler, BabylonCompiler } from './chunk-VEPGBETF.js';
|
|
4
|
+
import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
|
|
5
5
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
6
6
|
|
|
7
7
|
// src/compiler/MultiLayerCompiler.ts
|
|
@@ -66,5 +66,5 @@ var MultiLayerCompiler = class extends CompilerBase {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
export { MultiLayerCompiler };
|
|
69
|
-
//# sourceMappingURL=chunk-
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
69
|
+
//# sourceMappingURL=chunk-NHJLP37F.js.map
|
|
70
|
+
//# sourceMappingURL=chunk-NHJLP37F.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
|
|
4
4
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
5
5
|
var ans = require('@holoscript/core-types/ans');
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ chunkHCCQLAA4_cjs.__export(ARCompiler_exports, {
|
|
|
13
13
|
var AR_TRAIT_NAMES; exports.ARCompiler = void 0; exports.ARCompiler_default = void 0;
|
|
14
14
|
var init_ARCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
15
15
|
"src/compiler/ARCompiler.ts"() {
|
|
16
|
-
|
|
16
|
+
chunkLODTHGST_cjs.init_CompilerBase();
|
|
17
17
|
AR_TRAIT_NAMES = [
|
|
18
18
|
"ar_beacon",
|
|
19
19
|
"overlay",
|
|
@@ -23,7 +23,7 @@ var init_ARCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
23
23
|
"camera_overlay",
|
|
24
24
|
"x402_paywall"
|
|
25
25
|
];
|
|
26
|
-
exports.ARCompiler = class extends
|
|
26
|
+
exports.ARCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
|
|
27
27
|
constructor(options = {}) {
|
|
28
28
|
super();
|
|
29
29
|
this.compilerName = "ARCompiler";
|
|
@@ -486,5 +486,5 @@ var init_ARCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
486
486
|
|
|
487
487
|
exports.ARCompiler_exports = ARCompiler_exports;
|
|
488
488
|
exports.init_ARCompiler = init_ARCompiler;
|
|
489
|
-
//# sourceMappingURL=chunk-
|
|
490
|
-
//# sourceMappingURL=chunk-
|
|
489
|
+
//# sourceMappingURL=chunk-NHYRRAGI.cjs.map
|
|
490
|
+
//# sourceMappingURL=chunk-NHYRRAGI.cjs.map
|