clockworklabs / SpacetimeDB

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

core: Conversion from `txdata::Inputs` to `ReducerContext` #1901

Closed kim closed 4 weeks ago

kim commented 1 month ago

The inputs are stored in the commitlog, and obtained via the existing From impl from ReducerContext.

Add the inverse conversion, necessarily fallible due to bsatn decoding.

Useful for tooling to extract and display the context as metadata.

NOTE: On top of #1899, because tooling work depends on the whole series.