Toast Engine
Loading...
Searching...
No Matches
event::_detail::ProtoEntry Struct Reference

Dispatch table for one protobuf-backed event type over the FFI. More...

#include <proto_event.hpp>

Public Attributes

int(* send )(const uint8_t *data, uint32_t size)
 C# -> engine: deserializes bytes and dispatches the event.
void(* subscribe )(Listener &, event_callback, void *user_data, char priority, const char *label)
 engine -> C#: serializes the event and calls the C# callback
void(* unsubscribe )(Listener &, const char *label)
 cancels a subscription by label

Detailed Description

Dispatch table for one protobuf-backed event type over the FFI.

Populated by registerProtoEvent<T>() and stored in the proto registry. The three function pointers cover the three directions of the FFI bridge: sending from C#, subscribing from C#, and cancelling a subscription.


The documentation for this struct was generated from the following file: