GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
InGameEditorResourceMetadata.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 #pragma once
7 #include "GDCore/String.h"
8 #include "GDCore/Serialization/SerializerElement.h"
9 
10 namespace gd {
14 class GD_CORE_API InGameEditorResourceMetadata {
15  public:
17 
18  InGameEditorResourceMetadata& SetResourceName(const gd::String& resourceName_) {
19  resourceName = resourceName_;
20  return *this;
21  };
22 
29  relativeFilePath = relativeFilePath_;
30  return *this;
31  };
32 
33  InGameEditorResourceMetadata& SetKind(const gd::String& kind_) {
34  kind = kind_;
35  return *this;
36  };
37 
38  const gd::String& GetResourceName() const { return resourceName; };
39  const gd::String& GetFilePath() const { return relativeFilePath; };
40  const gd::String& GetKind() const { return kind; };
41 
42  private:
43  gd::String resourceName;
44  gd::String relativeFilePath;
45  gd::String kind;
46 };
47 
48 } // namespace gd
Describe a resource to be used in the in-game editor.
Definition: InGameEditorResourceMetadata.h:14
InGameEditorResourceMetadata & SetFilePath(const gd::String &relativeFilePath_)
Definition: InGameEditorResourceMetadata.h:28
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24