8 #include "InstructionOrExpressionContainerMetadata.h"
15 #include "GDCore/Extensions/Metadata/ExpressionMetadata.h"
16 #include "GDCore/Extensions/Metadata/InstructionMetadata.h"
17 #include "GDCore/Extensions/Metadata/InGameEditorResourceMetadata.h"
18 #include "GDCore/Project/Object.h"
19 #include "GDCore/Project/ObjectConfiguration.h"
20 #include "GDCore/String.h"
22 class InstructionMetadata;
23 class MultipleInstructionMetadata;
24 class ExpressionMetadata;
27 typedef std::function<std::unique_ptr<gd::ObjectConfiguration>()>
51 std::shared_ptr<gd::ObjectConfiguration> blueprintObject_);
74 CreateFunPtr createFunPtr_);
193 const gd::String& copiedConditionName)
override;
228 category = category_;
243 assetStoreTag = assetStoreTag_;
251 return defaultBehaviorTypes;
258 return defaultBehaviorTypes.find(behaviorType) != defaultBehaviorTypes.end();
266 defaultBehaviorTypes.insert(behaviorType);
271 defaultBehaviorTypes.clear();
275 const gd::String& GetName()
const override {
return name; }
276 const gd::String& GetFullName()
const override {
return fullname; }
277 const gd::String& GetCategory()
const {
return category; }
278 const gd::String& GetHelpUrl()
const {
return helpUrl; }
279 const gd::String& GetDescription()
const override {
return description; }
280 const gd::String& GetIconFilename()
const override {
return iconFilename; }
287 ObjectMetadata& SetHelpUrl(
const gd::String& url);
296 ObjectMetadata& SetIncludeFile(
const gd::String& includeFile)
override;
301 ObjectMetadata& AddIncludeFile(
const gd::String& includeFile)
override;
307 std::map<gd::String, gd::InstructionMetadata>&
GetAllActions()
override {
return actionsInfos; };
312 std::map<gd::String, gd::InstructionMetadata>&
GetAllConditions()
override {
return conditionsInfos; };
317 std::map<gd::String, gd::ExpressionMetadata>&
GetAllExpressions()
override {
return expressionsInfos; };
358 isRenderedIn3D =
true;
368 openFullEditorLabel = label;
372 const gd::String& GetOpenFullEditorLabel()
const {
373 return openFullEditorLabel;
381 inGameEditorResources.push_back(newInGameEditorResource);
382 return inGameEditorResources.back();
385 const std::vector<gd::InGameEditorResourceMetadata>& GetInGameEditorResources()
const {
386 return inGameEditorResources;
389 std::map<gd::String, gd::InstructionMetadata> conditionsInfos;
390 std::map<gd::String, gd::InstructionMetadata> actionsInfos;
391 std::map<gd::String, gd::ExpressionMetadata> expressionsInfos;
392 std::map<gd::String, gd::ExpressionMetadata> strExpressionsInfos;
394 std::vector<gd::String> includeFiles;
396 CreateFunPtr createFunPtr =
nullptr;
408 std::set<gd::String> defaultBehaviorTypes;
409 bool isPrivate =
false;
411 bool isRenderedIn3D =
false;
413 std::vector<gd::InGameEditorResourceMetadata> inGameEditorResources;
415 std::shared_ptr<gd::ObjectConfiguration>
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24