GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | Protected Attributes | List of all members
gd::ArbitraryResourceWorker Class Referenceabstract

ArbitraryResourceWorker is used so as to inventory resources and sometimes update them. More...

#include <ArbitraryResourceWorker.h>

Inherited by gd::AssetResourcePathCleaner, gd::ResourceNameMatcher, gd::ResourcesAbsolutePathChecker, gd::ResourcesInUseHelper, gd::ResourcesMergingHelper, gd::ResourcesRenamer, and gd::SceneResourcesFinder [private].

Public Member Functions

 ArbitraryResourceWorker (gd::ResourcesManager &resourcesManager_)
 
void ExposeResources ()
 Expose a set of resources. More...
 
void ExposeResourceWithType (const gd::String &resourceType, gd::String &resourceName)
 Expose a resource from a given type.
 
virtual void ExposeImage (gd::String &imageName)
 Expose an image, which is always a reference to a "image" resource.
 
virtual void ExposeAudio (gd::String &audioName)
 Expose an audio, which is either a reference to an "audio" resource, or a filename if no resource with this name exists (for backward compatibility).
 
virtual void ExposeFont (gd::String &fontName)
 Expose a font, which is either a reference to a "font" resource, or a filename if no resource with this name exists (for backward compatibility).
 
virtual void ExposeJson (gd::String &jsonName)
 Expose a JSON, which is always a reference to a "json" resource.
 
virtual void ExposeTilemap (gd::String &tilemapName)
 Expose a Tilemap, which is always a reference to a "tilemap" resource.
 
virtual void ExposeTileset (gd::String &tilesetName)
 Expose a Tileset, which is always a reference to a "tileset" resource.
 
virtual void ExposeModel3D (gd::String &resourceName)
 Expose a 3D model, which is always a reference to a "model3D" resource.
 
virtual void ExposeAtlas (gd::String &resourceName)
 Expose an atlas, which is always a reference to a "atlas" resource.
 
virtual void ExposeSpine (gd::String &resourceName)
 Expose an spine, which is always a reference to a "spine" resource.
 
virtual void ExposeVideo (gd::String &videoName)
 Expose a video, which is always a reference to a "video" resource.
 
virtual void ExposeBitmapFont (gd::String &bitmapFontName)
 Expose a bitmap font, which is always a reference to a "bitmapFont" resource.
 
virtual void ExposeShader (gd::String &shaderName)
 Expose a shader. \warn Currently unsupported.
 
virtual void ExposeFile (gd::String &resourceFileName)=0
 Expose a raw filename.
 
virtual void ExposeEmbeddeds (gd::String &resourceName)
 Expose the embedded resources of the specified resource.
 

Protected Attributes

gd::ResourcesManagerresourcesManager
 

Detailed Description

ArbitraryResourceWorker is used so as to inventory resources and sometimes update them.

See also
ResourcesMergingHelper
gd::ResourcesInUseHelper
gd::GetResourceWorkerOnEvents

Member Function Documentation

◆ ExposeResources()

void gd::ArbitraryResourceWorker::ExposeResources ( )

Expose a set of resources.

Note
When launching an ArbitraryResourceWorker, this should be called first to ensure that resources are known so that images, shaders & audio can make reference to them.

The documentation for this class was generated from the following files: