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 categoryFullName = categoryFullName_;
236 return defaultBehaviorTypes;
243 return defaultBehaviorTypes.find(behaviorType) != defaultBehaviorTypes.end();
251 defaultBehaviorTypes.insert(behaviorType);
256 defaultBehaviorTypes.clear();
260 const gd::String& GetName()
const override {
return name; }
261 const gd::String& GetFullName()
const override {
return fullname; }
262 const gd::String& GetCategoryFullName()
const {
return categoryFullName; }
263 const gd::String& GetHelpUrl()
const {
return helpUrl; }
264 const gd::String& GetDescription()
const override {
return description; }
265 const gd::String& GetIconFilename()
const override {
return iconFilename; }
272 ObjectMetadata& SetHelpUrl(
const gd::String& url);
281 ObjectMetadata& SetIncludeFile(
const gd::String& includeFile)
override;
286 ObjectMetadata& AddIncludeFile(
const gd::String& includeFile)
override;
292 std::map<gd::String, gd::InstructionMetadata>&
GetAllActions()
override {
return actionsInfos; };
297 std::map<gd::String, gd::InstructionMetadata>&
GetAllConditions()
override {
return conditionsInfos; };
302 std::map<gd::String, gd::ExpressionMetadata>&
GetAllExpressions()
override {
return expressionsInfos; };
343 isRenderedIn3D =
true;
353 openFullEditorLabel = label;
357 const gd::String& GetOpenFullEditorLabel()
const {
358 return openFullEditorLabel;
366 inGameEditorResources.push_back(newInGameEditorResource);
367 return inGameEditorResources.back();
370 const std::vector<gd::InGameEditorResourceMetadata>& GetInGameEditorResources()
const {
371 return inGameEditorResources;
374 std::map<gd::String, gd::InstructionMetadata> conditionsInfos;
375 std::map<gd::String, gd::InstructionMetadata> actionsInfos;
376 std::map<gd::String, gd::ExpressionMetadata> expressionsInfos;
377 std::map<gd::String, gd::ExpressionMetadata> strExpressionsInfos;
379 std::vector<gd::String> includeFiles;
381 CreateFunPtr createFunPtr =
nullptr;
392 std::set<gd::String> defaultBehaviorTypes;
393 bool isPrivate =
false;
395 bool isRenderedIn3D =
false;
397 std::vector<gd::InGameEditorResourceMetadata> inGameEditorResources;
399 std::shared_ptr<gd::ObjectConfiguration>
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24