GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Watermark.h
1 /*
2  * GDevelop Core
3  * Copyright 2008-2018 Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 
7 #ifndef GDCORE_WATERMARK_H
8 #define GDCORE_WATERMARK_H
9 #include "GDCore/String.h"
10 namespace gd {
11 class SerializerElement;
12 }
13 
14 namespace gd {
15 
23 class GD_CORE_API Watermark {
24  public:
25  Watermark();
26  virtual ~Watermark(){};
27 
32  bool IsGDevelopWatermarkShown() const { return showWatermark; };
33 
39  showWatermark = show;
40  return *this;
41  };
42 
43  const gd::String& GetPlacement() const { return placement; };
44 
45  Watermark& SetPlacement(const gd::String& value) {
46  placement = value;
47  return *this;
48  }
49 
53 
56  void SerializeTo(SerializerElement& element) const;
57 
61  void UnserializeFrom(const SerializerElement& element);
63 
64  private:
65  bool showWatermark;
66  gd::String placement;
67 };
68 } // namespace gd
69 
70 #endif // GDCORE_WATERMARK_H
String represents an UTF8 encoded string.
Definition: String.h:31
Describe the content and set up of the watermark.
Definition: Watermark.h:23
Watermark & ShowGDevelopWatermark(bool show)
Set if the GDevelop watermark should be shown after the game has loaded its assets.
Definition: Watermark.h:38
bool IsGDevelopWatermarkShown() const
Return true if the GDevelop watermark should be shown after the game has loaded its assets.
Definition: Watermark.h:32
Definition: CommonTools.h:24