|
Toast Engine
|
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 |
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.