/** GDevelop - Anchor Behavior Extension Copyright (c) 2016 Victor Levasseur (victorlevasseur52@gmail.com) This project is released under the MIT License. */ #if defined(GD_IDE_ONLY) #include "GDCore/Extensions/PlatformExtension.h" #include "GDCore/Tools/Localization.h" #include void DeclareAnchorBehaviorExtension(gd::PlatformExtension& extension); /** * \brief This class declares information about the JS extension. */ class AnchorBehaviorJsExtension : public gd::PlatformExtension { public: /** * \brief Constructor of an extension declares everything the extension * contains: objects, actions, conditions and expressions. */ AnchorBehaviorJsExtension() { DeclareAnchorBehaviorExtension(*this); GetBehaviorMetadata("AnchorBehavior::AnchorBehavior") .SetIncludeFile("Extensions/AnchorBehavior/anchorruntimebehavior.js"); GD_COMPLETE_EXTENSION_COMPILATION_INFORMATION(); }; }; #if defined(EMSCRIPTEN) extern "C" gd::PlatformExtension* CreateGDJSAnchorBehaviorExtension() { return new AnchorBehaviorJsExtension; } #else /** * Used by GDevelop to create the extension class * -- Do not need to be modified. -- */ extern "C" gd::PlatformExtension* GD_EXTENSION_API CreateGDJSExtension() { return new AnchorBehaviorJsExtension; } #endif #endif