10 #include "GDCore/Project/ResourcesContainer.h"
17 class EventsFunctionsExtension;
18 class EventsBasedObject;
19 class EventsBasedBehavior;
41 MakeNewResourcesContainersListForProject(
const gd::Project &project);
44 MakeNewResourcesContainersListForFreeEventsFunction(
50 MakeNewResourcesContainersListForBehaviorEventsFunction(
58 MakeNewResourcesContainersListForObjectEventsFunction(
68 bool HasResourceNamed(
const gd::String &name)
const;
73 ForEachResource(std::function<
void(
const gd::Resource &resource)> fn)
const;
79 void ForEachNameMatchingSearch(
81 std::function<
void(
const gd::Resource &resource)> fn)
const;
87 const gd::ResourcesContainer::SourceType
88 GetResourcesContainerSourceType(
const gd::String &resourceName)
const;
108 return *resourcesContainers.at(index);
115 return resourcesContainers.size();
127 resourcesContainers.push_back(&resourcesContainer);
130 std::vector<const gd::ResourcesContainer *> resourcesContainers;
131 static Resource badResource;
132 static ResourcesContainer badResourcesContainer;
Represents a behavior that is implemented with events.
Definition: EventsBasedBehavior.h:31
Represents an object that is implemented with events.
Definition: EventsBasedObject.h:32
Events that can be generated as a stand-alone function, and used as a condition, action or expression...
Definition: EventsFunction.h:38
Hold a list of Events Functions (gd::EventsFunction) and Events Based Behaviors.
Definition: EventsFunctionsExtension.h:41
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:50
Base class to describe a resource used by a game.
Definition: ResourcesContainer.h:27
Inventory all resources used by a project.
Definition: ResourcesContainer.h:628
A list of resources containers, useful for accessing resources in a scoped way, along with methods to...
Definition: ResourcesContainersList.h:36
ResourcesContainersList()
Definition: ResourcesContainersList.h:120
const gd::ResourcesContainer & GetResourcesContainer(std::size_t index) const
Return a the objects container at position index.
Definition: ResourcesContainersList.h:107
std::size_t GetResourcesContainersCount() const
Return the number of objects containers.
Definition: ResourcesContainersList.h:114
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24