GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
#include <GroupVariableHelper.h>
Static Public Member Functions | |
static void | FillAnyVariableBetweenObjects (gd::ObjectsContainer &globalObjectsContainer, gd::ObjectsContainer &objectsContainer, const gd::ObjectGroup &objectGroup) |
static gd::VariablesContainer | MergeVariableContainers (const gd::ObjectsContainersList &objectsContainersList, const gd::ObjectGroup &objectGroup) |
static void | FillMissingGroupVariablesToObjects (gd::ObjectsContainer &globalObjectsContainer, gd::ObjectsContainer &objectsContainer, const gd::ObjectGroup &objectGroup, const gd::SerializerElement &originalSerializedVariables) |
Copy the variables of the group to all objects. More... | |
static void | ApplyChangesToObjects (gd::ObjectsContainer &globalObjectsContainers, gd::ObjectsContainer &objectsContainers, const gd::VariablesContainer &groupVariablesContainer, const gd::ObjectGroup &objectGroup, const gd::VariablesChangeset &changeset) |
Apply the changes done with the variables editor to the objects of the group. | |
Help handling variables of group objects as a whole.
This is used by the object group variable editor.
|
static |
Copy every variable from every object of the group to the other objects if they don't have it already.
In the editor, when an object group is created, users can choose between:
|
static |
Copy the variables of the group to all objects.
Objects can be added during the group edition and may not necessarily have all the variables initially shared by the group.
|
static |
Build a variable container with the intersection of variables from the every objects of the given group.