MCPcopy Create free account
hub / github.com/alecthomas/entityx / EventCallbackWrapper

Method EventCallbackWrapper

entityx/Event.h:208–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206 template <typename E>
207 struct EventCallbackWrapper {
208 EventCallbackWrapper(std::function<void(const E &)> callback) : callback(callback) {}
209 void operator()(const void *event) { callback(*(static_cast<const E*>(event))); }
210 std::function<void(const E &)> callback;
211 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected