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 advanced = false;
export let shipMass = 10; export let shipMass = 10;
// TODO advanced hull?
let nbr_rows; let nbr_rows;
$: nbr_rows = advanced ? 3 : 4; $: nbr_rows = advanced ? 3 : 4;

View File

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