@pinkaphant/kolmo 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/kolmo.mjs +1 -1
- package/dist/engine/kolmoActor.js +125 -83
- package/dist/engine/kolmoLongDrive.js +136 -91
- package/dist/engine/kolmoStore.d.ts +6 -5
- package/dist/engine/kolmoStore.js +115 -79
- package/dist/engine/kolmoVehicle.d.ts +1 -1
- package/dist/engine/kolmoVehicle.js +160 -147
- package/dist/engine/kolmoVehicleDriver.d.ts +12 -4
- package/dist/engine/kolmoVehicleDriver.js +40 -20
- package/dist/engine/kolmoWorld.js +55 -35
- package/dist/importer/CabinPreviewRig.d.ts +13 -0
- package/dist/importer/CabinPreviewRig.js +138 -0
- package/dist/importer/CabinStepSection.d.ts +17 -0
- package/dist/importer/CabinStepSection.js +222 -0
- package/dist/importer/ChopShopPanel.d.ts +31 -1
- package/dist/importer/ChopShopPanel.js +474 -380
- package/dist/importer/GateHudBar.d.ts +3 -0
- package/dist/importer/GateHudBar.js +8 -2
- package/dist/importer/GlbImportGate.js +183 -147
- package/dist/importer/ImporterPlinthUikitTags.d.ts +2 -1
- package/dist/importer/ImporterPlinthUikitTags.js +23 -16
- package/dist/importer/Step1CalibrationPlinth.d.ts +10 -0
- package/dist/importer/Step1CalibrationPlinth.js +203 -141
- package/dist/importer/Step2UniversalPad.d.ts +8 -1
- package/dist/importer/Step2UniversalPad.js +112 -90
- package/dist/importer/cabinMeshBuilders.d.ts +13 -0
- package/dist/importer/cabinMeshBuilders.js +104 -0
- package/dist/importer/cabinMixamoRig.d.ts +53 -0
- package/dist/importer/cabinMixamoRig.js +150 -0
- package/dist/importer/chopShopActions.d.ts +6 -0
- package/dist/importer/chopShopActions.js +86 -61
- package/dist/importer/chopShopUiComponents.d.ts +22 -0
- package/dist/importer/chopShopUiComponents.js +91 -0
- package/dist/importer/gateStore.d.ts +5 -2
- package/dist/importer/gateStore.js +13 -10
- package/dist/importer/glbNormalizer.d.ts +10 -1
- package/dist/importer/glbNormalizer.js +114 -49
- package/dist/importer/importerWebMcp.js +4 -1
- package/dist/importer/index.d.ts +4 -2
- package/dist/importer/index.js +24 -21
- package/dist/importer/khrCompiler.d.ts +20 -1
- package/dist/importer/khrCompiler.js +539 -290
- package/dist/importer/launcherBake.js +12 -8
- package/dist/importer/meshIslands.d.ts +4 -0
- package/dist/importer/meshIslands.js +104 -99
- package/dist/importer/surfaceCutter.d.ts +12 -3
- package/dist/importer/surfaceCutter.js +220 -127
- package/dist/importer/surfaceTopology.d.ts +13 -2
- package/dist/importer/surfaceTopology.js +57 -29
- package/dist/importer/universalGateBake.d.ts +7 -1
- package/dist/importer/universalGateBake.js +63 -60
- package/dist/importer/usdToGlb.js +19 -7
- package/dist/importer/useChopShopController.d.ts +27 -1
- package/dist/importer/useChopShopController.js +369 -255
- package/dist/importer/wheelAxlePairing.d.ts +3 -1
- package/dist/importer/wheelAxlePairing.js +82 -33
- package/dist/index.js +31 -28
- package/dist/junk/ShardPieces.js +3 -3
- package/dist/physics/index.d.ts +7 -0
- package/dist/physics/index.js +66 -40
- package/package.json +1 -1
|
@@ -3,9 +3,10 @@ import { type KhrAssetBundle } from "@khr3/core";
|
|
|
3
3
|
import { type PaperShellAssembly } from "@khr3/vehicles/paper-shell";
|
|
4
4
|
import { type KolmoAuthoredNodePatch } from "../schema/kolmoSchema.js";
|
|
5
5
|
import type { GateDomain, VehicleSubArchetype } from "./gateStore.js";
|
|
6
|
+
import type { CarCabinConfig } from "./cabinMixamoRig.js";
|
|
6
7
|
import type { ChopPartRole } from "./surfaceCutter.js";
|
|
7
8
|
import type { MeshIsland, WheelAxle } from "./meshIslands.js";
|
|
8
|
-
import { type CarDriveMode, type KolmoAssetArchetype, type WheelVisualSource } from "./khrCompiler.js";
|
|
9
|
+
import { type CarDriveMode, type EngineTorqueCurveId, type KolmoAssetArchetype, type SteerSpeedCurveId, type TireArchetypeId, type WheelVisualSource } from "./khrCompiler.js";
|
|
9
10
|
export type WorldAssetKind = KolmoAssetArchetype;
|
|
10
11
|
export interface GateWorldPayload {
|
|
11
12
|
readonly id: string;
|
|
@@ -27,11 +28,16 @@ export interface UniversalBakeInput {
|
|
|
27
28
|
readonly massKg: number;
|
|
28
29
|
readonly powerOrThrust: number;
|
|
29
30
|
readonly driveType: CarDriveMode;
|
|
31
|
+
readonly tirePreset?: TireArchetypeId;
|
|
32
|
+
readonly torqueCurve?: EngineTorqueCurveId;
|
|
33
|
+
readonly steerCurve?: SteerSpeedCurveId;
|
|
30
34
|
readonly staticProp: boolean;
|
|
31
35
|
readonly axles: readonly WheelAxle[];
|
|
36
|
+
readonly propellerIslandIds?: readonly number[];
|
|
32
37
|
readonly islands: readonly MeshIsland[];
|
|
33
38
|
readonly partPicks?: Readonly<Record<number, ChopPartRole>>;
|
|
34
39
|
readonly wheelSource?: WheelVisualSource;
|
|
40
|
+
readonly cabin?: CarCabinConfig;
|
|
35
41
|
readonly patches: readonly KolmoAuthoredNodePatch[];
|
|
36
42
|
}
|
|
37
43
|
export declare function bakeUniversalGateGlb(input: UniversalBakeInput): Promise<{
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { stampKolmoNodesIntoGlb as e } from "../schema/kolmoSchema.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
2
|
+
import { computeMeshMassProps as t } from "./glbNormalizer.js";
|
|
3
|
+
import { compileKhrAssetGlb as n } from "./khrCompiler.js";
|
|
4
|
+
import { KOLMOGOROV_CARBINE as r, KOLMOGOROV_PISTOL as i, KOLMOGOROV_SHOTGUN as a, bakeArticulatedLauncherGlb as o } from "./launcherBake.js";
|
|
5
|
+
import * as s from "three";
|
|
6
|
+
import { exportKhrGlb as c, loadKhrGlb as l, patchGlbJsonChunk as u } from "@khr3/core";
|
|
7
|
+
import { exportPaperShellKhrGlb as d } from "@khr3/vehicles/paper-shell";
|
|
7
8
|
// src/importer/universalGateBake.ts
|
|
8
|
-
var
|
|
9
|
+
var f = [
|
|
9
10
|
"map",
|
|
10
11
|
"normalMap",
|
|
11
12
|
"roughnessMap",
|
|
@@ -13,19 +14,12 @@ var d = [
|
|
|
13
14
|
"aoMap",
|
|
14
15
|
"emissiveMap"
|
|
15
16
|
];
|
|
16
|
-
function f(e, t, n, r) {
|
|
17
|
-
return [
|
|
18
|
-
Number((e / 12 * (n * n + r * r)).toFixed(4)),
|
|
19
|
-
Number((e / 12 * (t * t + r * r)).toFixed(4)),
|
|
20
|
-
Number((e / 12 * (t * t + n * n)).toFixed(4))
|
|
21
|
-
];
|
|
22
|
-
}
|
|
23
17
|
async function p(t, n, r, i) {
|
|
24
18
|
let a = [];
|
|
25
19
|
t.traverse((e) => {
|
|
26
|
-
if (!(e instanceof
|
|
20
|
+
if (!(e instanceof s.Mesh) || !e.material) return;
|
|
27
21
|
let t = e.material;
|
|
28
|
-
for (let e of
|
|
22
|
+
for (let e of f) {
|
|
29
23
|
let n = t[e];
|
|
30
24
|
n && !n.image && (a.push({
|
|
31
25
|
rec: t,
|
|
@@ -34,18 +28,18 @@ async function p(t, n, r, i) {
|
|
|
34
28
|
}), t[e] = null);
|
|
35
29
|
}
|
|
36
30
|
});
|
|
37
|
-
let
|
|
31
|
+
let o;
|
|
38
32
|
try {
|
|
39
|
-
|
|
33
|
+
o = new Uint8Array(await c(t, n, r));
|
|
40
34
|
} finally {
|
|
41
35
|
for (let e of a) e.rec[e.slot] = e.tex;
|
|
42
36
|
}
|
|
43
|
-
let l = e(
|
|
37
|
+
let l = e(o, i);
|
|
44
38
|
return l instanceof Uint8Array ? l : new Uint8Array(l);
|
|
45
39
|
}
|
|
46
|
-
async function m(
|
|
47
|
-
if (
|
|
48
|
-
let { glb: t } = await
|
|
40
|
+
async function m(c) {
|
|
41
|
+
if (c.domain === "vehicle" && c.usePaperShellProxy) {
|
|
42
|
+
let { glb: t } = await d(c.assembly, c.attachedMask, c.fuelLiters), n = new Uint8Array(u(t, (e) => {
|
|
49
43
|
let t = e.scenes?.[0];
|
|
50
44
|
t && (t.extras = {
|
|
51
45
|
...t.extras ?? {},
|
|
@@ -68,62 +62,71 @@ async function m(s) {
|
|
|
68
62
|
-.08
|
|
69
63
|
],
|
|
70
64
|
extension: { socket: "seat" }
|
|
71
|
-
}, ...
|
|
65
|
+
}, ...c.patches])), i = r.buffer.slice(r.byteOffset, r.byteOffset + r.byteLength);
|
|
72
66
|
return {
|
|
73
67
|
glbBytes: r,
|
|
74
|
-
bundle: await
|
|
68
|
+
bundle: await l(i),
|
|
75
69
|
worldKind: "car"
|
|
76
70
|
};
|
|
77
71
|
}
|
|
78
|
-
let
|
|
79
|
-
if (
|
|
80
|
-
let e = await
|
|
81
|
-
archetype:
|
|
82
|
-
massKg:
|
|
83
|
-
powerOrThrust:
|
|
84
|
-
driveType:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
72
|
+
let f = c.normalizedScene ?? new s.Group();
|
|
73
|
+
if (c.domain === "vehicle") {
|
|
74
|
+
let e = await n(f, {
|
|
75
|
+
archetype: c.vehicleArchetype,
|
|
76
|
+
massKg: c.massKg,
|
|
77
|
+
powerOrThrust: c.powerOrThrust,
|
|
78
|
+
driveType: c.driveType,
|
|
79
|
+
tirePreset: c.tirePreset,
|
|
80
|
+
torqueCurve: c.torqueCurve,
|
|
81
|
+
steerCurve: c.steerCurve,
|
|
82
|
+
wheelSource: c.wheelSource,
|
|
83
|
+
axles: c.axles,
|
|
84
|
+
propellerIslandIds: c.propellerIslandIds,
|
|
85
|
+
islands: c.islands,
|
|
86
|
+
partPicks: c.partPicks,
|
|
87
|
+
cabin: c.cabin,
|
|
88
|
+
patches: c.patches,
|
|
89
|
+
name: c.name
|
|
90
|
+
}), t = e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength);
|
|
92
91
|
return {
|
|
93
92
|
glbBytes: e,
|
|
94
|
-
bundle: await
|
|
95
|
-
worldKind:
|
|
93
|
+
bundle: await l(t),
|
|
94
|
+
worldKind: c.vehicleArchetype
|
|
96
95
|
};
|
|
97
96
|
}
|
|
98
|
-
if (
|
|
99
|
-
let e =
|
|
97
|
+
if (c.domain === "launcher") {
|
|
98
|
+
let e = c.name.toLowerCase(), t = e.includes("pistol") ? i : e.includes("shotgun") ? a : r, n = !(!c.normalizedScene || c.normalizedScene.name.startsWith("Starter_")), { glbBytes: s, bundle: l } = await o(t, n ? f : null, c.patches);
|
|
100
99
|
return {
|
|
101
|
-
glbBytes:
|
|
100
|
+
glbBytes: s,
|
|
102
101
|
bundle: l,
|
|
103
102
|
worldKind: "prop"
|
|
104
103
|
};
|
|
105
104
|
}
|
|
106
|
-
|
|
107
|
-
let m = new
|
|
108
|
-
b.name =
|
|
109
|
-
let x = new
|
|
110
|
-
x.name =
|
|
105
|
+
f.updateMatrixWorld(!0);
|
|
106
|
+
let m = new s.Box3().setFromObject(f), h = m.isEmpty() ? new s.Vector3(1, 1, 1) : m.getSize(new s.Vector3()), g = m.isEmpty() ? new s.Vector3(0, .5, 0) : m.getCenter(new s.Vector3()), _ = Math.max(.08, h.x), v = Math.max(.08, h.y), y = Math.max(.08, h.z), b = new s.Group();
|
|
107
|
+
b.name = c.name;
|
|
108
|
+
let x = new s.Group();
|
|
109
|
+
x.name = c.domain === "c12" ? "C12Shell" : c.domain === "person" ? "PersonRig" : c.domain === "junk" ? "JunkTarget" : "PropBody";
|
|
111
110
|
let S = !1;
|
|
112
|
-
for (let e of
|
|
113
|
-
e instanceof
|
|
111
|
+
for (let e of f.clone(!0).children) x.add(e), e.traverse((e) => {
|
|
112
|
+
e instanceof s.Mesh && (e.geometry?.getAttribute("position")?.count ?? 0) >= 3 && (S = !0);
|
|
114
113
|
});
|
|
115
114
|
b.add(x);
|
|
116
|
-
let C =
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
],
|
|
115
|
+
let C = c.domain === "c12" || c.domain === "prop" && c.staticProp, w = Math.max(.5, c.massKg || (c.domain === "person" ? 72 : c.domain === "junk" ? 18 : 65)), T = t(x, w, [
|
|
116
|
+
g.x,
|
|
117
|
+
g.y,
|
|
118
|
+
g.z
|
|
119
|
+
], [
|
|
120
|
+
_,
|
|
121
|
+
v,
|
|
122
|
+
y
|
|
123
|
+
]), E = await p(b, [{
|
|
121
124
|
nodeName: x.name,
|
|
122
125
|
motion: C ? { isKinematic: !0 } : {
|
|
123
126
|
isKinematic: !1,
|
|
124
127
|
mass: w,
|
|
125
|
-
centerOfMass: T,
|
|
126
|
-
inertiaDiagonal:
|
|
128
|
+
centerOfMass: T.centerOfMass,
|
|
129
|
+
inertiaDiagonal: T.inertiaDiagonal
|
|
127
130
|
},
|
|
128
131
|
collider: S && !C ? {
|
|
129
132
|
meshNodeName: x.name,
|
|
@@ -143,17 +146,17 @@ async function m(s) {
|
|
|
143
146
|
restitution: .08
|
|
144
147
|
},
|
|
145
148
|
extras: {
|
|
146
|
-
role:
|
|
147
|
-
...
|
|
149
|
+
role: c.domain,
|
|
150
|
+
...c.domain === "junk" ? { destructible: {
|
|
148
151
|
fractureShards: 8,
|
|
149
152
|
decalBudget: 16,
|
|
150
153
|
breakImpulseNs: 65
|
|
151
154
|
} } : {}
|
|
152
155
|
}
|
|
153
|
-
}], { gateDomain:
|
|
156
|
+
}], { gateDomain: c.domain }, c.patches), D = E.buffer.slice(E.byteOffset, E.byteOffset + E.byteLength);
|
|
154
157
|
return {
|
|
155
158
|
glbBytes: E,
|
|
156
|
-
bundle: await
|
|
159
|
+
bundle: await l(D),
|
|
157
160
|
worldKind: "prop"
|
|
158
161
|
};
|
|
159
162
|
}
|
|
@@ -132,7 +132,7 @@ function v(e, t, n, r) {
|
|
|
132
132
|
let e = t.match(/^drive:([^:]+):physics:/);
|
|
133
133
|
e && i.add(e[1]);
|
|
134
134
|
}
|
|
135
|
-
let a = n[1] ? 1 : n[2] ? 2 : 0;
|
|
135
|
+
let a = Math.abs(n[1]) > .5 ? 1 : Math.abs(n[2]) > .5 ? 2 : 0;
|
|
136
136
|
return [...i].map((n) => {
|
|
137
137
|
let i = m(e[`drive:${n}:physics:stiffness`]), o = m(e[`drive:${n}:physics:damping`]), s = m(e[`drive:${n}:physics:maxForce`]), c = m(e[`drive:${n}:physics:targetPosition`]), l = m(e[`drive:${n}:physics:targetVelocity`]), u = (e[`drive:${n}:physics:type`] ?? "").includes("acceleration") ? "acceleration" : "force";
|
|
138
138
|
return {
|
|
@@ -223,26 +223,38 @@ function y(t, n, r) {
|
|
|
223
223
|
isKinematic: !1,
|
|
224
224
|
mass: 1
|
|
225
225
|
};
|
|
226
|
-
let u = (t.attrs["physics:axis"] ?? "X").replace(/"/g, "").trim().toUpperCase(),
|
|
226
|
+
let u = h(t.attrs["physics:axis"]), d = (t.attrs["physics:axis"] ?? "X").replace(/"/g, "").trim().toUpperCase(), f = u ?? (d === "-X" ? [
|
|
227
|
+
-1,
|
|
228
|
+
0,
|
|
229
|
+
0
|
|
230
|
+
] : d === "Y" ? [
|
|
227
231
|
0,
|
|
228
232
|
1,
|
|
229
233
|
0
|
|
230
|
-
] :
|
|
234
|
+
] : d === "-Y" ? [
|
|
235
|
+
0,
|
|
236
|
+
-1,
|
|
237
|
+
0
|
|
238
|
+
] : d === "Z" ? [
|
|
231
239
|
0,
|
|
232
240
|
0,
|
|
233
241
|
1
|
|
242
|
+
] : d === "-Z" ? [
|
|
243
|
+
0,
|
|
244
|
+
0,
|
|
245
|
+
-1
|
|
234
246
|
] : [
|
|
235
247
|
1,
|
|
236
248
|
0,
|
|
237
249
|
0
|
|
238
|
-
],
|
|
250
|
+
]), _ = r === "revolute" ? Math.PI / 180 : 1, y = m(t.attrs["physics:lowerLimit"]), b = m(t.attrs["physics:upperLimit"]), x = r === "fixed" ? [] : v(t.attrs, r, f, _);
|
|
239
251
|
l.joint = {
|
|
240
252
|
connectedNodeName: s,
|
|
241
253
|
kind: r,
|
|
242
|
-
...r === "fixed" ? {} : { axis:
|
|
243
|
-
...
|
|
254
|
+
...r === "fixed" ? {} : { axis: f },
|
|
255
|
+
...y !== void 0 && b !== void 0 && y <= b ? { limits: [y * _, b * _] } : {},
|
|
244
256
|
enableCollision: p(t.attrs["physics:collisionEnabled"]) === !0,
|
|
245
|
-
...
|
|
257
|
+
...x.length > 0 ? { drives: x } : {}
|
|
246
258
|
};
|
|
247
259
|
}
|
|
248
260
|
return [...s.values()];
|
|
@@ -4,6 +4,8 @@ import { type PaperShellAssembly } from "@khr3/vehicles/paper-shell";
|
|
|
4
4
|
import * as THREE from "three";
|
|
5
5
|
import type { KolmoAuthoredNodePatch } from "../schema/kolmoSchema.js";
|
|
6
6
|
import type { StampToolId } from "./GateHudBar.js";
|
|
7
|
+
import type { ChopWizardTab } from "./ChopShopPanel.js";
|
|
8
|
+
import { type CarCabinConfig, type DriverSeatLayout, type ShellViewMode } from "./cabinMixamoRig.js";
|
|
7
9
|
import type { CutPartMcpRequest } from "./importerWebMcp.js";
|
|
8
10
|
import { type Step1FaceHit } from "./Step1CalibrationPlinth.js";
|
|
9
11
|
import { type GateDomain, type VehicleSubArchetype } from "./gateStore.js";
|
|
@@ -14,6 +16,7 @@ import { type GateWorldPayload } from "./universalGateBake.js";
|
|
|
14
16
|
interface CutUndoEntry {
|
|
15
17
|
readonly undo: () => void;
|
|
16
18
|
readonly axles: WheelAxle[];
|
|
19
|
+
readonly propellers: number[];
|
|
17
20
|
readonly picks: Record<number, ChopPartRole>;
|
|
18
21
|
}
|
|
19
22
|
export declare function useChopShopController(onSpawnInWorld?: (asset: GateWorldPayload) => void): {
|
|
@@ -27,6 +30,9 @@ export declare function useChopShopController(onSpawnInWorld?: (asset: GateWorld
|
|
|
27
30
|
setTurns: import("react").Dispatch<import("react").SetStateAction<OrientTurns>>;
|
|
28
31
|
axles: WheelAxle[];
|
|
29
32
|
setAxles: import("react").Dispatch<import("react").SetStateAction<WheelAxle[]>>;
|
|
33
|
+
propellerIds: number[];
|
|
34
|
+
setPropellerIds: import("react").Dispatch<import("react").SetStateAction<number[]>>;
|
|
35
|
+
propellerSet: Set<number>;
|
|
30
36
|
partPicks: Record<number, ChopPartRole>;
|
|
31
37
|
setPartPicks: import("react").Dispatch<import("react").SetStateAction<Record<number, ChopPartRole>>>;
|
|
32
38
|
wheelSource: WheelVisualSource;
|
|
@@ -43,6 +49,10 @@ export declare function useChopShopController(onSpawnInWorld?: (asset: GateWorld
|
|
|
43
49
|
setSplitCoarse: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
44
50
|
faceSelection: FaceSelection | null;
|
|
45
51
|
setFaceSelection: import("react").Dispatch<import("react").SetStateAction<FaceSelection | null>>;
|
|
52
|
+
selectedCounts: {
|
|
53
|
+
primary: number;
|
|
54
|
+
mirrored: number;
|
|
55
|
+
};
|
|
46
56
|
loopDots: {
|
|
47
57
|
islandId: number;
|
|
48
58
|
points: CutVec3[];
|
|
@@ -55,6 +65,21 @@ export declare function useChopShopController(onSpawnInWorld?: (asset: GateWorld
|
|
|
55
65
|
setHingeScrub: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
56
66
|
explodeAmount: number;
|
|
57
67
|
setExplodeAmount: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
68
|
+
wizardTab: ChopWizardTab;
|
|
69
|
+
handleChangeWizardTab: (tab: ChopWizardTab) => void;
|
|
70
|
+
shellViewMode: ShellViewMode;
|
|
71
|
+
setShellViewMode: import("react").Dispatch<import("react").SetStateAction<ShellViewMode>>;
|
|
72
|
+
cabin: CarCabinConfig;
|
|
73
|
+
cabinFit: import("./cabinMixamoRig.js").CabinFitReport;
|
|
74
|
+
carBounds: {
|
|
75
|
+
min: [number, number, number];
|
|
76
|
+
max: [number, number, number];
|
|
77
|
+
};
|
|
78
|
+
updateCabin: (patch: Partial<CarCabinConfig>) => void;
|
|
79
|
+
setCabinLayout: (layout: DriverSeatLayout) => void;
|
|
80
|
+
autoFitCabin: () => void;
|
|
81
|
+
showDriverInStep2: boolean;
|
|
82
|
+
setShowDriverInStep2: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
58
83
|
undoStack: CutUndoEntry[];
|
|
59
84
|
statusNote: string | null;
|
|
60
85
|
stampTool: StampToolId;
|
|
@@ -71,7 +96,7 @@ export declare function useChopShopController(onSpawnInWorld?: (asset: GateWorld
|
|
|
71
96
|
setProxyAssembly: import("react").Dispatch<import("react").SetStateAction<PaperShellAssembly | null>>;
|
|
72
97
|
islands: MeshIsland[];
|
|
73
98
|
wheelColors: Map<number, string>;
|
|
74
|
-
loadStarterCar: (url: string, label: string) => Promise<void>;
|
|
99
|
+
loadStarterCar: (url: string, label: string, silent?: boolean) => Promise<void>;
|
|
75
100
|
ingestFile: (file: File) => Promise<void>;
|
|
76
101
|
applyDomainDefaults: (d: GateDomain, sub: VehicleSubArchetype, proxy: boolean) => void;
|
|
77
102
|
handleBucketIsland: (id: number) => void;
|
|
@@ -91,6 +116,7 @@ export declare function useChopShopController(onSpawnInWorld?: (asset: GateWorld
|
|
|
91
116
|
}>;
|
|
92
117
|
handleStampSurface: (e: ThreeEvent<MouseEvent>) => void;
|
|
93
118
|
wheelCount: number;
|
|
119
|
+
propellerCount: number;
|
|
94
120
|
choppedCount: number;
|
|
95
121
|
unlocked: boolean;
|
|
96
122
|
activeRoleColor: string;
|