24 NONE, TEX_2D, TEX_CUBEMAP, FRAMEBUFFER, MATERIAL, DAE, PREFAB, SCENE, SCRIPT, TXT, SHADER, SHADER_HANDLE, INI
28 std::string name_path;
33 std::string name_full;
34 std::string extension;
35 std::string class_type;
46 void LoadAssets(
bool isPacked);
50 std::list<AssetMgr::AssetReference*> GetAssets(TYPE type)
const;
52 static std::string LoadAssetFile(
const std::string& path);
54 static std::string GetAssetHash(
const std::string& path);
57 std::list<AssetMgr::AssetReference*> GetAllAssets()
const {
63 void SetAssetManager(AAssetManager* obj);
64 AAssetManager* GetAssetManager();
65 void SetEnv(JNIEnv* obj);
70 void ReadDirectory(
const std::string& path);
71 void ReadPackage(
const std::string& path);
73 AssetReference* CreateAsset(
const std::string& path,
const std::string& name_full, std::string name =
"");
74 AssetReference* CreateAssetFolder(
const std::string& path,
const std::string& name_full);
78 static AssetReference* AppendSubName(AssetReference* asset,
const std::string& sub_name);
81 std::list<AssetReference*> m_assetsList;
82 std::unordered_map<std::string, AssetReference*> m_assets;
83 zip_t* m_zip =
nullptr;
85 AAssetManager* m_assetManager;
86 JNIEnv* m_env =
nullptr;
88#if defined(__ANDROID__) || defined(IOS)
89 std::string m_package_raw;