GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
BehaviorPropertyRenamer.h
1 /*
2  * GDevelop Core
3  * Copyright 2008-2026 Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 
7 #pragma once
8 #include <set>
9 
10 #include "GDCore/IDE/Project/ArbitraryObjectsWorker.h"
11 #include "GDCore/String.h"
12 
13 namespace gd {
14 class Object;
15 class Behavior;
16 } // namespace gd
17 
18 namespace gd {
19 
23 class GD_CORE_API BehaviorPropertyRenamer : public ArbitraryObjectsWorker {
24 public:
25  BehaviorPropertyRenamer(const gd::String &behaviorType_,
26  const gd::String &oldName_,
27  const gd::String &newName_)
28  : behaviorType(behaviorType_), oldName(oldName_), newName(newName_){};
29  virtual ~BehaviorPropertyRenamer();
30 
31 private:
32  void DoVisitBehavior(gd::Behavior &behavior) override;
33 
34  gd::String behaviorType;
35  gd::String oldName;
36  gd::String newName;
37 };
38 
39 }; // namespace gd
ArbitraryObjectsWorker is an abstract class used to browse objects (and behaviors) and do some work o...
Definition: ArbitraryObjectsWorker.h:30
Base class used to represents a behavior that can be applied to an object. It stores the content (i....
Definition: Behavior.h:23
Rename a property in behaviors of all objects.
Definition: BehaviorPropertyRenamer.h:23
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24