GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members

Class used to rename resources (in an object, an entire project, etc...) More...

#include <ResourcesRenamer.h>

Inherits gd::ArbitraryResourceWorker.

Public Member Functions

 ResourcesRenamer (const std::map< gd::String, gd::String > &oldToNewNames_)
 Constructor taking the map from old name to new name. More...
 
virtual void ExposeFile (gd::String &resourceName) override
 Expose a raw filename.
 
virtual void ExposeImage (gd::String &imageResourceName) override
 Expose an image, which is always a reference to a "image" resource.
 
virtual void ExposeAudio (gd::String &audioResourceName) override
 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 &fontResourceName) override
 Expose a font, which is either a reference to a "font" resource, or a filename if no resource with this name exists.
 
- Public Member Functions inherited from gd::ArbitraryResourceWorker
void ExposeResources (gd::ResourcesManager *resourcesManager)
 Expose a set of resources. More...
 
virtual void ExposeShader (gd::String &shaderName)
 Expose a shader. Currently unsupported.
 

Additional Inherited Members

- Protected Member Functions inherited from gd::ArbitraryResourceWorker
const std::vector
< gd::ResourcesManager * > & 
GetResources ()
 

Detailed Description

Class used to rename resources (in an object, an entire project, etc...)

Constructor & Destructor Documentation

gd::ResourcesRenamer::ResourcesRenamer ( const std::map< gd::String, gd::String > &  oldToNewNames_)
inline

Constructor taking the map from old name to new name.

Parameters
oldToNewNames_A map associating to a resource name the new name to use.

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