mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 10:35:35 -04:00
9b178bc985
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.
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
/**
|
|
|
|
GDevelop - Physics Behavior Extension
|
|
Copyright (c) 2010-2016 Florian Rival (Florian.Rival@gmail.com)
|
|
This project is released under the MIT License.
|
|
*/
|
|
|
|
#ifndef SCENEPHYSICSDATAS_H
|
|
#define SCENEPHYSICSDATAS_H
|
|
|
|
#include "GDCpp/Runtime/Project/BehaviorsSharedData.h"
|
|
#include "RuntimeScenePhysicsDatas.h"
|
|
|
|
/**
|
|
* \brief Handle the data shared by Physics Behavior
|
|
*/
|
|
class ScenePhysicsDatas : public gd::BehaviorsSharedData {
|
|
public:
|
|
ScenePhysicsDatas(){};
|
|
virtual ~ScenePhysicsDatas(){};
|
|
virtual ScenePhysicsDatas* Clone() const override {
|
|
return new ScenePhysicsDatas(*this);
|
|
}
|
|
|
|
#if defined(GD_IDE_ONLY)
|
|
virtual std::map<gd::String, gd::PropertyDescriptor> GetProperties(
|
|
const gd::SerializerElement& behaviorSharedDataContent) const override;
|
|
virtual bool UpdateProperty(gd::SerializerElement& behaviorSharedDataContent,
|
|
const gd::String& name,
|
|
const gd::String& value) override;
|
|
#endif
|
|
virtual void InitializeContent(
|
|
gd::SerializerElement& behaviorSharedDataContent) override;
|
|
};
|
|
|
|
#endif // SCENEPHYSICSDATAS_H
|