2019-11-07 21:32:31 +01:00
|
|
|
#ifndef PROP_DATA_SCENE_H
|
|
|
|
#define PROP_DATA_SCENE_H
|
2019-09-22 02:46:21 +02:00
|
|
|
|
2019-10-10 23:51:05 +02:00
|
|
|
#include "core/math/vector3.h"
|
2020-01-09 04:29:05 +01:00
|
|
|
#include "prop_data_entry.h"
|
2019-09-22 02:46:21 +02:00
|
|
|
|
|
|
|
#include "scene/resources/packed_scene.h"
|
|
|
|
|
2019-11-07 21:32:31 +01:00
|
|
|
class PropDataScene : public PropDataEntry {
|
|
|
|
GDCLASS(PropDataScene, PropDataEntry);
|
2020-01-09 04:29:05 +01:00
|
|
|
|
2019-09-22 02:46:21 +02:00
|
|
|
public:
|
|
|
|
Ref<PackedScene> get_scene() const;
|
|
|
|
void set_scene(const Ref<PackedScene> value);
|
|
|
|
|
2019-10-10 23:51:05 +02:00
|
|
|
bool get_snap_to_mesh();
|
|
|
|
void set_snap_to_mesh(bool value);
|
|
|
|
|
|
|
|
Vector3 get_snap_axis();
|
|
|
|
void set_snap_axis(Vector3 value);
|
|
|
|
|
2019-11-07 21:32:31 +01:00
|
|
|
PropDataScene();
|
|
|
|
~PropDataScene();
|
2019-09-22 02:46:21 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
private:
|
2019-10-10 23:51:05 +02:00
|
|
|
bool _snap_to_mesh;
|
|
|
|
Vector3 _snap_axis;
|
2019-09-22 02:46:21 +02:00
|
|
|
Ref<PackedScene> _scene;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|