Open BrandonDyer64 opened 1 year ago
Currently, communication is handled through Bevy's EventReader and EventWriter. What I'd like is some kind of ModConnection struct instead that maps directly to the ffi calls rather than overly abstracting them.
EventReader
EventWriter
ModConnection
Current:
fn system(in: EventReader<In>, out: EventWriter<Out>)
Proposed:
fn system(conn: ModConnection<In, Out>)
Perhaps a standardized Protocol type could be established that would hold these more obtuse types. i.e.
Protocol
fn system(conn: ModConnection<MyProtocol>)
Currently, communication is handled through Bevy's
EventReader
andEventWriter
. What I'd like is some kind ofModConnection
struct instead that maps directly to the ffi calls rather than overly abstracting them.Current:
Proposed:
Perhaps a standardized
Protocol
type could be established that would hold these more obtuse types. i.e.