Toast Engine
Loading...
Searching...
No Matches
assets::Prefab::Field Struct Reference

One field value read from a prefab file. More...

#include <prefab.hpp>

Public Member Functions

template<typename T>
auto as () const -> T

Public Attributes

std::string name
toast::FieldType type
bool is_array
std::any value

Detailed Description

One field value read from a prefab file.

Holds the field name, serialization type, array flag, and the deserialized value as std::any. Use as<T>() to extract the value without a manual any_cast.


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