mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 18:45:48 -04:00
a8559bfbbc
* Update all CMakeLists of extensions to use clang-format * Run clang-format on all Extensions * Update GDCore CMakeLists.txt to add clang-format * Run clang-format on GDCore files * Update GDJS and GDCpp CMakeLists.txt to add clang-format * Run clang-format on GDCpp and GDJS files
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
/**
|
|
|
|
GDevelop - Path Behavior Extension
|
|
Copyright (c) 2010-2016 Florian Rival (Florian.Rival@gmail.com)
|
|
This project is released under the MIT License.
|
|
*/
|
|
|
|
#ifndef SCENEPATHDATAS_H
|
|
#define SCENEPATHDATAS_H
|
|
|
|
#include <SFML/System/Vector2.hpp>
|
|
#include <map>
|
|
#include <vector>
|
|
#include "GDCpp/Runtime/Project/BehaviorsSharedData.h"
|
|
#include "GDCpp/Runtime/String.h"
|
|
#include "RuntimeScenePathDatas.h"
|
|
|
|
/**
|
|
* Datas shared by Path Behavior
|
|
*/
|
|
class GD_EXTENSION_API ScenePathDatas : public gd::BehaviorsSharedData {
|
|
public:
|
|
ScenePathDatas(){};
|
|
virtual ~ScenePathDatas(){};
|
|
virtual std::shared_ptr<gd::BehaviorsSharedData> Clone() const {
|
|
return std::shared_ptr<gd::BehaviorsSharedData>(new ScenePathDatas(*this));
|
|
}
|
|
|
|
virtual std::shared_ptr<BehaviorsRuntimeSharedData>
|
|
CreateRuntimeSharedDatas() {
|
|
return std::shared_ptr<BehaviorsRuntimeSharedData>(
|
|
new RuntimeScenePathDatas(*this));
|
|
}
|
|
|
|
#if defined(GD_IDE_ONLY)
|
|
virtual void SerializeTo(gd::SerializerElement& element) const;
|
|
#endif
|
|
|
|
virtual void UnserializeFrom(const gd::SerializerElement& element);
|
|
|
|
std::map<gd::String, std::vector<sf::Vector2f> >
|
|
globalPaths; ///< Map containing all the global paths
|
|
|
|
private:
|
|
};
|
|
|
|
#endif // SCENEPATHDATAS_H
|