fix: harden world travel presentation
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import { Component, inject } from '@angular/core';
|
||||
import { WorldStore } from '../../features/world/world.store';
|
||||
|
||||
const runtimeArtworkPaths: Readonly<Record<string, string>> = {
|
||||
'/images/backgrounds/Suedtor.png': '/images/backgrounds/runtime/Suedtor-960.jpg',
|
||||
'/images/backgrounds/Aschestrasse.png': '/images/backgrounds/runtime/Aschestrasse-960.jpg',
|
||||
};
|
||||
|
||||
@Component({
|
||||
selector: 'app-context-panel',
|
||||
templateUrl: './context-panel.component.html',
|
||||
@@ -8,4 +13,8 @@ import { WorldStore } from '../../features/world/world.store';
|
||||
})
|
||||
export class ContextPanelComponent {
|
||||
protected readonly worldStore = inject(WorldStore);
|
||||
|
||||
protected runtimeArtworkPath(artworkPath: string): string | undefined {
|
||||
return runtimeArtworkPaths[artworkPath];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user