GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
BehaviorsSharedDataBehaviorTypeRenamer.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 
7 #pragma once
8 
9 #include <map>
10 #include <memory>
11 #include <vector>
12 #include "GDCore/IDE/Project/ArbitraryBehaviorSharedDataWorker.h"
13 #include "GDCore/String.h"
14 
15 namespace gd {
16 class BaseEvent;
17 class Project;
18 class EventsList;
19 } // namespace gd
20 
21 namespace gd {
22 
29  public:
30  BehaviorsSharedDataBehaviorTypeRenamer(const gd::String& oldBehaviorType_,
31  const gd::String& newBehaviorType_)
32  : oldBehaviorType(oldBehaviorType_), newBehaviorType(newBehaviorType_){};
34 
35  private:
36  void DoVisitSharedData(gd::BehaviorsSharedData& behavior) override;
37 
38  gd::String oldBehaviorType;
39  gd::String newBehaviorType;
40 };
41 
42 } // namespace gd
ArbitraryBehaviorSharedDataWorker is an abstract class used to browse shared data and do some work on...
Definition: ArbitraryBehaviorSharedDataWorker.h:29
Rename the behavior type of shared data.
Definition: BehaviorsSharedDataBehaviorTypeRenamer.h:28
Base class for defining data shared by behaviors having the same type and name.
Definition: BehaviorsSharedData.h:24
String represents an UTF8 encoded string.
Definition: String.h:31
Definition: CommonTools.h:24