GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
EventsLeaderboardsRenamer.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 #ifndef EventsLeaderboardsRenamer_H
7 #define EventsLeaderboardsRenamer_H
8 #include <map>
9 #include <memory>
10 #include <set>
11 #include <vector>
12 
13 #include "GDCore/IDE/Events/ArbitraryEventsWorker.h"
14 #include "GDCore/String.h"
15 namespace gd {
16 class BaseEvent;
17 class Project;
18 class EventsList;
19 }
20 
21 namespace gd {
22 
29  public:
31  gd::Project& project_,
32  const std::map<gd::String, gd::String>& leaderboardIdMap_)
33  : project(project_), leaderboardIdMap(leaderboardIdMap_){};
34  virtual ~EventsLeaderboardsRenamer();
35 
36  private:
37  virtual bool DoVisitInstruction(gd::Instruction& instruction,
38  bool isCondition);
39 
40  std::map<gd::String, gd::String> leaderboardIdMap;
41  gd::Project& project;
42 };
43 
44 } // namespace gd
45 
46 #endif // EventsLeaderboardsRenamer_H
ArbitraryEventsWorker is an abstract class used to browse events (and instructions) and do some work ...
Definition: ArbitraryEventsWorker.h:36
Replace the leaderboard ids in the instructions.
Definition: EventsLeaderboardsRenamer.h:28
An instruction is a member of an event: It can be a condition or an action.
Definition: Instruction.h:30
Base class representing a project (game), including all resources, scenes, objects,...
Definition: Project.h:50
Definition: CommonTools.h:24