GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
CustomConfigurationHelper.h
1 /*
2  * GDevelop Core
3  * Copyright 2008-2016 Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 #pragma once
7 
8 #include "GDCore/Project/Behavior.h"
9 #include "GDCore/Project/EventsBasedBehavior.h"
10 #include "GDCore/Project/Project.h"
11 #include "GDCore/Project/PropertiesContainer.h"
12 #include "GDCore/Project/PropertyDescriptor.h"
13 #include "GDCore/Serialization/Serializer.h"
14 #include "GDCore/Serialization/SerializerElement.h"
15 
16 using namespace gd;
17 
18 namespace gd {
24 public:
26 
27  static void InitializeContent(
28  const gd::PropertiesContainer &properties,
29  gd::SerializerElement &behaviorContent);
30 
31  static std::map<gd::String, gd::PropertyDescriptor> GetProperties(
32  const gd::PropertiesContainer &properties,
33  const gd::SerializerElement &behaviorContent);
34 
35  static bool UpdateProperty(
36  const gd::PropertiesContainer &properties,
37  gd::SerializerElement &behaviorContent,
38  const gd::String &name,
39  const gd::String &value);
40 
41  static bool RenameProperty(const gd::PropertiesContainer &properties,
42  gd::SerializerElement &behaviorContent,
43  const gd::String &oldName,
44  const gd::String &newName);
45 };
46 } // namespace gd
Helper functions that gd::CustomBehavior and gd::CustomBehaviorsSharedData use to store their content...
Definition: CustomConfigurationHelper.h:23
A container of properties, used for custom behaviors, custom objects, extensions.....
Definition: PropertiesContainer.h:17
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