GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
InstructionsParameterMover.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 #ifndef InstructionsParameterMover_H
7 #define InstructionsParameterMover_H
8 #include <map>
9 #include <memory>
10 #include <vector>
11 #include "GDCore/IDE/Events/ArbitraryEventsWorker.h"
12 #include "GDCore/String.h"
13 namespace gd {
14 class BaseEvent;
15 class Project;
16 class EventsList;
17 } // namespace gd
18 
19 namespace gd {
20 
30  public:
32  const gd::String& instructionType_,
33  std::size_t oldIndex_,
34  std::size_t newIndex_)
35  : project(project_),
36  instructionType(instructionType_),
37  oldIndex(oldIndex_),
38  newIndex(newIndex_){};
39  virtual ~InstructionsParameterMover();
40 
41  private:
42  bool DoVisitInstruction(gd::Instruction& instruction,
43  bool isCondition) override;
44 
45  const gd::Project& project;
46  gd::String instructionType;
47  std::size_t oldIndex;
48  std::size_t newIndex;
49 };
50 
51 } // namespace gd
52 
53 #endif // InstructionsParameterMover_H
ArbitraryEventsWorker is an abstract class used to browse events (and instructions) and do some work ...
Definition: ArbitraryEventsWorker.h:36
An instruction is a member of an event: It can be a condition or an action.
Definition: Instruction.h:30
Reorder the parameters of the instruction with the specified type in events, moving the parameter at ...
Definition: InstructionsParameterMover.h:29
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:50
String represents an UTF8 encoded string.
Definition: String.h:31
Definition: CommonTools.h:24