14 void play(
const Ts &...
x)
override { this->
parent_->trigger(this->event_type_.value(
x...)); }
20 event->add_on_event_callback([
this](
StringRef event_type) { this->
trigger(event_type); });
virtual void play(const Ts &...x)=0
Helper class to easily give an object a parent of type T.
StringRef is a reference to a string owned by something else.
void trigger(const Ts &...x)
EventTrigger(Event *event)
TEMPLATABLE_VALUE(std::string, event_type) void play(const Ts &...x) override
Providing packet encoding functions for exchanging data with a remote host.