clockworklabs / com.clockworklabs.spacetimedbsdk

The SpacetimeDB SDK for C# clients
https://spacetimedb.com
Apache License 2.0
6 stars 0 forks source link

Simplify update handling as per consistent filtering proposal #93

Closed RReverser closed 3 months ago

RReverser commented 3 months ago

Description of Changes

As a result of the consistent filtering rules proposal (clockworklabs/SpacetimeDB#1256), all equatable types are now natively equatable in C# as well.

This allows us to compare objects directly, without holding and comparing AlgebraicValue in the entries map as well, which has a bit of a domino effect and allows to optimise, simplify or even remove some parts of the SDK.

API

New filtering rules limit types on which filtering can be done, as well as change the return type of FilterBy functions to always be iterable.

Requires SpacetimeDB PRs

https://github.com/clockworklabs/SpacetimeDB/pull/1277