added change companion button to menu

This commit is contained in:
Johannes Berthel 2021-04-02 23:13:03 +02:00
parent 52303c0bd6
commit 6ee4889773
4 changed files with 24 additions and 10 deletions

View file

@ -1,7 +1,11 @@
import LoaderPlugin = Phaser.Loader.LoaderPlugin;
import { COMPANION_RESOURCES, CompanionResourceDescriptionInterface } from "./CompanionTextures";
export const loadAll = (loader: LoaderPlugin): Promise<CompanionResourceDescriptionInterface[]> => {
export const getAllResources = (): CompanionResourceDescriptionInterface[] => {
return COMPANION_RESOURCES;
}
export const lazyLoadAllResources = (loader: LoaderPlugin): Promise<CompanionResourceDescriptionInterface[]> => {
const promises: Promise<string>[] = [];
COMPANION_RESOURCES.forEach((resource: CompanionResourceDescriptionInterface) => {