Files

50 lines
1.2 KiB
C++

/**
GDevelop - Platform Behavior Extension
Copyright (c) 2013-2016 Florian Rival (Florian.Rival@gmail.com)
This project is released under the MIT License.
*/
#pragma once
#include "GDCore/Project/Behavior.h"
#include "GDCore/Project/Object.h"
class ScenePlatformObjectsManager;
class RuntimeScene;
namespace gd {
class SerializerElement;
}
#if defined(GD_IDE_ONLY)
#include <map>
namespace gd {
class PropertyDescriptor;
class Project;
class Layout;
} // namespace gd
#endif
/**
* \brief Behavior that mark object as being a platform for objects using
* PlatformerObject behavior.
*/
class GD_EXTENSION_API PlatformBehavior : public gd::Behavior {
public:
PlatformBehavior(){};
virtual ~PlatformBehavior(){};
virtual std::unique_ptr<gd::Behavior> Clone() const override {
return gd::make_unique<PlatformBehavior>(*this);
}
virtual std::map<gd::String, gd::PropertyDescriptor> GetProperties(
const gd::SerializerElement& behaviorContent) const override;
virtual bool UpdateProperty(gd::SerializerElement& behaviorContent,
const gd::String& name,
const gd::String& value) override;
virtual void InitializeContent(
gd::SerializerElement& behaviorContent) override;
private:
};