object stuff
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user