Files
GDevelop/Extensions/PlatformBehavior/PlatformBehavior.h
T

51 lines
1.3 KiB
C++

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