GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
ObjectTools.h
1 /*
2  * GDevelop Core
3  * Copyright 2008-2025 Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 #pragma once
7 
8 #include "GDCore/String.h"
9 #include <unordered_set>
10 
11 namespace gd {
12 class Platform;
13 class Object;
14 } // namespace gd
15 
16 namespace gd {
17 
18 class GD_CORE_API ObjectTools {
19 public:
20  static bool IsBehaviorCompatibleWithObject(const gd::Platform &platform,
21  const gd::String &objectType,
22  const gd::String &behaviorType) {
23  std::unordered_set<gd::String> coveredBehaviorType;
24  return IsBehaviorCompatibleWithObject(platform, objectType, behaviorType,
25  coveredBehaviorType);
26  }
27 
28 private:
29  static bool IsBehaviorCompatibleWithObject(
30  const gd::Platform &platform, const gd::String &objectType,
31  const gd::String &behaviorType,
32  std::unordered_set<gd::String> coveredBehaviorType);
33 };
34 
35 } // namespace gd
Definition: ObjectTools.h:18
Base class for implementing a platform.
Definition: Platform.h:42
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24