Add fourth sequential asset expansion batch
This commit is contained in:
@@ -65,6 +65,16 @@ export function portraitTextureKey(key: string) {
|
||||
return portraitAssets[slug] ? `portrait-${slug}` : undefined;
|
||||
}
|
||||
|
||||
export function portraitTextureKeysForKey(key: string) {
|
||||
const slug = portraitSlugForKey(key);
|
||||
const prefix = `${slug}-`;
|
||||
const slugs = Object.keys(portraitAssets)
|
||||
.filter((candidate) => candidate === slug || candidate.startsWith(prefix))
|
||||
.sort();
|
||||
|
||||
return Array.from(new Set(slugs.map((candidate) => `portrait-${candidate}`)));
|
||||
}
|
||||
|
||||
export function portraitKeyForSpeaker(speaker?: string) {
|
||||
return speaker ? speakerPortraitKeys[speaker] : undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user