GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
EventsBasedObjectVariantHelper.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/String.h"
9 #include <vector>
10 
11 namespace gd {
12 class EventsBasedObject;
13 class Project;
14 } // namespace gd
15 
16 namespace gd {
17 
18 class GD_CORE_API EventsBasedObjectVariantHelper {
19 public:
24  static void
25  ComplyVariantsToEventsBasedObject(const gd::Project &project,
26  gd::EventsBasedObject &eventsBasedObject);
27 
28  static std::vector<gd::String> FindAllChildrenCustomObjectType(
29  const gd::Project &project,
30  const gd::EventsBasedObject &eventsBasedObject);
31 
32 private:
33  static void FindAllChildrenCustomObjectType(
34  const gd::Project &project,
35  const gd::EventsBasedObject &eventsBasedObject,
36  std::vector<gd::String> &objectTypes);
37 };
38 
39 } // namespace gd
Represents an object that is implemented with events.
Definition: EventsBasedObject.h:32
Definition: EventsBasedObjectVariantHelper.h:18
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:51
Definition: CommonTools.h:24