GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
BehaviorParametersFiller.h
1 /*
2  * GDevelop Core
3  * Copyright 2008-2024 Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 #pragma once
7 
8 #include "GDCore/IDE/Events/ArbitraryEventsWorker.h"
9 #include "GDCore/String.h"
10 #include <map>
11 #include <memory>
12 #include <vector>
13 
14 namespace gd {
15 class Instruction;
16 class Platform;
17 class ProjectScopedContainers;
18 } // namespace gd
19 
20 namespace gd {
21 
28 class GD_CORE_API BehaviorParametersFiller : public ArbitraryEventsWorker {
29 public:
31  const gd::Platform &platform_,
32  const gd::ProjectScopedContainers &projectScopedContainers_)
33  : platform(platform_),
34  projectScopedContainers(projectScopedContainers_){};
35  virtual ~BehaviorParametersFiller();
36 
37 private:
38  bool DoVisitInstruction(gd::Instruction &instruction,
39  bool isCondition) override;
40 
41  const gd::Platform &platform;
42  const gd::ProjectScopedContainers &projectScopedContainers;
43 };
44 
45 } // namespace gd
ArbitraryEventsWorker is an abstract class used to browse events (and instructions) and do some work ...
Definition: ArbitraryEventsWorker.h:111
Fill empty behavior parameters with any behavior that matches the required behavior type.
Definition: BehaviorParametersFiller.h:28
An instruction is a member of an event: It can be a condition or an action.
Definition: Instruction.h:30
Base class for implementing a platform.
Definition: Platform.h:42
Holds references to variables, objects, properties and other containers.
Definition: ProjectScopedContainers.h:36
Definition: CommonTools.h:24