GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
ObjectPropertyRenamer.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 ObjectPropertyRenamer : public ArbitraryObjectsWorker {
24 public:
25  ObjectPropertyRenamer(const gd::String &objectType_,
26  const gd::String &oldName_, const gd::String &newName_)
27  : objectType(objectType_), oldName(oldName_), newName(newName_){};
28  virtual ~ObjectPropertyRenamer();
29 
30 private:
31  void DoVisitObject(gd::Object &object) override;
32 
33  gd::String objectType;
34  gd::String oldName;
35  gd::String newName;
36 };
37 
38 }; // namespace gd
ArbitraryObjectsWorker is an abstract class used to browse objects (and behaviors) and do some work o...
Definition: ArbitraryObjectsWorker.h:30
Represent an object of a platform.
Definition: Object.h:38
Rename a property in all custom objects of a given type.
Definition: ObjectPropertyRenamer.h:23
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24