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

Automatically add missing resources of a project. More...

#include <ProjectResourcesAdder.h>

Static Public Member Functions

static bool AddAllMissing (gd::Project &project, const gd::String &resourceType)
 Update the project so that all missing resources are added, with an filename that is equal to the missing resource name. More...
 
static std::vector< gd::StringGetAllUseless (gd::Project &project, const gd::String &resourceType)
 Find all resources of the specified kind that are not used by the project. More...
 
static void RemoveAllUseless (gd::Project &project, const gd::String &resourceType)
 Remove all resources of the specified kind that are not used by the project. More...
 

Detailed Description

Automatically add missing resources of a project.

Member Function Documentation

bool gd::ProjectResourcesAdder::AddAllMissing ( gd::Project project,
const gd::String resourceType 
)
static

Update the project so that all missing resources are added, with an filename that is equal to the missing resource name.

Parameters
projectThe project to be updated.
resourceTypeThe type of the resource the be searched
Returns
true if no error happened
std::vector< gd::String > gd::ProjectResourcesAdder::GetAllUseless ( gd::Project project,
const gd::String resourceType 
)
static

Find all resources of the specified kind that are not used by the project.

Parameters
projectThe project to be crawled.
resourceTypeThe type of the resource the be searched
Returns
A vector containing the name of all unused resources
void gd::ProjectResourcesAdder::RemoveAllUseless ( gd::Project project,
const gd::String resourceType 
)
static

Remove all resources of the specified kind that are not used by the project.

Parameters
projectThe project to be crawled.
resourceTypeThe type of the resource the be searched

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