Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
glz::meta< Raven::AssetMeta > Struct Reference

Public Types

using T = Raven::AssetMeta

Static Public Attributes

static constexpr auto read
static constexpr auto write = [](const T& s) -> std::string { return s.Path.filename().string(); }
static constexpr auto value = glz::object("path", glz::custom<read, write>)

Member Typedef Documentation

◆ T

using glz::meta< Raven::AssetMeta >::T = Raven::AssetMeta

Member Data Documentation

◆ read

auto glz::meta< Raven::AssetMeta >::read
staticconstexpr
Initial value:
= [](T& s, const std::string& input, glz::context& ctx)
{
const auto filePath = std::filesystem::path(ctx.current_file);
const auto path = filePath.parent_path() / input;
}
std::string NormalizePath(const std::filesystem::path &path)
Definition Filesystem.cpp:9
Raven::AssetMeta T
Definition AssetManagerBase.cpp:11

◆ value

auto glz::meta< Raven::AssetMeta >::value = glz::object("path", glz::custom<read, write>)
staticconstexpr

◆ write

auto glz::meta< Raven::AssetMeta >::write = [](const T& s) -> std::string { return s.Path.filename().string(); }
staticconstexpr

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