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