MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ Expanse() [5/5]

MayaFlux::Nexus::Expanse::Expanse ( std::string  fn_name,
std::string  on_enter_fn_name,
std::string  on_exit_fn_name,
ContainsFn  contains,
CrossingFn  on_enter,
CrossingFn  on_exit 
)
inline

Construct with named containment predicate and named crossing actions.

Parameters
fn_nameIdentifier for the containment predicate.
on_enter_fn_nameIdentifier for the on_enter callable.
on_exit_fn_nameIdentifier for the on_exit callable.
containsReturns true when a world position lies within the Expanse.
on_enterFired with the entity id when it enters. May be empty.
on_exitFired with the entity id when it leaves. May be empty.

Definition at line 120 of file Expanse.hpp.

126 : m_fn_name(std::move(fn_name))
129 , m_contains(std::move(contains))
130 , m_on_enter(std::move(on_enter))
131 , m_on_exit(std::move(on_exit))
132 {
133 }
Expanse::ContainsFn contains
Definition Decoder.cpp:517
Expanse::CrossingFn on_enter
Definition Decoder.cpp:518
Expanse::CrossingFn on_exit
Definition Decoder.cpp:519
const std::string & on_enter_fn_name() const
Identifier assigned to the on_enter callable, empty if anonymous.
Definition Expanse.hpp:162
std::string m_on_enter_fn_name
Definition Expanse.hpp:339
const std::string & on_exit_fn_name() const
Identifier assigned to the on_exit callable, empty if anonymous.
Definition Expanse.hpp:168
std::string m_on_exit_fn_name
Definition Expanse.hpp:340
const std::string & fn_name() const
Identifier assigned to the containment predicate, empty if anonymous.
Definition Expanse.hpp:156