GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
ChildObjectForwardFunctionGenerator.h
1 /*
2  * GDevelop Core
3  * Copyright 2008-present Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 #pragma once
7 
8 #include "GDCore/String.h"
9 #include <vector>
10 
11 namespace gd {
12 class Project;
13 class EventsFunctionsExtension;
14 class EventsBasedObject;
15 class EventsFunction;
16 class Object;
17 } // namespace gd
18 
19 namespace gd {
26 public:
27  static void GenerateChildObjectForwardFunctions(
28  const gd::Project &project,
29  const gd::EventsFunctionsExtension &parentEventsFunctionsExtension,
30  gd::EventsBasedObject &parentEventsBasedObject,
31  const gd::String &childObjectName);
32 
33  static void GenerateChildObjectForwardFunction(
34  const gd::Project &project,
35  const gd::EventsFunctionsExtension &parentEventsFunctionsExtension,
36  gd::EventsBasedObject &parentEventsBasedObject,
37  const gd::String &childObjectName,
38  const gd::EventsFunction &eventsFunction);
39 
40  static bool HasAnyChildCustomObject(const gd::Project &project,
41  gd::EventsBasedObject &eventsBasedObject);
42 
43  static std::vector<gd::String>
44  GetChildCustomObjectNames(const gd::Project &project,
45  gd::EventsBasedObject &eventsBasedObject);
46 };
47 } // namespace gd
Definition: ChildObjectForwardFunctionGenerator.h:25
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:42
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:52
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24