godot_voxel/terrain/instancing/voxel_instance_library_scene_item.h

25 lines
572 B
C++

#ifndef VOXEL_INSTANCE_LIBRARY_SCENE_ITEM_H
#define VOXEL_INSTANCE_LIBRARY_SCENE_ITEM_H
#include "voxel_instance_library_item.h"
#include <scene/resources/packed_scene.h>
namespace zylann::voxel {
class VoxelInstanceLibrarySceneItem : public VoxelInstanceLibraryItem {
GDCLASS(VoxelInstanceLibrarySceneItem, VoxelInstanceLibraryItem)
public:
void set_scene(Ref<PackedScene> scene);
Ref<PackedScene> get_scene() const;
private:
static void _bind_methods();
Ref<PackedScene> _scene;
};
} // namespace zylann::voxel
#endif // VOXEL_INSTANCE_LIBRARY_SCENE_ITEM_H