GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Public Member Functions | Protected Member Functions | 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::ResourcesAbsolutePathChecker, gd::ResourcesInUseHelper, and gd::ResourcesMergingHelper.

Public Member Functions

void ExposeResources (gd::ResourcesManager *resourcesManager)
 Expose a set of resources. More...
 
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.
 
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.
 
virtual void ExposeShader (gd::String &shaderName)
 Expose a shader. Currently unsupported.
 
virtual void ExposeFile (gd::String &resourceFileName)=0
 Expose a raw filename.
 

Protected Member Functions

const std::vector
< gd::ResourcesManager * > & 
GetResources ()
 

Detailed Description

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

See also
ResourcesMergingHelper
gd::ResourcesInUseHelper
gd::LaunchResourceWorkerOnEvents

Member Function Documentation

void gd::ArbitraryResourceWorker::ExposeResources ( gd::ResourcesManager resourcesManager)

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: