diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-11-14 14:46:23 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-11-14 14:46:23 -0500 |
| commit | b2548ba4ce295fcd94a50123fb543fac2ef2bc33 (patch) | |
| tree | 444a32abb4a094c4fa2f7bc9a95aa86963ad4110 /src/asset-manager.hpp | |
| parent | b1d926361b9d613ad712ad161f9a8b7ccab4551d (diff) | |
add pk.h and major pkmem refactor
Completely replaces the memory module with pkmem
pkmem is a newer implementation of the same
bucket memory structure.
Also includes replacing pkstr.h with pk.h's pkstr
Diffstat (limited to 'src/asset-manager.hpp')
| -rw-r--r-- | src/asset-manager.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/asset-manager.hpp b/src/asset-manager.hpp index 6204614..4d96c59 100644 --- a/src/asset-manager.hpp +++ b/src/asset-manager.hpp @@ -1,18 +1,17 @@ #ifndef PKE_ASSET_MANAGER_HPP #define PKE_ASSET_MANAGER_HPP -#include "macros.hpp" -#include "memory.hpp" +#include "vendor/pk.h" #include <cstdint> #include <future> -struct AssetHandle : public PkeHandle { }; +struct AssetHandle : public pk_handle { }; -constexpr AssetHandle AssetHandle_MAX = AssetHandle{}; +constexpr AssetHandle AssetHandle_MAX = AssetHandle{ pk_handle_MAX_constexpr }; -TypeSafeInt_Const_Expr(AssetLoadingState, uint8_t, 0xFF); -TypeSafeInt_Const_Expr(AssetType, uint8_t, 0xFF); +TypeSafeInt_constexpr(AssetLoadingState, uint8_t, 0xFF); +TypeSafeInt_constexpr(AssetType, uint8_t, 0xFF); const int64_t AssetKeyLength = 16; using AssetKey = char[AssetKeyLength]; |
