clockworklabs / SpacetimeDB

Multiplayer at the speed of light
https://spacetimedb.com
Other
4.41k stars 110 forks source link

Special reducers don't preserve user-defined names #1891

Open RReverser opened 4 weeks ago

RReverser commented 4 weeks ago

As per recent API revamp proposal, special reducers attached to init/client_connected/client_disconnected events should preserve user-provided names and use the V9 moduledef out-of-band signal to indicate the lifecycle event it's attached to.

I'm working on the C# counterpart of this (V8 -> V9 migration), but I noticed that Rust implementation of the bindings macro, which already supports V9 moduledef, doesn't preserve the reducer names either.

cc @gefjon