2023-04-28 16:23:39 +00:00
|
|
|
<div>
|
|
|
|
{#each weapons as weapon (weapon.id)}
|
|
|
|
<svelte:component this={printComps[weapon.specs.type]} {...weapon.specs} />
|
|
|
|
{/each}
|
|
|
|
</div>
|
2023-04-28 15:18:31 +00:00
|
|
|
|
|
|
|
<script>
|
2023-04-28 16:23:39 +00:00
|
|
|
import printComps from "./printComps.js";
|
|
|
|
|
|
|
|
export let weapons = [];
|
2023-04-28 15:18:31 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
div {
|
2023-04-28 16:23:39 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
2023-04-28 15:18:31 +00:00
|
|
|
}
|
|
|
|
</style>
|