6 #ifndef GDCORE_EXTENSIONPROPERTIES_H
7 #define GDCORE_EXTENSIONPROPERTIES_H
10 #include "GDCore/Serialization/SerializerElement.h"
11 #include "GDCore/String.h"
15 class PropertyDescriptor;
25 if (properties.count(extension) == 0 ||
26 properties.at(extension).count(property) == 0) {
27 return ExtensionProperties::defaultValue;
29 return properties.at(extension).at(property);
35 properties[extension][property] = newValue;
39 for (std::pair<gd::String, gd::String> propertyPair :
40 properties[extension]) {
41 if (propertyPair.first == property) {
48 std::map<gd::String, gd::PropertyDescriptor> GetAllExtensionProperties(
64 std::map<gd::String, std::map<gd::String, gd::String>>
Definition: ExtensionProperties.h:19
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:50
A generic container that can represent a value ( containing a string, double, bool or int),...
Definition: SerializerElement.h:37
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24