|
Toast Engine
|
Reflection accessor for a std::vector of assets::Handle<T> members. More...
#include <asset_field_access.hpp>
Public Types | |
| using | Handle = typename Vector::value_type |
| using | AssetType = typename Handle::asset_type |
Static Public Member Functions | |
| static auto | get (void *obj) -> std::any |
| static void | set (void *obj, std::any value) |
Reflection accessor for a std::vector of assets::Handle<T> members.
The reflection boundary exchanges a std::vector<UID>, matching how uid_t array fields are serialized. get() collects each handle's UID; set() resolves a fresh handle per UID via assets::load(), preserving the UID even when an asset fails to resolve