Files
Cubed/include/Cubed/gameplay/model.hpp
zhenyan121 ab605f7590 feat(render): add model ID system with concurrent lookup and namespace-based loading
- Extract `ModelID` and `Model` struct to new `model.hpp`
- Replace `std::unordered_map` with `tbb::concurrent_hash_map` for thread safety
- Add `get_model(ModelID)`, `get_model_id`, `get_model_name` methods
- Parse model names in `namespace:name` format to construct asset paths
- Update `load_model` to accept `string_view` and use ID-based management
2026-07-27 21:03:31 +08:00

7 lines
92 B
C++

#pragma once
#include <cstdint>
using ModelID = uint32_t;
struct Model {
ModelID id;
};