Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 6f3adc6

Browse files
author
Jamie Brynes
authored
Hotfix - Received Updates should be a reactive component (#971)
1 parent 6d72714 commit 6f3adc6

27 files changed

+64
-10
lines changed

CHANGELOG.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,39 @@
44

55
### Breaking Changes
66

7-
- Schema from packages are no longer copied into the root `schema` directory.
7+
- Schema from packages are no longer copied into the root `schema` directory. [#953](https://github.com/spatialos/gdk-for-unity/pull/953)
88
- Renamed the `Schema` directory within packages to `.schema`, to avoid generating unecessary `.meta` files.
99
- Update feature module schema to the correct namespaces and folders within `.schema`.
1010
- If you use schema that imports from GDK packages, you will need to change how you import GDK schema.
1111
- Schema file Y in package `improbable.gdk.X` is imported using `import "improbable/gdk/X/Y.schema"`.
1212
- For example, `import "from_gdk_packages/com.improbable.gdk.core/common.schema";` now becomes `import "improbable/gdk/core/common.schema";`.
13-
- Upgraded the Unity Entities package to `preview.33` from `preview.21`.
13+
- Upgraded the Unity Entities package to `preview.33` from `preview.21`. [#963](https://github.com/spatialos/gdk-for-unity/pull/963), [#966](https://github.com/spatialos/gdk-for-unity/pull/966), [#967](https://github.com/spatialos/gdk-for-unity/pull/967)
1414
- See the Unity Entities package [changelog](https://docs.unity3d.com/Packages/[email protected]/changelog/CHANGELOG.html) for more information.
1515
- This has removed several APIs such as `[Inject]` and `ComponentDataArray`.
1616
- If you use generic `IComponentData` types, you must explicitly register them. Please view Unity's example on `RegisterGenericComponentType` in the changelog linked above.
1717
- System groups API has changed, systems without a group are automatically added to the `SimulationSystemGroup` which runs on `Update`.
1818
- The Unity Editor will print helpful warnings if any systems are not grouped properly.
19-
- Removed `BlittableBool`, as `bool` is now blittable.
19+
- Removed `BlittableBool`, as `bool` is now blittable. [#965](https://github.com/spatialos/gdk-for-unity/pull/965)
20+
- Fixed a bug where the generated `ReceivedUpdates` component was not correctly wrapped in the `DISABLED_REACTIVE_COMPONENTS` define. [#971](https://github.com/spatialos/gdk-for-unity/pull/971)
21+
- This means that if you have `DISABLE_REACTIVE_COMPONENTS` set, the `ReceivedUpdates` types will no longer be available.
2022

2123
### Changed
2224

23-
- Upgraded the project to be compatible with `2019.1.3f1`.
24-
- Moved Runtime IP from the `GdkToolsConfiguration.json` to the Editor Preferences.
25-
- Moved Dev Auth Token to the Player Preferences.
25+
- Upgraded the project to be compatible with `2019.1.3f1`. [#951](https://github.com/spatialos/gdk-for-unity/pull/951)
26+
- Moved Runtime IP from the `GdkToolsConfiguration.json` to the Editor Preferences. [#961](https://github.com/spatialos/gdk-for-unity/pull/961)
27+
- Moved Dev Auth Token to the Player Preferences. [#961](https://github.com/spatialos/gdk-for-unity/pull/961)
2628
- Added a setting in `GdkToolsConfiguration` to let users configure whether a `DevAuthToken.txt` should be generated or not.
2729
- When launching Android cloud clients from the Editor, the DevAuthToken is now passed in as a command line argument.
28-
- The schema descriptor is no longer deleted when you select `SpatialOS > Clean all workers` from the Unity Editor.
30+
- The schema descriptor is no longer deleted when you select `SpatialOS > Clean all workers` from the Unity Editor. [#969](https://github.com/spatialos/gdk-for-unity/pull/969)
2931

3032
### Fixed
3133

32-
- Fixed a bug where a worker's `World` could get disposed multiple times if you stopped the application inside the Editor while the worker is being created.
34+
- Fixed a bug where a worker's `World` could get disposed multiple times if you stopped the application inside the Editor while the worker is being created. [#952](https://github.com/spatialos/gdk-for-unity/pull/952)
3335

3436
### Internal
3537

36-
- Removed the workaround for a schema component update bug (WRK-1031).
37-
- All playground launch configuration files now use the `w2_r0500_e5` template instead of the `small` template which was deprecated.
38+
- Removed the workaround for a schema component update bug (WRK-1031). [#962](https://github.com/spatialos/gdk-for-unity/pull/962)
39+
- All playground launch configuration files now use the `w2_r0500_e5` template instead of the `small` template which was deprecated. [#968](https://github.com/spatialos/gdk-for-unity/pull/968)
3840

3941
## `0.2.2` - 2019-05-15
4042

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveMapKey.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3500,6 +3500,7 @@ public struct Update : ISpatialComponentUpdate
35003500
public Option<global::System.Collections.Generic.Dictionary<global::Improbable.Gdk.Tests.SomeEnum,string>> Field18;
35013501
}
35023502

3503+
#if !DISABLE_REACTIVE_COMPONENTS
35033504
public struct ReceivedUpdates : IComponentData
35043505
{
35053506
internal uint handle;
@@ -3508,6 +3509,7 @@ public struct ReceivedUpdates : IComponentData
35083509
get => global::Improbable.Gdk.Tests.ExhaustiveMapKey.ReferenceTypeProviders.UpdatesProvider.Get(handle);
35093510
}
35103511
}
3512+
#endif
35113513

35123514
internal class ExhaustiveMapKeyDynamic : IDynamicInvokable
35133515
{

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveMapKeyProviders.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public partial class ExhaustiveMapKey
1313
{
1414
internal static class ReferenceTypeProviders
1515
{
16+
#if !DISABLE_REACTIVE_COMPONENTS
1617
public static class UpdatesProvider
1718
{
1819
private static readonly Dictionary<uint, List<global::Improbable.Gdk.Tests.ExhaustiveMapKey.Update>> Storage = new Dictionary<uint, List<global::Improbable.Gdk.Tests.ExhaustiveMapKey.Update>>();
@@ -79,6 +80,7 @@ private static uint GetNextHandle()
7980
}
8081
}
8182

83+
#endif
8284

8385
public static class Field1Provider
8486
{

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveMapValue.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3500,6 +3500,7 @@ public struct Update : ISpatialComponentUpdate
35003500
public Option<global::System.Collections.Generic.Dictionary<string,global::Improbable.Gdk.Tests.SomeEnum>> Field18;
35013501
}
35023502

3503+
#if !DISABLE_REACTIVE_COMPONENTS
35033504
public struct ReceivedUpdates : IComponentData
35043505
{
35053506
internal uint handle;
@@ -3508,6 +3509,7 @@ public struct ReceivedUpdates : IComponentData
35083509
get => global::Improbable.Gdk.Tests.ExhaustiveMapValue.ReferenceTypeProviders.UpdatesProvider.Get(handle);
35093510
}
35103511
}
3512+
#endif
35113513

35123514
internal class ExhaustiveMapValueDynamic : IDynamicInvokable
35133515
{

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveMapValueProviders.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public partial class ExhaustiveMapValue
1313
{
1414
internal static class ReferenceTypeProviders
1515
{
16+
#if !DISABLE_REACTIVE_COMPONENTS
1617
public static class UpdatesProvider
1718
{
1819
private static readonly Dictionary<uint, List<global::Improbable.Gdk.Tests.ExhaustiveMapValue.Update>> Storage = new Dictionary<uint, List<global::Improbable.Gdk.Tests.ExhaustiveMapValue.Update>>();
@@ -79,6 +80,7 @@ private static uint GetNextHandle()
7980
}
8081
}
8182

83+
#endif
8284

8385
public static class Field1Provider
8486
{

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveOptional.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2906,6 +2906,7 @@ public struct Update : ISpatialComponentUpdate
29062906
public Option<global::Improbable.Gdk.Tests.SomeEnum?> Field18;
29072907
}
29082908

2909+
#if !DISABLE_REACTIVE_COMPONENTS
29092910
public struct ReceivedUpdates : IComponentData
29102911
{
29112912
internal uint handle;
@@ -2914,6 +2915,7 @@ public struct ReceivedUpdates : IComponentData
29142915
get => global::Improbable.Gdk.Tests.ExhaustiveOptional.ReferenceTypeProviders.UpdatesProvider.Get(handle);
29152916
}
29162917
}
2918+
#endif
29172919

29182920
internal class ExhaustiveOptionalDynamic : IDynamicInvokable
29192921
{

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveOptionalProviders.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public partial class ExhaustiveOptional
1313
{
1414
internal static class ReferenceTypeProviders
1515
{
16+
#if !DISABLE_REACTIVE_COMPONENTS
1617
public static class UpdatesProvider
1718
{
1819
private static readonly Dictionary<uint, List<global::Improbable.Gdk.Tests.ExhaustiveOptional.Update>> Storage = new Dictionary<uint, List<global::Improbable.Gdk.Tests.ExhaustiveOptional.Update>>();
@@ -79,6 +80,7 @@ private static uint GetNextHandle()
7980
}
8081
}
8182

83+
#endif
8284

8385
public static class Field1Provider
8486
{

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveRepeated.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3104,6 +3104,7 @@ public struct Update : ISpatialComponentUpdate
31043104
public Option<global::System.Collections.Generic.List<global::Improbable.Gdk.Tests.SomeEnum>> Field18;
31053105
}
31063106

3107+
#if !DISABLE_REACTIVE_COMPONENTS
31073108
public struct ReceivedUpdates : IComponentData
31083109
{
31093110
internal uint handle;
@@ -3112,6 +3113,7 @@ public struct ReceivedUpdates : IComponentData
31123113
get => global::Improbable.Gdk.Tests.ExhaustiveRepeated.ReferenceTypeProviders.UpdatesProvider.Get(handle);
31133114
}
31143115
}
3116+
#endif
31153117

31163118
internal class ExhaustiveRepeatedDynamic : IDynamicInvokable
31173119
{

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveRepeatedProviders.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public partial class ExhaustiveRepeated
1313
{
1414
internal static class ReferenceTypeProviders
1515
{
16+
#if !DISABLE_REACTIVE_COMPONENTS
1617
public static class UpdatesProvider
1718
{
1819
private static readonly Dictionary<uint, List<global::Improbable.Gdk.Tests.ExhaustiveRepeated.Update>> Storage = new Dictionary<uint, List<global::Improbable.Gdk.Tests.ExhaustiveRepeated.Update>>();
@@ -79,6 +80,7 @@ private static uint GetNextHandle()
7980
}
8081
}
8182

83+
#endif
8284

8385
public static class Field1Provider
8486
{

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveSingular.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,6 +1516,7 @@ public struct Update : ISpatialComponentUpdate
15161516
public Option<global::Improbable.Gdk.Tests.SomeEnum> Field18;
15171517
}
15181518

1519+
#if !DISABLE_REACTIVE_COMPONENTS
15191520
public struct ReceivedUpdates : IComponentData
15201521
{
15211522
internal uint handle;
@@ -1524,6 +1525,7 @@ public struct ReceivedUpdates : IComponentData
15241525
get => global::Improbable.Gdk.Tests.ExhaustiveSingular.ReferenceTypeProviders.UpdatesProvider.Get(handle);
15251526
}
15261527
}
1528+
#endif
15271529

15281530
internal class ExhaustiveSingularDynamic : IDynamicInvokable
15291531
{

0 commit comments

Comments
 (0)