object stuff

This commit is contained in:
2024-07-04 13:38:05 +02:00
parent 90121be472
commit aa5b51478a
5 changed files with 16 additions and 11 deletions

View File

@ -1,9 +1,10 @@
import { ref } from 'vue'
import { defineStore } from 'pinia'
import type { Object } from '@/types'
export const useAssetManagerStore = defineStore('assetManager', () => {
const tileList = ref<string[]>([])
const objectList = ref<string[]>([])
const objectList = ref<Object[]>([])
const selectedTile = ref<string | null>(null)
const selectedObject = ref<string | null>(null)
const objectDetails = ref<Record<string, any>>({})
@ -12,7 +13,7 @@ export const useAssetManagerStore = defineStore('assetManager', () => {
tileList.value = tiles
}
function setObjectList(objects: string[]) {
function setObjectList(objects: Object[]) {
objectList.value = objects
}