/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/Fmod/EditorPluginFmod/SoundBankAsset/SoundBankAssetManager.h
42 строки
2 KB
Jan Krassnigg
AngelScript: arrays, line debug draw, bugfixes (#1488)
18 фев 2025, 09:52
Не верифицирован
18 фев 2025, 09:52
0af00f6
Код
Авторство
О чём код?
#pragma once #include <EditorFramework/Assets/AssetDocumentManager.h> #include <Foundation/Types/Status.h> class ezSimpleFmod; class ezSoundBankAssetDocumentManager : public ezAssetDocumentManager { EZ_ADD_DYNAMIC_REFLECTION(ezSoundBankAssetDocumentManager, ezAssetDocumentManager); public: ezSoundBankAssetDocumentManager(); ~ezSoundBankAssetDocumentManager(); virtual OutputReliability GetAssetTypeOutputReliability() const override { return ezAssetDocumentManager::OutputReliability::Perfect; } virtual void FillOutSubAssetList(const ezAssetDocumentInfo& assetInfo, ezDynamicArray<ezSubAssetData>& out_subAssets) const override; virtual ezString GetAssetTableEntry(const ezSubAsset* pSubAsset, ezStringView sDataDirectory, const ezPlatformProfile* pAssetProfile) const override; private: void OnDocumentManagerEvent(const ezDocumentManager::Event& e); ezString GetSoundBankAssetTableEntry(const ezSubAsset* pSubAsset, ezStringView sDataDirectory, const ezPlatformProfile* pAssetProfile) const; virtual void InternalCreateDocument(ezStringView sDocumentTypeName, ezStringView sPath, bool bCreateNewDocument, ezDocument*& out_pDocument, const ezDocumentObject* pOpenContext) override; virtual void InternalGetSupportedDocumentTypes(ezDynamicArray<const ezDocumentTypeDescriptor*>& inout_DocumentTypes) const override; virtual bool GeneratesProfileSpecificAssets() const override { return true; } virtual ezUInt64 ComputeAssetProfileHashImpl(const ezPlatformProfile* pAssetProfile) const override; ezAssetDocumentTypeDescriptor m_DocTypeDesc; ezUniquePtr<ezSimpleFmod> m_pFmod; struct SoundBankCache { ezTimestamp m_LastModification; ezDynamicArray<ezSubAssetData> m_CachedSubAssets; }; mutable ezMap<ezUuid, SoundBankCache> m_Cache; };