Toast Engine
Loading...
Searching...
No Matches
input_settings.hpp
Go to the documentation of this file.
1
8
9#pragma once
10#include <toast/assets/data.hpp>
11
12namespace assets {
13
14class TOAST_API InputSettings : public Data {
15public:
16 explicit InputSettings(const toml::table& table, const Handle<Schema>& schema = {})
17 : Data(table, schema, Data::keep_all_keys) { }
18
19 [[nodiscard]]
20 auto type() const -> std::string_view override {
21 return "input_settings";
22 }
23
25 [[nodiscard]]
26 auto get() const -> toml::table;
27
28 [[nodiscard]]
29 auto getFloat(std::string_view key, float fallback) const noexcept -> float;
30};
31
32}
Type-safe smart pointer for assets.
Definition core_types.hpp:149
auto get() const -> toml::table
Definition input_assets.cpp:184
Typed data asset backed by schema-driven TOML.