GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | List of all members
gd::ResourcesAbsolutePathChecker Class Reference

Helper used to check if a project has at least a resource with an absolute filename. More...

#include <ResourcesAbsolutePathChecker.h>

Inherits gd::ArbitraryResourceWorker.

Public Member Functions

 ResourcesAbsolutePathChecker (gd::ResourcesManager &resourcesManager, AbstractFileSystem &fileSystem)
 
bool HasResourceWithAbsoluteFilenames () const
 
virtual void ExposeFile (gd::String &resource)
 
- 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 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 ExposeEmbeddeds (gd::String &resourceName)
 Expose the embedded resources of the specified resource.
 

Additional Inherited Members

- Protected Attributes inherited from gd::ArbitraryResourceWorker
gd::ResourcesManagerresourcesManager
 

Detailed Description

Helper used to check if a project has at least a resource with an absolute filename.

See also
ArbitraryResourceWorker

Member Function Documentation

◆ ExposeFile()

void gd::ResourcesAbsolutePathChecker::ExposeFile ( gd::String resource)
virtual

Check if there is a resource with an absolute path

Implements gd::ArbitraryResourceWorker.

◆ HasResourceWithAbsoluteFilenames()

bool gd::ResourcesAbsolutePathChecker::HasResourceWithAbsoluteFilenames ( ) const
inline

Return true if there is at least a resource with an absolute filename.


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