You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,20 @@
5
5
### Breaking Changes
6
6
7
7
- Renamed the public field `AnonymousAuthenticationPort` to `LocatorPort` on the `AlphaLocatorFlow` class and the `RuntimeConfigDefaults` static class. [#1105](https://github.com/spatialos/gdk-for-unity/pull/1105)
8
+
- Upgraded to Worker SDK `14.0.1`. This brings a number of breaking changes. [#1112](https://github.com/spatialos/gdk-for-unity/pull/1112)
9
+
-`Vector3f` and `Vector3d` are no longer available in the schema standard library.
10
+
- The `Improbable.Coordinates.ToSpatialVector3d()` method has been removed.
11
+
-`LocatorFlow` and `AlphaLocatorFlow` have been merged.
12
+
- The implementation of the old `LocatorFlow` has been removed.
13
+
- The `ConnectionService.AlphaLocator` enum value has been removed.
14
+
- The `ProjectName`, `SteamDeploymentTag`, and `SteamTicket` constants have been removed from the `RuntimeConfigNames` static class.
8
15
9
16
### Added
10
17
11
18
- Added the ability to connect to an arbitrary host/port combo for the `AlphaLocatorFlow`. [#1105](https://github.com/spatialos/gdk-for-unity/pull/1105)
12
19
- Added a `SpatialdManager` class for managing local deployments with `SpatialD` into `io.improbable.gdk.testutils`. [#1104](https://github.com/spatialos/gdk-for-unity/pull/1104)
13
20
- Added the ability to specify a snapshot to be used when launching a deployment in the Editor. [#1098](https://github.com/spatialos/gdk-for-unity/pull/1098)
21
+
- Added the ability to select the modular UDP network type as part of the Worker SDK 14.0.1 upgrade. [#1112](https://github.com/spatialos/gdk-for-unity/pull/1112)
14
22
15
23
### Changed
16
24
@@ -32,6 +40,7 @@
32
40
- Added `spot` downloading to `init.sh` & `init.ps` into the `io.improbable.worker.sdk` package. [#1104](https://github.com/spatialos/gdk-for-unity/pull/1104)
33
41
- Added tests for the `AlphaLocatorFlow` class. [#1108](https://github.com/spatialos/gdk-for-unity/pull/1108)
34
42
-`Option<T>` is now explicitly immutable as a `readonly struct`. [#1110](https://github.com/spatialos/gdk-for-unity/pull/1110)
43
+
- Removed unused arguments from worker configuration files. [#1112](https://github.com/spatialos/gdk-for-unity/pull/1112)
Copy file name to clipboardExpand all lines: UPGRADE_GUIDE.md
+75Lines changed: 75 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,80 @@
1
1
# Upgrade Guide
2
2
3
+
## From `0.2.6` to `0.2.7`
4
+
5
+
### Worker SDK `14.0.1` upgrade
6
+
7
+
The Worker SDK upgrade introduces breaking changes to the connection flow, and removes the `Vector3f` and `Vector3d` types from the standard schema library.
8
+
9
+
#### Removal of `Vector3f` and `Vector3d`
10
+
11
+
These two schema types are no longer available in the standard schema library. You can replace their definitions by first defining a schema file in your project:
12
+
13
+
```
14
+
package my_game;
15
+
16
+
type Vector3f {
17
+
float x = 1;
18
+
float y = 2;
19
+
float z = 3;
20
+
}
21
+
22
+
type Vector3d {
23
+
double x = 1;
24
+
double y = 2;
25
+
double z = 3;
26
+
}
27
+
```
28
+
29
+
You should then replace the import of `improbable/vector.schema` and usage of `improbable.Vector3f`/`improbable.Vector3d` with the schema file you defined.
30
+
31
+
> Note that methods such as `Vector3f.ToUnityVector();` are no longer available and you'll need to reimplement them yourself as extension/static methods. You can find the old implementations here: [`Vector3f`](https://github.com/spatialos/gdk-for-unity/blob/0.2.6/workers/unity/Packages/io.improbable.gdk.tools/.CodeGenerator/GdkCodeGenerator/Partials/Improbable.Vector3f) and [`Vector3d`](https://github.com/spatialos/gdk-for-unity/blob/0.2.6/workers/unity/Packages/io.improbable.gdk.tools/.CodeGenerator/GdkCodeGenerator/Partials/Improbable.Vector3d).
32
+
>
33
+
> You will be unable to reimplement the operators since C# lacks the ability to define operations via extension methods.
34
+
>
35
+
> Note that the `Coordinates` type can be used as a replacement for `Vector3d` as they are structurally the same.
36
+
37
+
#### Connection flow changes
38
+
39
+
The `AlphaLocatorFlow` and the `LocatorFlow` have been merged. This means that your worker connectors may require some changes. Wherever you were previously using the `AlphaLocatorFlow` or the `ConnectionService.AlphaLocator` enum value, you should now be using the `LocatorFlow` and the `ConnectionService.Locator` enum value.
0 commit comments