Files
GDevelop/Extensions/PathfindingBehavior/PathfindingObstacleBehavior.h
T
Florian Rival 9b178bc985 Fix "Remove Unused Images" removing images used by BBText object
Don't show the rest in changelog:
* More generally, fix resources exposed by any object declared in JavaScript
* Refactored GetProperties (and UpdateProperty) across behavior/object/behavior shared data to remove the dependency on gd::Project.
2020-06-23 22:40:38 +01:00

46 lines
1.3 KiB
C++

/**
GDevelop - Pathfinding Behavior Extension
Copyright (c) 2010-2016 Florian Rival (Florian.Rival@gmail.com)
This project is released under the MIT License.
*/
#ifndef PATHFINDINGOBSTACLEBEHAVIOR_H
#define PATHFINDINGOBSTACLEBEHAVIOR_H
#include <map>
#include "GDCpp/Runtime/Project/Behavior.h"
namespace gd {
class SerializerElement;
class PropertyDescriptor;
class Project;
class Layout;
} // namespace gd
/**
* \brief Behavior that mark object as being obstacles for objects using
* pathfinding behavior.
*/
class GD_EXTENSION_API PathfindingObstacleBehavior : public Behavior {
public:
PathfindingObstacleBehavior(){};
virtual ~PathfindingObstacleBehavior(){};
virtual Behavior* Clone() const override {
return new PathfindingObstacleBehavior(*this);
}
#if defined(GD_IDE_ONLY)
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;
#endif
virtual void InitializeContent(
gd::SerializerElement& behaviorContent) override;
private:
};
#endif // PATHFINDINGOBSTACLEBEHAVIOR_H