Blender V5.3
essentials_library.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_string_ref.hh"
12
13#include "on_disk_library.hh"
14#include "remote_library.hh"
15
16namespace blender::asset_system {
17
19 public:
21
22 void force_remote_listing_download() const override;
23 std::optional<AssetLibraryReference> library_reference() const override;
24 std::optional<eAssetImportMethod> import_method() const override;
25
26 void refresh_catalogs() override;
27};
28
30 public:
32
33 /* Trailing slash matters! */
34 static constexpr StringRefNull URL =
35 "https://cdn.extensions.blender.org/asset-libraries/essentials/";
36
37 std::optional<AssetLibraryReference> library_reference() const override;
38};
39
40} // namespace blender::asset_system
std::optional< AssetLibraryReference > library_reference() const override
std::optional< eAssetImportMethod > import_method() const override
OnDiskAssetLibrary(eAssetLibraryType library_type, StringRef name, StringRef root_path, bool is_read_only)
std::optional< AssetLibraryReference > library_reference() const override
RemoteAssetLibrary(eAssetLibraryType library_type, bool is_read_only, StringRef remote_url, StringRef name, StringRef root_path)