aotds-docks/src/lib/components/ShipEdit.svelte

38 lines
879 B
Svelte
Raw Normal View History

2023-04-17 13:16:34 +00:00
<Identification {...identification} />
<Propulsion {...propulsion} />
<Structure {...structure} />
<Weaponry {...weaponry} />
2023-03-21 19:42:45 +00:00
2023-04-22 14:37:49 +00:00
{#if identification.isCarrier}
<Carrier {...carrier} />
{/if}
2023-03-21 19:42:45 +00:00
<script>
2023-05-09 16:06:39 +00:00
import { getContext } from "svelte";
2023-03-21 19:42:45 +00:00
import Identification from "./ShipEdit/Identification.svelte";
2023-03-22 17:04:47 +00:00
import Propulsion from "./ShipEdit/Propulsion.svelte";
import shipDux from "$lib/store/ship";
2023-03-24 15:01:04 +00:00
import Structure from "./ShipEdit/Structure.svelte";
2023-03-27 17:19:46 +00:00
import Weaponry from "./ShipEdit/Weaponry.svelte";
2023-04-22 14:37:49 +00:00
import Carrier from "./ShipEdit/Carrier.svelte";
2023-03-21 19:42:45 +00:00
2023-03-24 15:01:04 +00:00
export let identification = {};
export let propulsion = {};
export let structure = {};
2023-03-27 17:19:46 +00:00
export let weaponry = {};
2023-04-22 14:37:49 +00:00
export let carrier = {};
2023-05-09 16:06:39 +00:00
const api = getContext("api");
2023-03-21 19:42:45 +00:00
</script>
<style>
main {
width: var(--main-width);
margin-left: auto;
margin-right: auto;
}
2023-05-09 16:06:39 +00:00
.reset {
}
2023-03-21 19:42:45 +00:00
</style>