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

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

#include <ProjectResourcesAdder.h>

Static Public Member Functions

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

◆ GetAllUseless()

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

◆ RemoveAllUseless()

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: