@@ -40,8 +40,7 @@ class Object;
40
40
class ObjectConfiguration ;
41
41
} // namespace gd
42
42
43
- typedef std::function<std::unique_ptr<gd::ObjectConfiguration>()>
44
- CreateFunPtr;
43
+ typedef std::function<std::unique_ptr<gd::ObjectConfiguration>()> CreateFunPtr;
45
44
46
45
namespace gd {
47
46
@@ -51,25 +50,25 @@ namespace gd {
51
50
*/
52
51
class GD_CORE_API CompilationInfo {
53
52
public:
54
- CompilationInfo () : informationCompleted( false ) {};
55
- virtual ~CompilationInfo (){};
53
+ CompilationInfo () {};
54
+ virtual ~CompilationInfo () {};
56
55
57
- bool informationCompleted;
56
+ bool informationCompleted = false ;
58
57
59
- bool runtimeOnly; // /< True if the extension was compiled for a runtime use
60
- // /< only
58
+ bool runtimeOnly = false ; // /< True if the extension was compiled for a
59
+ // /< runtime use only
61
60
62
61
#if defined(__GNUC__)
63
- int gccMajorVersion;
64
- int gccMinorVersion;
65
- int gccPatchLevel;
62
+ int gccMajorVersion = 0 ;
63
+ int gccMinorVersion = 0 ;
64
+ int gccPatchLevel = 0 ;
66
65
#endif
67
66
68
- int sfmlMajorVersion;
69
- int sfmlMinorVersion;
67
+ int sfmlMajorVersion = 0 ;
68
+ int sfmlMinorVersion = 0 ;
70
69
71
70
gd::String gdCoreVersion;
72
- int sizeOfpInt;
71
+ int sizeOfpInt = 0 ;
73
72
};
74
73
75
74
struct GD_CORE_API DuplicatedInstructionOptions {
@@ -239,11 +238,12 @@ class GD_CORE_API PlatformExtension {
239
238
* \param instance The "blueprint" object to be copied when a new object is
240
239
asked for.
241
240
*/
242
- gd::ObjectMetadata& AddObject (const gd::String& name_,
243
- const gd::String& fullname_,
244
- const gd::String& description_,
245
- const gd::String& icon_,
246
- std::shared_ptr<gd::ObjectConfiguration> instance);
241
+ gd::ObjectMetadata& AddObject (
242
+ const gd::String& name_,
243
+ const gd::String& fullname_,
244
+ const gd::String& description_,
245
+ const gd::String& icon_,
246
+ std::shared_ptr<gd::ObjectConfiguration> instance);
247
247
248
248
/* *
249
249
* \brief Declare a new events based object as being part of the extension.
@@ -253,11 +253,10 @@ class GD_CORE_API PlatformExtension {
253
253
* \param description The user friendly description of the object
254
254
* \param icon The icon of the object.
255
255
*/
256
- gd::ObjectMetadata& AddEventsBasedObject (
257
- const gd::String& name_,
258
- const gd::String& fullname_,
259
- const gd::String& description_,
260
- const gd::String& icon_);
256
+ gd::ObjectMetadata& AddEventsBasedObject (const gd::String& name_,
257
+ const gd::String& fullname_,
258
+ const gd::String& description_,
259
+ const gd::String& icon_);
261
260
262
261
/* *
263
262
* \brief Declare a new behavior as being part of the extension.
@@ -420,8 +419,7 @@ class GD_CORE_API PlatformExtension {
420
419
PlatformExtension& SetTags (const gd::String& csvTags) {
421
420
tags.clear ();
422
421
tags = csvTags.Split (' ,' );
423
- for (size_t i = 0 ; i < tags.size (); i++)
424
- {
422
+ for (size_t i = 0 ; i < tags.size (); i++) {
425
423
tags[i] = tags[i].Trim ().LowerCase ();
426
424
}
427
425
return *this ;
@@ -634,31 +632,30 @@ class GD_CORE_API PlatformExtension {
634
632
*/
635
633
static gd::String GetNamespaceSeparator () { return " ::" ; }
636
634
637
- static gd::String GetEventsFunctionFullType (const gd::String &extensionName,
638
- const gd::String &functionName);
639
-
640
- static gd::String
641
- GetBehaviorEventsFunctionFullType (const gd::String &extensionName,
642
- const gd::String &behaviorName,
643
- const gd::String &functionName);
635
+ static gd::String GetEventsFunctionFullType (const gd::String& extensionName,
636
+ const gd::String& functionName);
644
637
645
- static gd::String GetBehaviorFullType (const gd::String &extensionName,
646
- const gd::String &behaviorName);
638
+ static gd::String GetBehaviorEventsFunctionFullType (
639
+ const gd::String& extensionName,
640
+ const gd::String& behaviorName,
641
+ const gd::String& functionName);
647
642
648
- static gd::String
649
- GetObjectEventsFunctionFullType (const gd::String &extensionName,
650
- const gd::String &objectName,
651
- const gd::String &functionName);
643
+ static gd::String GetBehaviorFullType (const gd::String& extensionName,
644
+ const gd::String& behaviorName);
652
645
653
- static gd::String GetObjectFullType (const gd::String &extensionName,
654
- const gd::String &objectName);
646
+ static gd::String GetObjectEventsFunctionFullType (
647
+ const gd::String& extensionName,
648
+ const gd::String& objectName,
649
+ const gd::String& functionName);
655
650
651
+ static gd::String GetObjectFullType (const gd::String& extensionName,
652
+ const gd::String& objectName);
656
653
657
654
static gd::String GetExtensionFromFullObjectType (const gd::String& type);
658
655
659
656
static gd::String GetObjectNameFromFullObjectType (const gd::String& type);
660
657
661
- private:
658
+ private:
662
659
/* *
663
660
* Set the namespace (the string all actions/conditions/expressions start
664
661
* with).
@@ -673,10 +670,10 @@ class GD_CORE_API PlatformExtension {
673
670
gd::String fullname; // /< Name displayed to users in the editor.
674
671
gd::String informations; // /< Description displayed to users in the editor.
675
672
gd::String category;
676
- gd::String author; // /< Author displayed to users in the editor.
677
- gd::String license; // /< License name displayed to users in the editor.
678
- bool deprecated; // /< true if the extension is deprecated and shouldn't be
679
- // /< shown in IDE.
673
+ gd::String author; // /< Author displayed to users in the editor.
674
+ gd::String license; // /< License name displayed to users in the editor.
675
+ bool deprecated; // /< true if the extension is deprecated and shouldn't be
676
+ // /< shown in IDE.
680
677
gd::String helpPath; // /< The relative path to the help for this extension in
681
678
// /< the documentation.
682
679
gd::String iconUrl; // /< The URL to the icon to be shown for this extension.
0 commit comments