#ifndef PKE_ASSET_MANAGER_HPP #define PKE_ASSET_MANAGER_HPP #include "macros.hpp" #include "memory.hpp" #include #include #include #include TypeSafeInt_H(AssetHandle, uint64_t, UINT64_MAX); struct Asset{ char key[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; int64_t size = 0; void *ptr = nullptr; }; void AssetManagerInit(); AssetHandle RegisterAsset(const void *data, int64_t size, const char *key); AssetHandle RegisterAsset(const char *path); void DestroyAsset(AssetHandle assetHandle); const Asset *GetAsset(AssetHandle assetHandle); #endif /* PKE_ASSET_MANAGER_HPP */