/* * GDevelop JS Platform * Copyright 2013-2023 Florian Rival (Florian.Rival@gmail.com). All rights reserved. * This project is released under the MIT License. */ namespace gdjs { /** * A resource managers that download and remember downloaded content for one * kind of resource. */ export interface ResourceManager { /** * Load the specified resource. * * This method will be run during the game. It should only do light tasks * like file downloading. */ loadResource(resourceName: string): Promise; /** * Process the specified resource. * * This method will only be run while loading screen is shown. It can do * heavy tasks like parsing data. */ processResource(resourceName: string): Promise; /** * Return the kind of resources handled by this manager. */ getResourceKinds(): Array; } }