GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
FunctionParameterObjectTypeRenamer.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/IDE/Project/ArbitraryEventsFunctionsWorker.h"
9 #include "GDCore/String.h"
10 #include <map>
11 #include <memory>
12 #include <vector>
13 
14 namespace gd {
15 class BaseEvent;
16 class Project;
17 class EventsList;
18 } // namespace gd
19 
20 namespace gd {
21 
29 public:
30  FunctionParameterObjectTypeRenamer(const gd::String &oldObjectType_,
31  const gd::String &newObjectType_)
32  : oldObjectType(oldObjectType_), newObjectType(newObjectType_){};
34 
35 private:
36  virtual void DoVisitEventsFunction(gd::EventsFunction &eventsFunction) override;
37 
38  gd::String oldObjectType;
39  gd::String newObjectType;
40 };
41 
42 } // namespace gd
ArbitraryEventsFunctionsWorker is an abstract class used to browse functions signatures and do some w...
Definition: ArbitraryEventsFunctionsWorker.h:30
Events that can be generated as a stand-alone function, and used as a condition, action or expression...
Definition: EventsFunction.h:39
Rename the type of object parameters in functions.
Definition: FunctionParameterObjectTypeRenamer.h:28
String represents an UTF8 encoded string.
Definition: String.h:31
Definition: CommonTools.h:24