clockworklabs / SpacetimeDB

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

C# codegen making state relative to a DbConnection #1869

Closed lcodes closed 3 weeks ago

lcodes commented 1 month ago

Description of Changes

Make the static fields indexing primary keys instance fields.

API and ABI breaking changes

Expected complexity level and risk

Testing

Codegen compiles. Same code as before but going through a this pointer instead of a static .

Context from Boppy: The Unity testsuite exercises this feature in the testsuite: https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/pull/168

lcodes commented 3 weeks ago

@RReverser updated, should be good to go now