13 lines
388 B
Vue
13 lines
388 B
Vue
<script setup lang="ts">
|
|
import type { BuildingType } from '~/types/game'
|
|
|
|
defineProps<{ type: BuildingType }>()
|
|
</script>
|
|
|
|
<!-- The building glyph on its coloured square, for lists and the queue. -->
|
|
<template>
|
|
<span class="grid shrink-0 place-items-center rounded-lg border" :style="buildingTileStyle(type)">
|
|
<IconBuilding :type="type" class="size-[60%]" />
|
|
</span>
|
|
</template>
|