9 #include "GDCore/IDE/Project/ArbitraryResourceWorker.h"
10 #include "GDCore/String.h"
17 class SerializerElement;
50 void AddUsedResource(
gd::String &resourceName);
52 void ExposeFile(
gd::String &resourceFileName)
override{
56 void ExposeImage(
gd::String &imageResourceName)
override {
57 AddUsedResource(imageResourceName);
59 void ExposeAudio(
gd::String &audioResourceName)
override {
60 AddUsedResource(audioResourceName);
62 void ExposeFont(
gd::String &fontResourceName)
override {
63 AddUsedResource(fontResourceName);
65 void ExposeJson(
gd::String &jsonResourceName)
override {
66 AddUsedResource(jsonResourceName);
68 void ExposeTilemap(
gd::String &tilemapResourceName)
override {
69 AddUsedResource(tilemapResourceName);
71 void ExposeTileset(
gd::String &tilesetResourceName)
override {
72 AddUsedResource(tilesetResourceName);
74 void ExposeVideo(
gd::String &videoResourceName)
override {
75 AddUsedResource(videoResourceName);
77 void ExposeBitmapFont(
gd::String &bitmapFontName)
override {
78 AddUsedResource(bitmapFontName);
80 void ExposeModel3D(
gd::String &resourceName)
override {
81 AddUsedResource(resourceName);
83 void ExposeAtlas(
gd::String &resourceName)
override {
84 AddUsedResource(resourceName);
86 void ExposeSpine(
gd::String &resourceName)
override {
87 AddUsedResource(resourceName);
90 std::set<gd::String> resourceNames;
ArbitraryResourceWorker is used so as to inventory resources and sometimes update them.
Definition: ArbitraryResourceWorker.h:44
Represent a layout ( also called a scene ) of a project.
Definition: Layout.h:40
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:51
Inventory all resources used by a project.
Definition: ResourcesManager.h:556
Find resource usages in several parts of the project.
Definition: SceneResourcesFinder.h:27
static std::set< gd::String > FindProjectResources(gd::Project &project)
Find resource that are used globally in the project.
Definition: SceneResourcesFinder.cpp:15
static std::set< gd::String > FindSceneResources(gd::Project &project, gd::Layout &layout)
Find resource usages in a given scenes.
Definition: SceneResourcesFinder.cpp:22
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24