feat: add audio system

This commit is contained in:
2026-10-23 22:07:52 +02:00
parent a3d3da4a67
commit 0b7cc38543
28 changed files with 7412 additions and 214 deletions
+10
View File
@@ -2,6 +2,7 @@
#define EDITOR_ASSETBROWSER_H
#include <filesystem>
#include <future>
#include <optional>
#include <string>
#include <vector>
@@ -10,6 +11,8 @@ class AssetBrowser final {
public:
std::optional<std::string> Draw(bool* open = nullptr);
void ConfigureCooking(std::filesystem::path cooker, std::vector<std::string> schemes);
private:
struct Entry {
std::string name;
@@ -17,6 +20,8 @@ private:
};
void Refresh();
void StartCook();
void PollCook();
void Navigate(const std::string& scheme, const std::filesystem::path& folder);
[[nodiscard]] std::string VirtualPath(const std::string& name) const;
void DrawEntry(const Entry& entry, std::optional<std::string>& opened, bool& navigated);
@@ -27,6 +32,11 @@ private:
std::vector<Entry> m_Entries;
std::string m_Filter;
bool m_Dirty{true};
std::filesystem::path m_Cooker;
std::vector<std::string> m_CookSchemes;
std::future<bool> m_Cook;
bool m_AppFocused{true};
};
#endif // EDITOR_ASSETBROWSER_H