2021-07-25 20:37:30 +01:00
|
|
|
#ifndef VOXEL_INSTANCE_LIBRARY_SCENE_ITEM_H
|
|
|
|
#define VOXEL_INSTANCE_LIBRARY_SCENE_ITEM_H
|
|
|
|
|
2022-01-10 22:56:18 +00:00
|
|
|
#include "voxel_instance_library_item.h"
|
2021-07-25 20:37:30 +01:00
|
|
|
|
|
|
|
#include <scene/resources/packed_scene.h>
|
|
|
|
|
2022-01-09 22:13:10 +00:00
|
|
|
namespace zylann::voxel {
|
|
|
|
|
2022-01-10 22:56:18 +00:00
|
|
|
class VoxelInstanceLibrarySceneItem : public VoxelInstanceLibraryItem {
|
|
|
|
GDCLASS(VoxelInstanceLibrarySceneItem, VoxelInstanceLibraryItem)
|
2021-07-25 20:37:30 +01:00
|
|
|
public:
|
|
|
|
void set_scene(Ref<PackedScene> scene);
|
|
|
|
Ref<PackedScene> get_scene() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
Ref<PackedScene> _scene;
|
|
|
|
};
|
|
|
|
|
2022-01-09 22:13:10 +00:00
|
|
|
} // namespace zylann::voxel
|
|
|
|
|
2021-07-25 20:37:30 +01:00
|
|
|
#endif // VOXEL_INSTANCE_LIBRARY_SCENE_ITEM_H
|