pandemonium_engine/modules/props_2d/prop_2d_scene_instance.h

31 lines
534 B
C++
Raw Normal View History

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
#include "scene/main/node_2d.h"
#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