2026-10-29 09:56:52 +00:00
|
|
|
import type { BuildingType } from '~/types/game'
|
|
|
|
|
|
|
|
|
|
/**
|
2026-10-29 13:38:34 +00:00
|
|
|
* The empty plot picked in the fullscreen village: a type that doesn't stand yet, whose
|
|
|
|
|
* build card opens on the overview. Buildings open their own screens instead.
|
2026-10-29 09:56:52 +00:00
|
|
|
*/
|
|
|
|
|
export function useVillageSelection() {
|
|
|
|
|
const plot = useState<BuildingType | null>('village.plot', () => null)
|
|
|
|
|
const clear = () => {
|
|
|
|
|
plot.value = null
|
|
|
|
|
}
|
2026-10-29 13:38:34 +00:00
|
|
|
return { plot, clear }
|
2026-10-29 09:56:52 +00:00
|
|
|
}
|