GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
LinkEventTargetRenamer.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/Events/ArbitraryEventsWorker.h"
9 #include "GDCore/String.h"
10 #include <map>
11 #include <memory>
12 #include <vector>
13 
14 namespace gd {
15 class BaseEvent;
16 class LinkEvent;
17 class Platform;
18 class EventsList;
19 } // namespace gd
20 
21 namespace gd {
22 
28 class GD_CORE_API LinkEventTargetRenamer
30 public:
31  LinkEventTargetRenamer(const gd::Platform &platform_,
32  const gd::String &oldName_, const gd::String &newName_)
33  : platform(platform_), oldName(oldName_), newName(newName_){};
34  virtual ~LinkEventTargetRenamer();
35 
36 private:
37  bool DoVisitLinkEvent(gd::LinkEvent &linkEvent) override;
38 
39  const gd::Platform &platform;
40  gd::String oldName;
41  gd::String newName;
42 };
43 
44 } // namespace gd
An events worker that will know about the context (the objects container). Useful for workers working...
Definition: ArbitraryEventsWorker.h:113
Base class for implementing a platform.
Definition: Platform.h:42
String represents an UTF8 encoded string.
Definition: String.h:31
Definition: CommonTools.h:24