added change companion button to menu
This commit is contained in:
parent
52303c0bd6
commit
6ee4889773
4 changed files with 24 additions and 10 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue