Toast Engine
Loading...
Searching...
No Matches
toast::AssetArrayFieldAccess< Class, Vector, Tag > Struct Template Reference

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)

Detailed Description

template<class Class, typename Vector, typename Tag>
struct toast::AssetArrayFieldAccess< Class, Vector, Tag >

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


The documentation for this struct was generated from the following file: