mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-25 04:15:49 -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
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
/**
|
|
|
|
GDevelop - Network Extension
|
|
Copyright (c) 2010-2016 Florian Rival (Florian.Rival@gmail.com)
|
|
This project is released under the MIT License.
|
|
*/
|
|
|
|
#ifndef SCENENETWORKDATAS_H
|
|
#define SCENENETWORKDATAS_H
|
|
|
|
#include "GDCpp/Runtime/Project/BehaviorsSharedData.h"
|
|
#include "RuntimeSceneNetworkDatas.h"
|
|
|
|
/**
|
|
* \brief Data shared by Network Behavior ( i.e. Nothing )
|
|
*/
|
|
class GD_EXTENSION_API SceneNetworkDatas : public gd::BehaviorsSharedData {
|
|
public:
|
|
SceneNetworkDatas(){};
|
|
virtual ~SceneNetworkDatas(){};
|
|
virtual std::shared_ptr<gd::BehaviorsSharedData> Clone() const {
|
|
return std::shared_ptr<gd::BehaviorsSharedData>(
|
|
new SceneNetworkDatas(*this));
|
|
}
|
|
|
|
virtual std::shared_ptr<BehaviorsRuntimeSharedData>
|
|
CreateRuntimeSharedDatas() {
|
|
return std::shared_ptr<BehaviorsRuntimeSharedData>(
|
|
new RuntimeSceneNetworkDatas(*this));
|
|
}
|
|
|
|
#if defined(GD_IDE_ONLY)
|
|
virtual void SerializeTo(gd::SerializerElement& element) const;
|
|
#endif
|
|
|
|
virtual void UnserializeFrom(const gd::SerializerElement& element);
|
|
|
|
private:
|
|
};
|
|
|
|
#endif // SCENENETWORKDATAS_H
|