2022-03-17 22:33:22 +01:00
|
|
|
#ifndef PROP_2D_SCENE_INSTANCE_H
|
|
|
|
#define PROP_2D_SCENE_INSTANCE_H
|
2023-12-17 23:24:10 +01:00
|
|
|
|
2022-03-15 13:29:32 +01:00
|
|
|
|
2023-12-10 15:50:54 +01:00
|
|
|
#include "scene/main/node_2d.h"
|
2022-03-15 13:29:32 +01:00
|
|
|
|
|
|
|
#include "props/prop_2d_data.h"
|
|
|
|
#include "scene/resources/packed_scene.h"
|
|
|
|
|
|
|
|
class Prop2DSceneInstance : public Node2D {
|
|
|
|
GDCLASS(Prop2DSceneInstance, Node2D);
|
|
|
|
|
|
|
|
public:
|
|
|
|
Ref<PackedScene> get_scene();
|
|
|
|
void set_scene(const Ref<PackedScene> &data);
|
|
|
|
|
|
|
|
void build();
|
|
|
|
|
|
|
|
Prop2DSceneInstance();
|
|
|
|
~Prop2DSceneInstance();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void _notification(int p_what);
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ref<PackedScene> _scene;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|