mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-05 05:20:34 +00:00
Add audio
This commit is contained in:
parent
077207ca27
commit
7a4792e4e8
7 changed files with 243 additions and 4 deletions
|
|
@ -58,6 +58,10 @@ export function textureToUrl(name: string) {
|
|||
}
|
||||
}
|
||||
|
||||
export function audioToUrl(fileName: string) {
|
||||
return getUrlForPath(`audio/${fileName}`);
|
||||
}
|
||||
|
||||
export async function loadDetailMapList(name: string) {
|
||||
const url = getUrlForPath(`textures/${name}`);
|
||||
const res = await fetch(url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue