Toast Engine
Loading...
Searching...
No Matches
asset_field_access.hpp File Reference

Reflection accessor for assets::Handle<T> members. More...

#include <any>
#include <toast/assets/assets.hpp>
#include <toast/reflect/reflect.hpp>
#include <toast/uid.hpp>
#include <vector>
Include dependency graph for asset_field_access.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  toast::AssetFieldAccess< Class, Handle, Tag >
struct  toast::AssetArrayFieldAccess< Class, Vector, Tag >
 Reflection accessor for a std::vector of assets::Handle<T> members. More...

Detailed Description

Reflection accessor for assets::Handle<T> members.

Author
Xein

get() returns the handle's UID and set() resolves a handle from the UID via assets::load(), if it fails the handle will have a nnullptr but it will still have the UID

TOAST_API