add the hull to the print component

docks66-json-schema
Yanick Champoux 2023-04-26 16:11:49 -04:00
parent cab1036498
commit 50139bba7c
2 changed files with 8 additions and 2 deletions

View File

@ -17,6 +17,7 @@
export let advanced = false;
export let shipMass = 10;
// TODO advanced hull?
let nbr_rows;
$: nbr_rows = advanced ? 3 : 4;

View File

@ -3,7 +3,11 @@
<div class="print-output">
<Identification {...identification} />
<div class="section-2" />
<Hull
shipMass={identification.reqs.mass}
advanced={false}
rating={structure.hull?.rating}
/>
<MainSystems {...propulsion} />
</div>
@ -11,10 +15,11 @@
<script>
import Identification from "./Identification.svelte";
import MainSystems from "./MainSystems/index.svelte";
import Hull from "./Hull.svelte";
import Hull from "./Hull/index.svelte";
export let identification = {};
export let propulsion = {};
export let structure = {};
</script>
<style>