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

35 lines
724 B
Svelte
Raw Normal View History

2022-03-06 19:29:40 +00:00
<Section label="weaponry">
<Firecons {...firecons} />
2022-03-06 19:49:20 +00:00
<ADFC {...adfc} />
2022-03-06 22:36:50 +00:00
<AddWeapon />
2022-03-07 04:11:17 +00:00
{#each weapons as weapon (weapon.id)}
<Weapon {weapon} id={weapon.id} />
{/each}
2022-03-06 19:29:40 +00:00
</Section>
<script>
2022-03-06 19:49:20 +00:00
import { getContext } from 'svelte';
2022-03-06 19:29:40 +00:00
import Section from "$lib/components/Section/index.svelte";
2022-03-06 19:49:20 +00:00
import ShipItem from '$lib/components/ShipItem/index.svelte';
import Field from '$lib/components/Field/index.svelte';
2022-03-06 19:29:40 +00:00
import Firecons from './Firecons.svelte';
2022-03-06 19:49:20 +00:00
import ADFC from './ADFC.svelte';
2022-03-06 22:36:50 +00:00
import AddWeapon from './AddWeapon.svelte';
2022-03-07 04:11:17 +00:00
import Weapon from './Weapon/index.svelte';
2022-03-06 19:29:40 +00:00
export let firecons = {};
2022-03-06 19:49:20 +00:00
export let adfc = {};
2022-03-06 19:29:40 +00:00
2022-03-06 22:36:50 +00:00
export let weapons = [];
2022-03-06 19:29:40 +00:00
</script>
<style>
</style>