@adatechnology/game-interactables-household 0.8.1 → 0.8.3

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.
@@ -44,7 +44,7 @@ var GameInteractablesHousehold = (() => {
44
44
  var positive = (n) => finite(n) && n > 0;
45
45
  var vec3 = (v) => Array.isArray(v) && v.length === 3 && v.every(finite);
46
46
  var nonNegative = (n) => n === void 0 || finite(n) && n >= 0;
47
- var FACES = ["both", "+", "-"];
47
+ var FACES = ["both", "+", "-", "all"];
48
48
  var BONDS = ["running", "stack"];
49
49
  var checkStagedFields = (p, label, materials, problems) => {
50
50
  const known = (m, what) => {
@@ -19784,6 +19784,7 @@ var GameInteractablesHousehold = (() => {
19784
19784
  var door = (material, joint = "hinge", piece2 = "door") => ({ material, joint, piece: piece2 });
19785
19785
  var drawer = { material: "mdf", joint: "slide", piece: "drawer" };
19786
19786
  var knob = { material: "plastic", joint: "clip", piece: "knob" };
19787
+ var mainLever = { material: "plastic", joint: "clip", piece: "breaker" };
19787
19788
  var tap = { material: "steel", joint: "screw", piece: "handle" };
19788
19789
  var mdfBody = { material: "mdf", joint: "screw" };
19789
19790
  var cabinet = { body: mdfBody, parts: [[/^drawer/, drawer], [/^door/, door("mdf")]] };
@@ -19818,19 +19819,23 @@ var GameInteractablesHousehold = (() => {
19818
19819
  wall_socket: { body: { material: "plastic", joint: "screw" }, parts: [] },
19819
19820
  wall_switch: { body: { material: "plastic", joint: "screw" }, parts: [["rocker", { material: "plastic", joint: "clip", piece: "rocker" }]] },
19820
19821
  // a cast concrete pole (NBR 8451: CA-50 bars in the concrete), its segments held by the bars; the meter box, the cross arm and the bracket are bolted to it
19821
- service_entrance: { body: { material: "concrete", joint: "rebar", reinforcement: POLE_CAGE }, parts: [["meter_door", door("steel")]] },
19822
+ service_entrance: { body: { material: "concrete", joint: "rebar", reinforcement: POLE_CAGE }, parts: [["meter_door", door("steel")], ["main_breaker", mainLever]] },
19822
19823
  conduit_run: { body: { material: "plastic", joint: "clip" }, parts: [] },
19823
- service_mast: { body: { material: "steel", joint: "clip" }, parts: [] },
19824
+ // one galvanised pipe bent over the top: its stretches are the same steel (welded, not clipped: the clamps hold it to the wall, not to itself)
19825
+ service_mast: { body: { material: "steel", joint: "weld" }, parts: [] },
19824
19826
  electrical_panel: {
19825
19827
  body: { material: "steel", joint: "screw" },
19826
19828
  parts: [[/^breaker/, { material: "plastic", joint: "clip", piece: "breaker" }], ["door", door("steel")]]
19827
19829
  },
19828
- power_meter: { body: { material: "plastic", joint: "screw" }, parts: [["door", door("plastic")]] },
19830
+ power_meter: { body: { material: "plastic", joint: "screw" }, parts: [["door", door("plastic")], ["main_breaker", mainLever]] },
19829
19831
  tv: { body: { material: "plastic", joint: "screw" }, parts: [["power", { material: "plastic", joint: "clip", piece: "button" }]] },
19830
19832
  microwave: { body: { material: "steel", joint: "screw" }, parts: [["door", door("steel")], ["dial", knob]] },
19831
19833
  washing_machine: { body: { material: "steel", joint: "screw" }, parts: [["dial", knob], ["door", door("tempered_glass")]] },
19832
19834
  sofa: { body: upholstery, parts: [] },
19833
19835
  armchair: { body: upholstery, parts: [] },
19836
+ pouf: { body: upholstery, parts: [] },
19837
+ box_bed: { body: upholstery, parts: [] },
19838
+ upholstered_chair: { body: upholstery, parts: [] },
19834
19839
  dining_chair: { body: { material: "wood_hard", joint: "screw" }, parts: [] },
19835
19840
  bed_double: { body: { material: "wood_soft", joint: "screw" }, parts: [] },
19836
19841
  bed_single: { body: { material: "wood_soft", joint: "screw" }, parts: [] },
@@ -21046,9 +21051,12 @@ var GameInteractablesHousehold = (() => {
21046
21051
  "type.washing_machine": "Washing machine",
21047
21052
  "type.sofa": "Sofa",
21048
21053
  "type.armchair": "Armchair",
21054
+ "type.pouf": "Pouf",
21049
21055
  "type.dining_chair": "Dining chair",
21056
+ "type.upholstered_chair": "Upholstered chair",
21050
21057
  "type.bed_double": "Double bed",
21051
21058
  "type.bed_single": "Single bed",
21059
+ "type.box_bed": "Box bed",
21052
21060
  "type.bench": "Bench",
21053
21061
  "type.blinds": "Blinds",
21054
21062
  "type.curtain": "Curtain",
@@ -21201,6 +21209,13 @@ var GameInteractablesHousehold = (() => {
21201
21209
  "prompt.breaker.off": "Switch on {circuit}",
21202
21210
  "prompt.breaker.off.verb": "Switch on",
21203
21211
  "prompt.breaker.off.object": "{circuit}",
21212
+ "prompt.main_breaker": "Main breaker",
21213
+ "prompt.main_breaker.on": "Switch off the main breaker",
21214
+ "prompt.main_breaker.on.verb": "Switch off",
21215
+ "prompt.main_breaker.on.object": "the main breaker",
21216
+ "prompt.main_breaker.off": "Switch on the main breaker",
21217
+ "prompt.main_breaker.off.verb": "Switch on",
21218
+ "prompt.main_breaker.off.object": "the main breaker",
21204
21219
  "type.bunk_bed": "Bunk bed",
21205
21220
  "type.wood_stove": "Wood stove",
21206
21221
  "type.fireplace": "Fireplace",
@@ -21296,9 +21311,12 @@ var GameInteractablesHousehold = (() => {
21296
21311
  "type.washing_machine": "M\xE1quina de lavar",
21297
21312
  "type.sofa": "Sof\xE1",
21298
21313
  "type.armchair": "Poltrona",
21314
+ "type.pouf": "Pufe",
21299
21315
  "type.dining_chair": "Cadeira",
21316
+ "type.upholstered_chair": "Cadeira estofada",
21300
21317
  "type.bed_double": "Cama de casal",
21301
21318
  "type.bed_single": "Cama de solteiro",
21319
+ "type.box_bed": "Cama box",
21302
21320
  "type.bench": "Banco",
21303
21321
  "type.blinds": "Persiana",
21304
21322
  "type.curtain": "Cortina",
@@ -21451,6 +21469,13 @@ var GameInteractablesHousehold = (() => {
21451
21469
  "prompt.breaker.off": "Ligar {circuit}",
21452
21470
  "prompt.breaker.off.verb": "Ligar",
21453
21471
  "prompt.breaker.off.object": "{circuit}",
21472
+ "prompt.main_breaker": "Disjuntor geral",
21473
+ "prompt.main_breaker.on": "Desligar o disjuntor geral",
21474
+ "prompt.main_breaker.on.verb": "Desligar",
21475
+ "prompt.main_breaker.on.object": "o disjuntor geral",
21476
+ "prompt.main_breaker.off": "Ligar o disjuntor geral",
21477
+ "prompt.main_breaker.off.verb": "Ligar",
21478
+ "prompt.main_breaker.off.object": "o disjuntor geral",
21454
21479
  "type.bunk_bed": "Beliche",
21455
21480
  "type.wood_stove": "Fog\xE3o a lenha",
21456
21481
  "type.fireplace": "Lareira",
@@ -21907,6 +21932,17 @@ var GameInteractablesHousehold = (() => {
21907
21932
  pushable: true,
21908
21933
  massKg: 25
21909
21934
  },
21935
+ {
21936
+ id: "pouf",
21937
+ group: "seating",
21938
+ w: 0.45,
21939
+ d: 0.45,
21940
+ h: 0.42,
21941
+ y: 0,
21942
+ solid: true,
21943
+ pushable: true,
21944
+ massKg: 4
21945
+ },
21910
21946
  {
21911
21947
  id: "dining_chair",
21912
21948
  group: "seating",
@@ -21917,6 +21953,16 @@ var GameInteractablesHousehold = (() => {
21917
21953
  solid: true,
21918
21954
  massKg: 5
21919
21955
  },
21956
+ {
21957
+ id: "upholstered_chair",
21958
+ group: "seating",
21959
+ w: 0.46,
21960
+ d: 0.52,
21961
+ h: 0.92,
21962
+ y: 0,
21963
+ solid: true,
21964
+ massKg: 6
21965
+ },
21920
21966
  {
21921
21967
  id: "bed_double",
21922
21968
  group: "seating",
@@ -21939,6 +21985,17 @@ var GameInteractablesHousehold = (() => {
21939
21985
  pushable: true,
21940
21986
  massKg: 30
21941
21987
  },
21988
+ {
21989
+ id: "box_bed",
21990
+ group: "seating",
21991
+ w: 1.38,
21992
+ d: 1.88,
21993
+ h: 0.72,
21994
+ y: 0,
21995
+ solid: true,
21996
+ pushable: true,
21997
+ massKg: 75
21998
+ },
21942
21999
  {
21943
22000
  id: "bench",
21944
22001
  group: "seating",
@@ -22419,7 +22476,7 @@ var GameInteractablesHousehold = (() => {
22419
22476
  const t = i / 14;
22420
22477
  gp.push([round3(g0[0] + (gh[0] - g0[0]) * t), round3(g0[1] + (gh[1] - g0[1]) * t - (c.M.sag ?? 0.5) * 4 * t * (1 - t)), round3(g0[2] + (gh[2] - g0[2]) * t)]);
22421
22478
  }
22422
- c.add("wires", { id: "drop", kind: "drop", radius: 6e-3, points: gp });
22479
+ c.add("wires", { id: "drop", kind: "drop", radius: 6e-3, points: gp, span: { material: "copper", section: 8e-6 } });
22423
22480
  c.add("wires", { id: "hook", kind: "cable", radius: 4e-3, points: [[0.22, round3(ay + 0.17), 0], [0.12, round3(ay + 0.06), 0.05], [round3(g0[0]), round3(g0[1]), 0]] });
22424
22481
  c.spec.colliders = [];
22425
22482
  c.collider("pole", -0.15, 0, -0.15, 0.15, h, 0.15);
@@ -22439,6 +22496,7 @@ var GameInteractablesHousehold = (() => {
22439
22496
  c.rod("plain", "z", 0, my + 0.28, mz + 0.045, 0.07, 4e-3, 15263968);
22440
22497
  for (let i = 0; i < 4; i++) c.b("plain", -0.06 + i * 0.03, my + 0.34, mz + 0.047, -0.04 + i * 0.03, my + 0.37, mz + 0.05, 2763306);
22441
22498
  c.b("plain", -0.06, my + 0.12, mz + 0.03, 0.06, my + 0.2, mz + 0.045, 4868686);
22499
+ mainBreaker(c, [0, my + 0.16, mz + 0.045], "meter_door");
22442
22500
  c.part(
22443
22501
  "meter_door",
22444
22502
  [-mx, my + 0.25, mz + 0.062],
@@ -22459,7 +22517,7 @@ var GameInteractablesHousehold = (() => {
22459
22517
  const t = i / n;
22460
22518
  pts.push([round3(A[0] + (house[0] - A[0]) * t), round3(A[1] + (house[1] - A[1]) * t - sag * 4 * t * (1 - t)), round3(A[2] + (house[2] - A[2]) * t)]);
22461
22519
  }
22462
- c.add("wires", { id: "drop", kind: "drop", radius: 8e-3, points: pts });
22520
+ c.add("wires", { id: "drop", kind: "drop", radius: 8e-3, points: pts, span: { material: "aluminium", section: 2e-5 } });
22463
22521
  c.add("wires", { id: "riser", kind: "conduit", radius: 0.014, points: [[0.05, my + 0.5, mz], [0.05, my + 0.7, 0.14], [0.05, round3(ay + 0.05), 0.115], [0, round3(A[1]), 0]] });
22464
22522
  c.add("wires", { id: "earth", kind: "cable", radius: 6e-3, points: [[-0.1, my, mz], [-0.16, 0.9, 0.16], [-0.16, 0.05, 0.18]] });
22465
22523
  c.cyl("metal", -0.16, 1e-3, 0.18, 0.01, 0.3, 12088115, "cyl6");
@@ -22681,6 +22739,19 @@ var GameInteractablesHousehold = (() => {
22681
22739
  });
22682
22740
  c.spec.colliders = [];
22683
22741
  }
22742
+ function mainBreaker(c, at, door2) {
22743
+ const [x, y, z] = at;
22744
+ c.part(
22745
+ "main_breaker",
22746
+ [x, y, z],
22747
+ { kind: "rocker", axis: [1, 0, 0], angle: 0.5 },
22748
+ () => {
22749
+ c.b("plain", x - 0.012, y - 0.022, z, x + 0.012, y + 0.022, z + 0.014, 13122090);
22750
+ },
22751
+ { t0: 1, requires: door2, at: false, noSweep: true }
22752
+ );
22753
+ c.interact("toggle_main_breaker", [round3(x), round3(y), round3(z + 0.03)], { do: "toggle_main", part: "main_breaker" }, "prompt.main_breaker", 1.4);
22754
+ }
22684
22755
  function powerMeter(c) {
22685
22756
  const { hw, hd, h, y0 } = c;
22686
22757
  const body = c.main(9080466);
@@ -22696,6 +22767,8 @@ var GameInteractablesHousehold = (() => {
22696
22767
  for (let i = 0; i < 5; i++) c.b("plain", cx - 0.05 + i * 0.02, cy + 0.025, sh.iz0 + 0.048, cx - 0.034 + i * 0.02, cy + 0.05, sh.iz0 + 0.05, 2763306);
22697
22768
  c.rod("plain", "z", cx, cy - 0.02, sh.iz0 + 0.049, 0.026, 2e-3, 14209216);
22698
22769
  c.b("plain", cx - 0.05, y0 + 0.025, sh.iz0, cx + 0.05, y0 + 0.07, sh.iz0 + 0.04, 4868686);
22770
+ c.b("plain", cx + 0.055, y0 + 0.025, sh.iz0, cx + 0.085, y0 + 0.075, sh.iz0 + 0.03, 4868686);
22771
+ mainBreaker(c, [cx + 0.07, y0 + 0.05, sh.iz0 + 0.03], "door");
22699
22772
  const px = -hw + 4e-3;
22700
22773
  const f = 0.028;
22701
22774
  const wy0 = y0 + 0.02;
@@ -23069,6 +23142,9 @@ var GameInteractablesHousehold = (() => {
23069
23142
  c.spec.colliders = [];
23070
23143
  c.collider("wall_back", -hw, 0, -hd, hw, h, -hd + 0.03);
23071
23144
  c.collider("wall_left", -hw, 0, -hd + 0.03, -hw + 0.03, h, hd - 0.05);
23145
+ c.collider("glass_side", hw - 0.032, 0, -hd + 0.03, hw, h, hd);
23146
+ if (hingeX - (-hw + 0.03) > 0.02) c.collider("glass_fixed", -hw + 0.03, 0, zFront - 4e-3, hingeX - 4e-3, h, zFront + 4e-3);
23147
+ c.add("colliders", { id: "glass_door", center: [round3((hingeX + dx1) / 2), round3(h / 2), round3(zFront)], half: [round3(dw / 2), round3(h / 2), 4e-3], part: "glass_door", offWhenOpen: true });
23072
23148
  }
23073
23149
  var FLUSH_TRAVEL = 8e-3;
23074
23150
  var BOWL_Z = 0.12;
@@ -23134,8 +23210,205 @@ var GameInteractablesHousehold = (() => {
23134
23210
  c.add("damage", { target: "self", kind: "plastic", hp: 60 });
23135
23211
  }
23136
23212
 
23137
- // src/builders/seating.ts
23213
+ // src/builders/upholstery.ts
23214
+ var COVER = 6e-3;
23215
+ var BOARD = 0.03;
23216
+ var RAIL = 0.04;
23217
+ var SPRING_WIDTH = 9e-3;
23218
+ var SPRING_THICK = 3e-3;
23219
+ function sideBox(c, sign, material, a, b, y0, z0, y1, z1, color) {
23220
+ c.b(material, sign < 0 ? -b : a, y0, z0, sign < 0 ? -a : b, y1, z1, color);
23221
+ }
23222
+ function seatBase(c, f, k) {
23223
+ const { hw, hd } = c;
23224
+ const { legH, baseTop, armW, seatCount } = f;
23225
+ const ix0 = -hw + armW;
23226
+ const ix1 = hw - armW;
23227
+ const zFront = hd - COVER;
23228
+ const zBack = -hd + COVER;
23229
+ c.b("wood", -hw + COVER, legH, zFront - RAIL, hw - COVER, baseTop, zFront, k.wood);
23230
+ c.b("wood", -hw + COVER, legH, zBack, hw - COVER, baseTop, zBack + RAIL, k.wood);
23231
+ for (const s of [-1, 1]) sideBox(c, s, "wood", hw - COVER - RAIL, hw - COVER, legH, zBack + RAIL, baseTop, zFront - RAIL, shade(k.wood, 0.92));
23232
+ for (let i = 1; i < seatCount; i++) {
23233
+ const x = ix0 + (ix1 - ix0) * i / seatCount;
23234
+ c.b("wood", x - RAIL / 2, legH, zBack + RAIL, x + RAIL / 2, baseTop, zFront - RAIL, shade(k.wood, 0.85));
23235
+ }
23236
+ const strips = seatCount === 1 ? 4 : 6;
23237
+ for (let i = 0; i < strips; i++) {
23238
+ const x = ix0 + 0.03 + i * (ix1 - ix0 - 0.06 - SPRING_WIDTH) / (strips - 1);
23239
+ c.b("metal", x, baseTop, zBack + 0.01, x + SPRING_WIDTH, baseTop + SPRING_THICK, zFront - 0.01, 4869200);
23240
+ }
23241
+ c.b("fabric", -hw, legH, zFront, hw, baseTop, hd, k.dark);
23242
+ c.b("fabric", -hw, legH, -hd, hw, baseTop, zBack, k.dark);
23243
+ for (const s of [-1, 1]) sideBox(c, s, "fabric", hw - COVER, hw, legH, zBack, baseTop, zFront, k.dark);
23244
+ }
23245
+ function backRest(c, f, k) {
23246
+ const { hw, hd } = c;
23247
+ const { baseTop, backDepth, top } = f;
23248
+ const z0 = -hd + COVER;
23249
+ const zPad = -hd + backDepth;
23250
+ for (const s of [-1, 1]) sideBox(c, s, "wood", hw - COVER - RAIL, hw - COVER, baseTop, z0, top, z0 + RAIL, k.wood);
23251
+ c.b("wood", -hw + COVER + RAIL, top - RAIL, z0, hw - COVER - RAIL, top, z0 + RAIL, k.wood);
23252
+ c.b("wood", -hw + COVER + RAIL, baseTop + 0.12, z0, hw - COVER - RAIL, baseTop + 0.12 + RAIL, z0 + RAIL, shade(k.wood, 0.9));
23253
+ c.b("foam", -hw + COVER, baseTop + SPRING_THICK, z0 + RAIL, hw - COVER, top, zPad, k.fab);
23254
+ c.b("fabric", -hw, baseTop, -hd, hw, top, z0, k.dark);
23255
+ for (const s of [-1, 1]) sideBox(c, s, "fabric", hw - COVER, hw, baseTop, z0, top, zPad, k.fab);
23256
+ }
23257
+ function armFrame(c, f, sign, k) {
23258
+ const { hw, hd } = c;
23259
+ const { baseTop, armW, backDepth } = f;
23260
+ const z0 = -hd + backDepth;
23261
+ const z1 = hd - COVER;
23262
+ const frameTop = f.armTop - armW;
23263
+ const coverTop = f.armTop - armW / 2;
23264
+ const innerEdge = hw - armW;
23265
+ sideBox(c, sign, "wood", hw - COVER - BOARD, hw - COVER, baseTop, z0, frameTop, z1 - BOARD, k.wood);
23266
+ sideBox(c, sign, "wood", innerEdge + COVER, innerEdge + COVER + BOARD, baseTop, z0, frameTop, z1 - BOARD, k.wood);
23267
+ sideBox(c, sign, "wood", innerEdge + COVER, hw - COVER, baseTop, z1 - BOARD, frameTop, z1, shade(k.wood, 0.92));
23268
+ sideBox(c, sign, "wood", innerEdge + COVER + BOARD, hw - COVER - BOARD, frameTop - BOARD, z0, frameTop, z1 - BOARD, shade(k.wood, 0.85));
23269
+ sideBox(c, sign, "fabric", hw - COVER, hw, baseTop, z0, coverTop, z1, k.fab);
23270
+ sideBox(c, sign, "fabric", innerEdge, innerEdge + COVER, baseTop, z0, coverTop, z1, k.light);
23271
+ sideBox(c, sign, "fabric", innerEdge, hw, baseTop, z1, coverTop, z1 + COVER, k.fab);
23272
+ }
23273
+ function sofaStructure(c, f, k) {
23274
+ seatBase(c, f, k);
23275
+ backRest(c, f, k);
23276
+ for (const s of [-1, 1]) armFrame(c, f, s, k);
23277
+ }
23278
+ function bedBase(c, slatColour, frameTop, matTop) {
23279
+ const { hw, hd } = c;
23280
+ const x0 = -hw + 0.05;
23281
+ const x1 = hw - 0.05;
23282
+ const z0 = -hd + 0.06;
23283
+ const z1 = hd - 0.05;
23284
+ const slats = Math.round((z1 - z0) / 0.12);
23285
+ const pitch = (z1 - z0 - 0.07) / (slats - 1);
23286
+ for (let i = 0; i < slats; i++) c.b("wood", x0, frameTop - 0.02, z0 + i * pitch, x1, frameTop, z0 + i * pitch + 0.07, slatColour);
23287
+ c.b("wood", -0.03, frameTop - 0.06, z0, 0.03, frameTop - 0.02, z1, shade(slatColour, 0.8));
23288
+ mattress(c, { x0: -hw + 0.057, x1: hw - 0.057, z0: -hd + 0.065, z1: hd - 0.055, bottom: frameTop, top: matTop });
23289
+ }
23290
+ function mattress(c, m) {
23291
+ const { x0: m0, x1: m1, z0: n0, z1: n1, bottom: frameTop, top: matTop } = m;
23292
+ c.b("foam", m0 + COVER, frameTop + COVER, n0 + COVER, m1 - COVER, matTop - COVER, n1 - COVER, 15920868);
23293
+ c.b("fabric", m0, frameTop, n0, m1, frameTop + COVER, n1, 14210248);
23294
+ c.b("fabric", m0, matTop - COVER, n0, m1, matTop, n1, 15657696);
23295
+ c.b("fabric", m0, frameTop + COVER, n0, m0 + COVER, matTop - COVER, n1, 15657696);
23296
+ c.b("fabric", m1 - COVER, frameTop + COVER, n0, m1, matTop - COVER, n1, 15657696);
23297
+ c.b("fabric", m0 + COVER, frameTop + COVER, n0, m1 - COVER, matTop - COVER, n0 + COVER, 15657696);
23298
+ c.b("fabric", m0 + COVER, frameTop + COVER, n1 - COVER, m1 - COVER, matTop - COVER, n1, 15657696);
23299
+ c.b("fabric", m0 - 3e-3, frameTop + 0.12, n0 - 3e-3, m1 + 3e-3, frameTop + 0.126, n1 + 3e-3, 14210248);
23300
+ }
23301
+
23302
+ // src/builders/upholstered.ts
23138
23303
  var FACE = 0;
23304
+ var RAIL2 = 0.04;
23305
+ function pouf(c) {
23306
+ const { hw, hd } = c;
23307
+ const wood = c.wood(9071176);
23308
+ const fab = c.fabric(8018538);
23309
+ const dark = shade(fab, 0.8);
23310
+ const legH = 0.06;
23311
+ const wall = 0.018;
23312
+ const deckTop = 0.278;
23313
+ const foamTop = 0.404;
23314
+ const top = 0.41;
23315
+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("wood", sx < 0 ? -hw + COVER : hw - COVER - 0.05, 0, sz < 0 ? -hd + COVER : hd - COVER - 0.05, sx < 0 ? -hw + COVER + 0.05 : hw - COVER, legH, sz < 0 ? -hd + COVER + 0.05 : hd - COVER, 3811870);
23316
+ c.b("wood", -hw + COVER, legH, hd - COVER - wall, hw - COVER, deckTop - wall, hd - COVER, wood);
23317
+ c.b("wood", -hw + COVER, legH, -hd + COVER, hw - COVER, deckTop - wall, -hd + COVER + wall, wood);
23318
+ for (const s of [-1, 1]) c.b("wood", s < 0 ? -hw + COVER : hw - COVER - wall, legH, -hd + COVER + wall, s < 0 ? -hw + COVER + wall : hw - COVER, deckTop - wall, hd - COVER - wall, shade(wood, 0.92));
23319
+ c.b("wood", -hw + COVER, deckTop - wall, -hd + COVER, hw - COVER, deckTop, hd - COVER, shade(wood, 0.85));
23320
+ c.b("foam", -hw + COVER, deckTop, -hd + COVER, hw - COVER, foamTop, hd - COVER, fab);
23321
+ c.b("fabric", -hw, legH, hd - COVER, hw, foamTop, hd, dark);
23322
+ c.b("fabric", -hw, legH, -hd, hw, foamTop, -hd + COVER, dark);
23323
+ for (const s of [-1, 1]) c.b("fabric", s < 0 ? -hw : hw - COVER, legH, -hd + COVER, s < 0 ? -hw + COVER : hw, foamTop, hd - COVER, dark);
23324
+ c.b("fabric", -hw, foamTop, -hd, hw, top, hd, mix(fab, 16777215, 0.08));
23325
+ c.add("seats", { id: "seat", pose: "sit", pos: [0, round3(foamTop), 0], ry: FACE, exit: [0, 0, round3(hd + 0.45)] });
23326
+ c.interact("sit", [0, top + 0.3, 0.1], { do: "sit", seat: "seat" }, "prompt.sit", 1.5);
23327
+ }
23328
+ function boxBase(c, legH, baseTop) {
23329
+ const { hw, hd } = c;
23330
+ const wood = 9071176;
23331
+ const dark = 4870232;
23332
+ const zFront = hd - COVER;
23333
+ const zBack = -hd + COVER;
23334
+ c.b("wood", -hw + COVER, legH, zFront - RAIL2, hw - COVER, baseTop, zFront, wood);
23335
+ c.b("wood", -hw + COVER, legH, zBack, hw - COVER, baseTop, zBack + RAIL2, wood);
23336
+ c.b("wood", -hw + COVER + RAIL2, legH, -RAIL2 / 2, hw - COVER - RAIL2, baseTop, RAIL2 / 2, shade(wood, 0.85));
23337
+ for (const s of [-1, 1]) c.b("wood", s < 0 ? -hw + COVER : hw - COVER - RAIL2, legH, zBack + RAIL2, s < 0 ? -hw + COVER + RAIL2 : hw - COVER, baseTop, zFront - RAIL2, shade(wood, 0.92));
23338
+ for (const x of [-hw + COVER + RAIL2, hw - COVER - RAIL2 - 0.05, -0.025]) for (const z of [zBack, zFront - 0.05]) c.b("wood", x, 0, z, x + 0.05, legH, z + 0.05, 3811870);
23339
+ const strips = 11;
23340
+ const x0 = -hw + COVER + RAIL2 + 0.02;
23341
+ const x1 = hw - COVER - RAIL2 - 0.02 - SPRING_WIDTH;
23342
+ for (let i = 0; i < strips; i++) {
23343
+ const x = x0 + i * (x1 - x0) / (strips - 1);
23344
+ c.b("metal", x, baseTop, zBack + 0.01, x + SPRING_WIDTH, baseTop + SPRING_THICK, zFront - 0.01, 4869200);
23345
+ }
23346
+ c.b("fabric", -hw, legH, zFront, hw, baseTop, hd, dark);
23347
+ c.b("fabric", -hw, legH, -hd, hw, baseTop, zBack, dark);
23348
+ for (const s of [-1, 1]) c.b("fabric", s < 0 ? -hw : hw - COVER, legH, zBack, s < 0 ? -hw + COVER : hw, baseTop, zFront, dark);
23349
+ }
23350
+ function boxBed(c) {
23351
+ const { hw, hd } = c;
23352
+ const legH = 0.05;
23353
+ const baseTop = 0.35;
23354
+ const matBottom = baseTop + SPRING_THICK;
23355
+ const matTop = matBottom + 0.22;
23356
+ boxBase(c, legH, baseTop);
23357
+ mattress(c, { x0: -hw + 0.02, x1: hw - 0.02, z0: -hd + 0.02, z1: hd - 0.02, bottom: matBottom, top: matTop });
23358
+ const pw = (c.w - 0.14) / 2;
23359
+ for (let i = 0; i < 2; i++) {
23360
+ const cx = -hw + 0.07 + (i + 0.5) * pw;
23361
+ c.b("foam", cx - pw / 2 + 0.03, matTop, -hd + 0.09, cx + pw / 2 - 0.03, matTop + 0.13, -hd + 0.5, 16184558, 0, 0.08);
23362
+ const id = `lie_${i + 1}`;
23363
+ c.add("seats", { id, pose: "lie", pos: [round3(cx), round3(matTop), round3(-hd + 0.95)], ry: FACE, eye: 0.26, exit: [round3((i === 0 ? -1 : 1) * (hw + 0.5)), 0, round3(-hd + 1.1)] });
23364
+ c.interact(`lie_${id}`, [round3(cx), round3(matTop + 0.3), round3(-hd + 0.95)], { do: "sit", seat: id }, "prompt.lie", 1.8);
23365
+ }
23366
+ }
23367
+ function upholsteredChair(c) {
23368
+ const { hw, hd, h } = c;
23369
+ const wood = c.wood(8018490);
23370
+ const fab = c.fabric(9075306);
23371
+ const dark = shade(fab, 0.85);
23372
+ const leg = 0.04;
23373
+ const boardBottom = 0.382;
23374
+ const boardTop = 0.4;
23375
+ const padTop = 0.454;
23376
+ const seatTop = 0.46;
23377
+ for (const sx of [-1, 1]) {
23378
+ const x0 = sx < 0 ? -hw : hw - leg;
23379
+ c.b("wood", x0, 0, hd - leg, x0 + leg, boardBottom, hd, wood);
23380
+ c.b("wood", x0, 0, -hd, x0 + leg, h, -hd + leg, shade(wood, 0.9));
23381
+ }
23382
+ c.b("wood", -hw + leg, boardBottom - 0.06, hd - leg + 0.01, hw - leg, boardBottom, hd - 0.01, shade(wood, 0.85));
23383
+ c.b("wood", -hw + leg, boardBottom - 0.06, -hd + 0.01, hw - leg, boardBottom, -hd + leg - 0.01, shade(wood, 0.85));
23384
+ for (const sx of [-1, 1]) c.b("wood", sx < 0 ? -hw + 0.01 : hw - leg + 0.01, boardBottom - 0.06, -hd + leg, sx < 0 ? -hw + leg - 0.01 : hw - 0.01, boardBottom, hd - leg, shade(wood, 0.8));
23385
+ c.b("wood", -hw + 0.01, boardBottom, -hd + leg, hw - 0.01, boardTop, hd - 0.01, wood);
23386
+ const sx0 = -hw + 0.012;
23387
+ const sx1 = hw - 0.012;
23388
+ const sz0 = -hd + leg + 5e-3;
23389
+ const sz1 = hd - 0.012;
23390
+ c.b("foam", sx0 + COVER, boardTop, sz0 + COVER, sx1 - COVER, padTop, sz1 - COVER, fab);
23391
+ c.b("fabric", sx0, boardTop, sz1 - COVER, sx1, padTop, sz1, dark);
23392
+ c.b("fabric", sx0, boardTop, sz0, sx1, padTop, sz0 + COVER, dark);
23393
+ for (const s of [-1, 1]) c.b("fabric", s < 0 ? sx0 : sx1 - COVER, boardTop, sz0 + COVER, s < 0 ? sx0 + COVER : sx1, padTop, sz1 - COVER, dark);
23394
+ c.b("fabric", sx0, padTop, sz0, sx1, seatTop, sz1, mix(fab, 16777215, 0.08));
23395
+ const bx0 = -hw + leg;
23396
+ const bx1 = hw - leg;
23397
+ c.b("wood", bx0, h - 0.08, -hd + 5e-3, bx1, h, -hd + leg - 5e-3, wood);
23398
+ c.b("wood", bx0, 0.5, -hd + 8e-3, bx1, h - 0.08, -hd + 0.02, shade(wood, 1.05));
23399
+ const pz0 = -hd + 0.02;
23400
+ const pz1 = -hd + 0.064;
23401
+ c.b("foam", bx0 + COVER, 0.5 + COVER, pz0, bx1 - COVER, h - 0.08 - COVER, pz1, fab);
23402
+ c.b("fabric", bx0 + COVER, 0.5 + COVER, pz1, bx1 - COVER, h - 0.08 - COVER, pz1 + COVER, dark);
23403
+ c.b("fabric", bx0 + COVER, 0.5, pz0, bx1 - COVER, 0.5 + COVER, pz1 + COVER, dark);
23404
+ c.b("fabric", bx0 + COVER, h - 0.08 - COVER, pz0, bx1 - COVER, h - 0.08, pz1 + COVER, dark);
23405
+ for (const s of [-1, 1]) c.b("fabric", s < 0 ? bx0 : bx1 - COVER, 0.5, pz0, s < 0 ? bx0 + COVER : bx1, h - 0.08, pz1 + COVER, dark);
23406
+ c.add("seats", { id: "seat", pose: "sit", pos: [0, round3(seatTop + 0.04), 0.04], ry: FACE, exit: [0, 0, round3(hd + 0.45)] });
23407
+ c.interact("sit", [0, seatTop + 0.3, 0.1], { do: "sit", seat: "seat" }, "prompt.sit", 1.5);
23408
+ }
23409
+
23410
+ // src/builders/seating.ts
23411
+ var FACE2 = 0;
23139
23412
  function sofaLike(c, n, lie) {
23140
23413
  const { hw, hd, h } = c;
23141
23414
  const fab = c.fabric(7041144);
@@ -23145,18 +23418,16 @@ var GameInteractablesHousehold = (() => {
23145
23418
  const legH = 0.12;
23146
23419
  const seatY = 0.44;
23147
23420
  const baseTop = 0.28;
23148
- for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("wood", sx * (hw - 0.07) - 0.025, 0, sz * (hd - 0.07) - 0.025, sx * (hw - 0.07) + 0.025, legH, sz * (hd - 0.07) + 0.025, 3811870);
23149
- c.b("fabric", -hw, legH, -hd, hw, baseTop, hd, dark);
23150
- c.b("fabric", -hw + armW, baseTop - 0.01, hd - 0.02, hw - armW, baseTop + 0.02, hd + 4e-3, shade(fab, 0.7));
23151
23421
  const bt = 0.2;
23152
- c.b("fabric", -hw, baseTop, -hd, hw, h - 0.07 - bt / 2, -hd + bt, fab);
23153
- c.rod("fabric", "x", 0, h - 0.07 - bt / 2, -hd + bt / 2, bt / 2, c.w - 4e-3, fab);
23154
23422
  const armTop = 0.62;
23423
+ const backTop = h - 0.07 - bt / 2;
23424
+ const wood = 5914672;
23425
+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("wood", sx * (hw - 0.07) - 0.025, 0, sz * (hd - 0.07) - 0.025, sx * (hw - 0.07) + 0.025, legH, sz * (hd - 0.07) + 0.025, 3811870);
23426
+ sofaStructure(c, { legH, baseTop, armW, backDepth: bt, armTop, top: backTop, seatCount: n }, { wood, fab, dark, light });
23427
+ c.rod("fabric", "x", 0, backTop, -hd + bt / 2, bt / 2, c.w - 4e-3, fab);
23155
23428
  for (const s of [-1, 1]) {
23156
23429
  const x0 = s < 0 ? -hw : hw - armW;
23157
- c.b("fabric", s < 0 ? x0 : x0 + 6e-3, baseTop, -hd + bt, s < 0 ? x0 + armW - 6e-3 : x0 + armW, armTop - armW / 2, hd, fab);
23158
23430
  c.rod("fabric", "z", x0 + armW / 2, armTop - armW / 2, (-hd + bt + hd) / 2, armW / 2, hd - (-hd + bt) - 4e-3, fab);
23159
- c.b("fabric", s < 0 ? x0 + armW - 0.012 : x0, baseTop + 0.02, -hd + bt + 3e-3, s < 0 ? x0 + armW : x0 + 0.012, armTop - armW / 2 + 3e-3, hd - 0.02, light);
23160
23431
  }
23161
23432
  const ix0 = -hw + armW;
23162
23433
  const ix1 = hw - armW;
@@ -23168,12 +23439,12 @@ var GameInteractablesHousehold = (() => {
23168
23439
  const x0 = ix0 + i * cw + 4e-3;
23169
23440
  const x1 = ix0 + (i + 1) * cw - 4e-3;
23170
23441
  const col = i % 2 === 0 ? light : fab;
23171
- c.b("fabric", x0, baseTop + 0.02, sz0 + 0.02, x1, seatY, sz1, col);
23442
+ c.b("foam", x0, baseTop + SPRING_THICK, sz0 + 0.02, x1, seatY, sz1, col);
23172
23443
  c.b("fabric", x0 + 0.01, seatY, sz0 + 0.03, x1 - 0.01, seatY + 0.025, sz1 - 0.01, mix(col, 16777215, 0.06));
23173
23444
  c.b("fabric", x0 + 3e-3, baseTop + 0.025, sz1 - 6e-3, x1 - 3e-3, seatY + 0.02, sz1 + 3e-3, shade(col, 0.75));
23174
- c.b("fabric", x0 + 5e-3, seatY + 0.02, sz0 + 0.02, x1 - 5e-3, h - 0.12, sz0 + 0.19, col, 0, -0.18);
23445
+ c.b("foam", x0 + 5e-3, seatY + 0.02, sz0 + 0.02, x1 - 5e-3, h - 0.12, sz0 + 0.19, col, 0, -0.18);
23175
23446
  const cx = (x0 + x1) / 2;
23176
- seats.push({ id: `seat_${i + 1}`, pose: "sit", pos: [round3(cx), round3(seatY + 0.03), round3(sz0 + (sz1 - sz0) * 0.55)], ry: FACE, exit: [round3(cx), 0, round3(hd + 0.55)] });
23447
+ seats.push({ id: `seat_${i + 1}`, pose: "sit", pos: [round3(cx), round3(seatY + 0.03), round3(sz0 + (sz1 - sz0) * 0.55)], ry: FACE2, exit: [round3(cx), 0, round3(hd + 0.55)] });
23177
23448
  }
23178
23449
  for (const s of seats) c.add("seats", { ...s, eye: 0.62 });
23179
23450
  if (lie) {
@@ -23199,11 +23470,11 @@ var GameInteractablesHousehold = (() => {
23199
23470
  c.b("wood", -hw + 0.014, seatY - 0.09, -hd + 0.04, -hw + 0.04, seatY - 0.04, hd - 0.04, shade(wood, 0.85));
23200
23471
  c.b("wood", hw - 0.04, seatY - 0.09, -hd + 0.04, hw - 0.014, seatY - 0.04, hd - 0.04, shade(wood, 0.85));
23201
23472
  c.b("wood", -hw, seatY - 0.03, -hd, hw, seatY, hd, wood);
23202
- c.b("fabric", -hw + 0.02, seatY, -hd + 0.05, hw - 0.02, seatY + 0.04, hd - 0.02, cush);
23473
+ c.b("foam", -hw + 0.02, seatY, -hd + 0.05, hw - 0.02, seatY + 0.04, hd - 0.02, cush);
23203
23474
  c.b("fabric", -hw + 0.03, seatY + 0.04, -hd + 0.06, hw - 0.03, seatY + 0.045, hd - 0.03, mix(cush, 16777215, 0.1));
23204
23475
  c.b("wood", -hw + 0.014, h - 0.1, -hd + 0.014, hw - 0.014, h - 0.03, -hd + 0.04, wood);
23205
23476
  for (let i = 0; i < 3; i++) c.b("wood", -hw + 0.07 + i * ((c.w - 0.14) / 3), seatY + 0.06, -hd + 0.015, -hw + 0.07 + i * ((c.w - 0.14) / 3) + 0.04, h - 0.1, -hd + 0.035, shade(wood, 1.05));
23206
- c.add("seats", { id: "seat", pose: "sit", pos: [0, round3(seatY + 0.05), 0.02], ry: FACE, exit: [0, 0, round3(hd + 0.45)] });
23477
+ c.add("seats", { id: "seat", pose: "sit", pos: [0, round3(seatY + 0.05), 0.02], ry: FACE2, exit: [0, 0, round3(hd + 0.45)] });
23207
23478
  c.interact("sit", [0, seatY + 0.3, 0.1], { do: "sit", seat: "seat" }, "prompt.sit", 1.5);
23208
23479
  }
23209
23480
  function bedBuild(c, double) {
@@ -23219,9 +23490,7 @@ var GameInteractablesHousehold = (() => {
23219
23490
  c.b("wood", -hw, 0.14, -hd, hw, h, -hd + 0.06, shade(wood, 0.92));
23220
23491
  c.b("wood", -hw + 0.06, h - 0.08, -hd + 0.06, hw - 0.06, h - 0.02, -hd + 0.07, shade(wood, 1.12));
23221
23492
  c.b("wood", -hw + 0.06, 0.5, -hd + 0.06, hw - 0.06, h - 0.1, -hd + 0.068, shade(wood, 0.84));
23222
- c.b("wood", -hw + 0.05, frameTop - 0.04, -hd + 0.06, hw - 0.05, frameTop, hd - 0.05, shade(wood, 0.7));
23223
- c.b("fabric", -hw + 0.055, frameTop, -hd + 0.065, hw - 0.055, matTop, hd - 0.055, 15657696);
23224
- c.b("fabric", -hw + 0.052, frameTop + 0.02, -hd + 0.062, hw - 0.052, frameTop + 0.026, hd - 0.052, 14210248);
23493
+ bedBase(c, shade(wood, 0.7), frameTop, matTop);
23225
23494
  c.b("fabric", -hw + 0.04, matTop - 0.01, -hd + 0.65, hw - 0.04, matTop + 0.06, hd - 0.035, sheet);
23226
23495
  c.b("fabric", -hw + 0.04, matTop + 0.06, -hd + 0.65, hw - 0.04, matTop + 0.066, -hd + 0.75, mix(sheet, 16777215, 0.4));
23227
23496
  for (let i = 0; i < 4; i++) c.b("fabric", -hw + 0.05, matTop + 0.062, -hd + 0.9 + i * 0.28, hw - 0.05, matTop + 0.067, -hd + 0.93 + i * 0.28, mix(sheet, 16777215, 0.18));
@@ -23230,11 +23499,11 @@ var GameInteractablesHousehold = (() => {
23230
23499
  const seats = [];
23231
23500
  for (let i = 0; i < np; i++) {
23232
23501
  const cx = -hw + 0.07 + (i + 0.5) * pw;
23233
- c.b("fabric", cx - pw / 2 + 0.03, matTop, -hd + 0.09, cx + pw / 2 - 0.03, matTop + 0.13, -hd + 0.5, 16184558, 0, 0.08);
23502
+ c.b("foam", cx - pw / 2 + 0.03, matTop, -hd + 0.09, cx + pw / 2 - 0.03, matTop + 0.13, -hd + 0.5, 16184558, 0, 0.08);
23234
23503
  const id = double ? `lie_${i + 1}` : "lie";
23235
23504
  seats.push(id);
23236
23505
  const sx = double ? i === 0 ? -1 : 1 : 0;
23237
- c.add("seats", { id, pose: "lie", pos: [round3(cx), round3(matTop), round3(-hd + 0.95)], ry: FACE, eye: 0.26, exit: [round3(sx * (hw + 0.5) || hw + 0.5), 0, round3(-hd + 1.1)] });
23506
+ c.add("seats", { id, pose: "lie", pos: [round3(cx), round3(matTop), round3(-hd + 0.95)], ry: FACE2, eye: 0.26, exit: [round3(sx * (hw + 0.5) || hw + 0.5), 0, round3(-hd + 1.1)] });
23238
23507
  }
23239
23508
  for (const id of seats) {
23240
23509
  const s = c.spec.seats.find((x) => x.id === id);
@@ -23267,7 +23536,7 @@ var GameInteractablesHousehold = (() => {
23267
23536
  const step = (c.w - 0.2) / n;
23268
23537
  for (let i = 0; i < n; i++) {
23269
23538
  const x = round3(-hw + 0.1 + (i + 0.5) * step);
23270
- c.add("seats", { id: `seat_${i + 1}`, pose: "sit", pos: [x, round3(seatY + 0.03), 0.02], ry: FACE, exit: [x, 0, round3(hd + 0.5)] });
23539
+ c.add("seats", { id: `seat_${i + 1}`, pose: "sit", pos: [x, round3(seatY + 0.03), 0.02], ry: FACE2, exit: [x, 0, round3(hd + 0.5)] });
23271
23540
  c.interact(`sit_${i + 1}`, [x, seatY + 0.3, 0.1], { do: "sit", seat: `seat_${i + 1}` }, "prompt.sit", 1.5);
23272
23541
  }
23273
23542
  }
@@ -23290,9 +23559,9 @@ var GameInteractablesHousehold = (() => {
23290
23559
  c.b("wood", -hw + post + 0.03, deck - 0.02, -hd + 0.03, hw - post - 0.03, deck + 4e-3, zEnd - 0.03, shade(wood, 0.7));
23291
23560
  }
23292
23561
  for (const [deck, top, id] of [[lowDeck, lowTop, "lower"], [highDeck, highTop, "upper"]]) {
23293
- c.b("fabric", -hw + post + 0.035, deck + 4e-3, -hd + 0.035, hw - post - 0.035, top, zEnd - 0.035, 15657696);
23562
+ c.b("foam", -hw + post + 0.035, deck + 4e-3, -hd + 0.035, hw - post - 0.035, top, zEnd - 0.035, 15657696);
23294
23563
  c.b("fabric", -hw + post + 0.04, top - 0.12, -hd + 0.65, hw - post - 0.04, top + 0.035, zEnd - 0.04, id === "upper" ? mix(sheet, 16777215, 0.15) : sheet);
23295
- c.b("fabric", -hw + post + 0.1, top, -hd + 0.07, hw - post - 0.1, top + 0.1, -hd + 0.45, 16184558, 0, 0.08);
23564
+ c.b("foam", -hw + post + 0.1, top, -hd + 0.07, hw - post - 0.1, top + 0.1, -hd + 0.45, 16184558, 0, 0.08);
23296
23565
  }
23297
23566
  c.b("wood", -hw + post, highTop + 0.04, -hd + post, -hw + post + 0.03, highTop + 0.3, zEnd - post - 0.45, wood);
23298
23567
  c.b("wood", hw - post - 0.03, highTop + 0.04, -hd + post, hw - post, highTop + 0.3, zEnd - post - 0.45, wood);
@@ -23301,7 +23570,7 @@ var GameInteractablesHousehold = (() => {
23301
23570
  for (const x of [-0.2, 0.2]) c.b("wood", x - 0.02, 0.06, zEnd, x + 0.02, highTop + 0.3, hd, shade(wood, 1.1));
23302
23571
  for (let i = 0; i < 5; i++) c.b("wood", -0.2, 0.3 + i * 0.22, zEnd + 5e-3, 0.2, 0.34 + i * 0.22, hd - 0.01, wood);
23303
23572
  for (const [id, top, ex] of [["lie_lower", lowTop, 1], ["lie_upper", highTop, -1]]) {
23304
- c.add("seats", { id, pose: "lie", pos: [0, round3(top), round3(-hd + 0.95)], ry: FACE, eye: 0.26, exit: [round3(ex * (hw + 0.5)), 0, round3(-hd + 1.1)] });
23573
+ c.add("seats", { id, pose: "lie", pos: [0, round3(top), round3(-hd + 0.95)], ry: FACE2, eye: 0.26, exit: [round3(ex * (hw + 0.5)), 0, round3(-hd + 1.1)] });
23305
23574
  c.interact(`lie_${id}`, [0, round3(top + 0.3), round3(-hd + 0.95)], { do: "sit", seat: id }, "prompt.lie", 1.8);
23306
23575
  }
23307
23576
  }
@@ -25161,6 +25430,9 @@ var GameInteractablesHousehold = (() => {
25161
25430
  washing_machine: washingMachine,
25162
25431
  sofa,
25163
25432
  armchair,
25433
+ pouf,
25434
+ box_bed: boxBed,
25435
+ upholstered_chair: upholsteredChair,
25164
25436
  dining_chair: diningChair,
25165
25437
  bed_double: bedDouble,
25166
25438
  bed_single: bedSingle,