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

◆ Expanse() [4/5]

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

Construct with a named containment predicate and crossing actions.

Parameters
fn_nameIdentifier used for state encoding.
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 103 of file Expanse.hpp.

104 : m_fn_name(std::move(fn_name))
105 , m_contains(std::move(contains))
106 , m_on_enter(std::move(on_enter))
107 , m_on_exit(std::move(on_exit))
108 {
109 }
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 & fn_name() const
Identifier assigned to the containment predicate, empty if anonymous.
Definition Expanse.hpp:156