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

AssetResourcePathCleaner is used when exporting an object as an asset. It removes the folder from the path. More...

#include <AssetResourcePathCleaner.h>

Inherits gd::ArbitraryResourceWorker.

Public Member Functions

 AssetResourcePathCleaner (gd::ResourcesManager &resourcesManager, std::map< gd::String, gd::String > &resourcesFileNameMap_, std::map< gd::String, gd::String > &resourcesNameReverseMap_)
 
void ExposeImage (gd::String &imageName) override
 Expose an image, which is always a reference to a "image" resource.
 
void ExposeAudio (gd::String &audioName) override
 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).
 
void ExposeFont (gd::String &fontName) override
 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).
 
void ExposeJson (gd::String &jsonName) override
 Expose a JSON, which is always a reference to a "json" resource.
 
void ExposeTilemap (gd::String &tilemapName) override
 Expose a Tilemap, which is always a reference to a "tilemap" resource.
 
void ExposeTileset (gd::String &tilesetName) override
 Expose a Tileset, which is always a reference to a "tileset" resource.
 
void ExposeVideo (gd::String &videoName) override
 Expose a video, which is always a reference to a "video" resource.
 
void ExposeBitmapFont (gd::String &bitmapFontName) override
 Expose a bitmap font, which is always a reference to a "bitmapFont" resource.
 
void ExposeFile (gd::String &resource) override
 Expose a raw filename.
 
- Public Member Functions inherited from gd::ArbitraryResourceWorker
 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 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 ExposeShader (gd::String &shaderName)
 Expose a shader. \warn Currently unsupported.
 
virtual void ExposeEmbeddeds (gd::String &resourceName)
 Expose the embedded resources of the specified resource.
 

Protected Member Functions

void ExposeResourceAsFile (gd::String &resourceName)
 

Protected Attributes

std::map< gd::String, gd::String > & resourcesFileNameMap
 
std::map< gd::String, gd::String > & resourcesNameReverseMap
 
- Protected Attributes inherited from gd::ArbitraryResourceWorker
gd::ResourcesManagerresourcesManager
 

Detailed Description

AssetResourcePathCleaner is used when exporting an object as an asset. It removes the folder from the path.

See also
ArbitraryResourceWorker

Member Data Documentation

◆ resourcesFileNameMap

std::map<gd::String, gd::String>& gd::AssetResourcePathCleaner::resourcesFileNameMap
protected

New file names that can be accessed by their original name.

◆ resourcesNameReverseMap

std::map<gd::String, gd::String>& gd::AssetResourcePathCleaner::resourcesNameReverseMap
protected

Original resource names that can be accessed by their new name.


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