|
Toast Engine
|
One node entry in a prefab file. More...
#include <prefab.hpp>
Public Member Functions | |
| auto | find (std::string_view name) const -> std::optional< Field > |
| auto | findLuaVar (std::string_view path) const -> const LuaVarOverride * |
Public Attributes | |
| std::string | name |
| std::string | type |
| std::vector< Field > | fields |
| std::vector< Group > | groups |
| std::vector< LuaVarOverride > | lua_vars |
| empty for old files or nodes with no edited Lua vars | |
| std::vector< Signal > | signals |
| empty for old files or nodes with no signal connections | |
One node entry in a prefab file.
Holds the node's fully-qualified type name, display name, top-level fields, and groups. find() searches across all levels: flat fields first, then inside each group (and its subgroups). The first entry in Prefab::nodes is always the tree root.