GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
CustomObjectVariantResetter.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 #ifndef GDCORE_CUSTOMOBJECTVARIANTRESETTER_H
8 #define GDCORE_CUSTOMOBJECTVARIANTRESETTER_H
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 
26  public:
27  CustomObjectVariantResetter(const gd::String& objectType_,
28  const gd::String& variantName_)
29  : objectType(objectType_), variantName(variantName_){};
30  virtual ~CustomObjectVariantResetter();
31 
32  private:
33  void DoVisitObject(gd::Object& object) override;
34  void DoVisitBehavior(gd::Behavior& behavior) override;
35 
36  gd::String objectType;
37  gd::String variantName;
38 };
39 
40 }; // namespace gd
41 
42 #endif // GDCORE_CUSTOMOBJECTVARIANTRESETTER_H
ArbitraryObjectsWorker is an abstract class used to browse objects (and behaviors) and do some work o...
Definition: ArbitraryObjectsWorker.h:29
Base class used to represents a behavior that can be applied to an object. It stores the content (i....
Definition: Behavior.h:24
Make the objects of a given custom object type that use a given variant use the default variant inste...
Definition: CustomObjectVariantResetter.h:25
Represent an object of a platform.
Definition: Object.h:39
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24