Skip to content

Fix UnityNetworkManager#141

Merged
jdetter merged 7 commits intostagingfrom
ingvar/unity-network-manager
Oct 4, 2024
Merged

Fix UnityNetworkManager#141
jdetter merged 7 commits intostagingfrom
ingvar/unity-network-manager

Conversation

@RReverser
Copy link
Copy Markdown
Contributor

This got broken when we switched to a new DbConnection API.

Keep track of all the active connections and update/destroy them from a singleton game object. Fixes #134.

Marked as a draft for now, because it's untested and because we're not yet sure that singleton for all connections as requested is the right approach.

Description of Changes

Describe what has been changed, any new features or bug fixes

API

  • This is an API breaking change to the SDK

If the API is breaking, please state below what will break

Requires SpacetimeDB PRs

List any PRs here that are required for this SDK change to work

@RReverser RReverser requested a review from jdetter October 2, 2024 21:46
@RReverser RReverser marked this pull request as ready for review October 2, 2024 21:46
@RReverser RReverser force-pushed the ingvar/unity-network-manager branch from 130479b to e4ae059 Compare October 2, 2024 21:46
This got broken when we switched to a new DbConnection API.

Keep track of all the active connections and update/destroy them from a singleton game object. Fixes #134.

Marked as a draft for now, because it's untested and because we're not yet sure that singleton for all connections as requested is the right approach.
@RReverser RReverser force-pushed the ingvar/unity-network-manager branch from e4ae059 to 33ede79 Compare October 2, 2024 22:27
No idea what I'm doing, just following what we did in the meeting.
Copy link
Copy Markdown
Collaborator

@jdetter jdetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this myself and it works. My only nit here is that we really should rename this to something other than UnityNetworkManager. My recommendation would be SpacetimeDBNetworkManager even though it's a bit long.

@jdetter jdetter merged commit b79d90c into staging Oct 4, 2024
@jdetter jdetter deleted the ingvar/unity-network-manager branch October 4, 2024 00:35
bfops added a commit that referenced this pull request Oct 4, 2024
## Description of Changes
Release these changes:
```
2783385 0.12.0 DLLs (again) (#161)
7046408 Update to tests/examples follow codegen changes (#160)
a7c720f Use SpacetimeDBNetworkManager everywhere (#157)
8916c18 Upgrade SDK Version to 0.12 (#156)
b79d90c Fix UnityNetworkManager (#141)
cff42fb Accept multiple queries in Subscribe (#153)
8f9614d Update DLLs for 0.12.0 (#152)
62a092e Jeremie/remove break (#154)
ce76890 Try to catch flaky bugs (#150)
8ce9b7b Remove obsolete tools folder (#149)
19e8979 Fix `gen-client-api` scripts for new CLI API (#151)
f04e2fd Add script to generate `nuget.config` (#115)
f9c71c0 Don't actually try to connect to network in tests (#144)
00d2741 Reduce public API surface further (#145)
2bed3c3 Tighten package sources in C# smoketests (#133)
63e6f79 Fix UnityDebugLogger implementation (#143)
8df6d15 Implement websocket changes atop C# sdk changes (#136)
95b9d17 Hide more APIs (#140)
2aae961 Add DbConnection argument to OnConnect (#138)
0981b89 Merge table cache into table handle (#139)
f8ddab7 Subscription API (#137)
7bef448 c# client SDK (DbConnection + SDK Callbacks) (#131)
65c97ad Logging API (#132)
7941798 Copy files from old repo (#127)
9904a02 Nix `Primitives.cs` - types now defined in main repo (#120)
5e612f3 Update DEVELOP.md to reflect new codegen (#119)
ae7c531 Restore `dotnet pack` functionality (#118)
9481380 Don't use BuiltinType.I/U128, use AlgebraicType.I/U128 (#116)
```
## API
Almost certainly a breaking change


## Requires SpacetimeDB PRs
Requires version 0.12.0 in SpacetimeDB

---------

Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: Jeremie Pelletier <jeremiep@gmail.com>
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
Co-authored-by: SteveGibson <100594800+SteveBoytsun@users.noreply.github.com>
Co-authored-by: Steve Boytsun <steve@clockwokrlabs.io>
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
bfops pushed a commit that referenced this pull request Jul 28, 2025
This got broken when we switched to a new DbConnection API.

Keep track of all the active connections and update/destroy them from a
singleton game object. Fixes #134.

Marked as a draft for now, because it's untested and because we're not
yet sure that singleton for all connections as requested is the right
approach.

## Description of Changes
*Describe what has been changed, any new features or bug fixes*

## API

 - [ ] This is an API breaking change to the SDK

*If the API is breaking, please state below what will break*


## Requires SpacetimeDB PRs
*List any PRs here that are required for this SDK change to work*

---------

Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants