refactor(config-types): clean up
This commit is contained in:
parent
c058b1d1e7
commit
b8dcbc4f5d
@ -24,14 +24,14 @@ await client
|
|||||||
return (PROD_VERSION = (data as string).match(PROD_VERSION_REGEX)?.[0])
|
return (PROD_VERSION = (data as string).match(PROD_VERSION_REGEX)?.[0])
|
||||||
})
|
})
|
||||||
|
|
||||||
export const GAME_ENDPOINTS: GameEndPointsTypes = (domain) => {
|
export const GAME_ENDPOINTS = (domain: DomainTypes): GameEndPointsTypes => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
src: `${HABBO_URL(domain)}/gamedata/figuredata/0`,
|
src: `${HABBO_URL(domain)}/gamedata/figuredata/0`,
|
||||||
convert: 'XML',
|
convert: 'XML',
|
||||||
fileName: 'FigureData'
|
fileName: 'FigureData'
|
||||||
}
|
},
|
||||||
/* {
|
{
|
||||||
src: `${HABBO_IMAGES}/figuremap.xml`,
|
src: `${HABBO_IMAGES}/figuremap.xml`,
|
||||||
convert: 'XML',
|
convert: 'XML',
|
||||||
fileName: 'FigureMap'
|
fileName: 'FigureMap'
|
||||||
@ -50,10 +50,10 @@ export const GAME_ENDPOINTS: GameEndPointsTypes = (domain) => {
|
|||||||
fileName: 'EffectMap'
|
fileName: 'EffectMap'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: `${HABBO_URL(domain)}/gamedata/external_variables/0`,
|
src: `${HABBO_URL(domain)}/gamedata/external_flash_texts/0`,
|
||||||
convert: 'TXT',
|
convert: 'TXT',
|
||||||
fileName: 'ExternalTexts'
|
fileName: 'ExternalTexts'
|
||||||
} */
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import type { IDownloaderContent } from '../components'
|
|||||||
|
|
||||||
export const GameDataDownloader: IDownloaderContent = {
|
export const GameDataDownloader: IDownloaderContent = {
|
||||||
title: 'Converts and bundles:',
|
title: 'Converts and bundles:',
|
||||||
features: ['XML/TXT to minified JSON files', 'Converts SWF files to JSV']
|
features: ['XML/TXT to minified JSON files', 'Converts SWF files to Parquet']
|
||||||
}
|
}
|
||||||
|
|
||||||
export const GameAssetsDownloader: IDownloaderContent = {
|
export const GameAssetsDownloader: IDownloaderContent = {
|
||||||
@ -12,6 +12,6 @@ export const GameAssetsDownloader: IDownloaderContent = {
|
|||||||
'Album + Recepetion images',
|
'Album + Recepetion images',
|
||||||
'Catalogue + Furni icons',
|
'Catalogue + Furni icons',
|
||||||
'Habbo Web Promo + Articles',
|
'Habbo Web Promo + Articles',
|
||||||
'MP3 Sounds machine'
|
'MP3 Sounds'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
// not used, should be removed after figuring out what to do with
|
|
||||||
|
|
||||||
export const REGISTERED_KEYS = [
|
|
||||||
'friendlytime.',
|
|
||||||
'navigator.',
|
|
||||||
'cancel',
|
|
||||||
'catalog.',
|
|
||||||
'.group',
|
|
||||||
'widget.',
|
|
||||||
'widgets.',
|
|
||||||
'unique.',
|
|
||||||
'countdown_clock_unit_',
|
|
||||||
'mod.',
|
|
||||||
'notifications.',
|
|
||||||
'.notification',
|
|
||||||
'connection.',
|
|
||||||
'opening.',
|
|
||||||
'login.',
|
|
||||||
'maintenance.',
|
|
||||||
'achievements.',
|
|
||||||
'inventory.',
|
|
||||||
'generic.',
|
|
||||||
'friendlist.',
|
|
||||||
'infostand.',
|
|
||||||
'help.',
|
|
||||||
'people.',
|
|
||||||
'catalog_',
|
|
||||||
'roomad.',
|
|
||||||
'buy',
|
|
||||||
'avatareditor.',
|
|
||||||
'campaign.',
|
|
||||||
'quests.',
|
|
||||||
'room.',
|
|
||||||
'messenger.',
|
|
||||||
'memenu.'
|
|
||||||
]
|
|
8
src/types/Endpoint.d.ts
vendored
8
src/types/Endpoint.d.ts
vendored
@ -1,3 +1,5 @@
|
|||||||
export type GameEndPointsTypes = (
|
export type GameEndPointsTypes = Array<{
|
||||||
domain: DomainTypes
|
src: string
|
||||||
) => Array<{ src: string; convert?: 'TXT' | 'XML'; fileName: string }>
|
convert?: 'TXT' | 'XML'
|
||||||
|
fileName: string
|
||||||
|
}>
|
||||||
|
Loading…
Reference in New Issue
Block a user