Asset representing one input action loaded from a .taction file.
More...
#include <input_action.hpp>
|
|
| Action (const toml::table &table, Handle< Schema > schema={}) |
| auto | type () const -> std::string_view override |
| auto | get () const -> toml::table |
| auto | name () const noexcept -> std::string_view |
| auto | functionName () const noexcept -> std::string_view |
| auto | description () const noexcept -> std::string_view |
| auto | valueType () const noexcept -> ActionValueType |
| auto | accumulation () const noexcept -> AccumulationType |
|
| Data (const toml::table &table, Handle< Schema > schema={}) |
|
| Data (const toml::table &table, Handle< Schema > schema, KeepAllKeysTag) |
| | Stores the schema handle for round-trip serialization but runs free-form buildRoot, keeping every TOML key.
|
| auto | type () const -> std::string_view override |
|
auto | operator[] (std::string_view k) -> DataValue & |
|
auto | operator[] (std::string_view k) const -> const DataValue & |
|
auto | contains (std::string_view k) const -> bool |
|
auto | root () const -> const DataValue & |
|
auto | schema () const -> const Handle< Schema > & |
| auto | serialize (SaveMode mode) const -> std::vector< uint8_t > override |
| virtual void | reload (const toml::table &table) |
| | Re-parses the asset contents in place.
|
|
| Asset (const Asset &)=delete |
|
auto | operator= (const Asset &) -> Asset &=delete |
|
auto | refCount () const noexcept -> uint32_t |
|
| void | onReloaded () override |
|
void | addRef () noexcept |
|
void | release () noexcept |
Asset representing one input action loaded from a .taction file.
◆ accumulation()
- Returns
- How values from multiple binds are combined
◆ description()
| auto assets::Action::description |
( |
| ) |
const -> std::string_view |
|
nodiscardnoexcept |
- Returns
- The action's human-readable description
◆ functionName()
| auto assets::Action::functionName |
( |
| ) |
const -> std::string_view |
|
nodiscardnoexcept |
- Returns
- The reflected function this action invokes
◆ get()
| auto assets::Action::get |
( |
| ) |
const -> toml::table |
|
nodiscard |
- Returns
- A reconstructed TOML table preserving all bind, trigger and modifier entries
◆ name()
| auto assets::Action::name |
( |
| ) |
const -> std::string_view |
|
nodiscardnoexcept |
- Returns
- The action's display name
◆ onReloaded()
| void assets::Action::onReloaded |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ type()
| auto assets::Action::type |
( |
| ) |
const -> std::string_view |
|
inlinenodiscardoverridevirtual |
◆ valueType()
- Returns
- The value domain (0D, 1D or 2D)
The documentation for this class was generated from the following files:
- engine/src/toast/input/assets/input_action.hpp
- engine/src/toast/input/assets/input_assets.cpp