forked from noxious/server
Asset type enhancement
This commit is contained in:
@ -19,9 +19,8 @@ async function addHttpRoutes(app: Application) {
|
|||||||
tiles.forEach((tile) => {
|
tiles.forEach((tile) => {
|
||||||
assets.push({
|
assets.push({
|
||||||
key: tile.id,
|
key: tile.id,
|
||||||
value: '/assets/tiles/' + tile.id + '.png',
|
url: '/assets/tiles/' + tile.id + '.png',
|
||||||
group: 'tiles',
|
group: 'tiles',
|
||||||
type: 'link'
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -29,9 +28,8 @@ async function addHttpRoutes(app: Application) {
|
|||||||
objects.forEach((object) => {
|
objects.forEach((object) => {
|
||||||
assets.push({
|
assets.push({
|
||||||
key: object.id,
|
key: object.id,
|
||||||
value: '/assets/objects/' + object.id + '.png',
|
url: '/assets/objects/' + object.id + '.png',
|
||||||
group: 'objects',
|
group: 'objects',
|
||||||
type: 'link'
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@ export type TZoneCharacter = Character & {}
|
|||||||
|
|
||||||
export type TAsset = {
|
export type TAsset = {
|
||||||
key: string
|
key: string
|
||||||
value: string
|
url: string
|
||||||
group: 'tiles' | 'objects' | 'sound' | 'music' | 'ui' | 'font' | 'other'
|
group: 'tiles' | 'objects' | 'sound' | 'music' | 'ui' | 'font' | 'other' | 'sprite'
|
||||||
type: 'base64' | 'link'
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user