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

Commit d1a62d6

Browse files
authored
Upgrade Playground API (#899)
* Upgrade Playground to no longer use reactive components * Fix player spawning * Added changelog for Symbol * Remove all [Inject] usage * Cleanup: Remove unneeded CS0649 disable pragmas * Update test code
1 parent 741ba6a commit d1a62d6

File tree

82 files changed

+585
-680
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+585
-680
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
- `Constraint` contains static methods to easily create constraints for an interest query.
1717
- Added a `WithTimeout(TimeSpan timeout)` method to the `RedirectedProcess` class. This allows you to set a timeout for the underlying process execution.
1818
- Added a `Improbable.Gdk.Core.Collections.Result<T, E>` struct to represent a result which can either contain a value `T` or an error `E`.
19+
- Added Scripting Define Symbol `DISABLE_REACTIVE_COMPONENTS`. Using this symbol will disable all reactive componts and systems.
20+
- Currently not compatible with the FPS Starter Project.
1921

2022
### Changed
2123

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// DO NOT EDIT - this file is automatically regenerated.
33
// ===========
44

5+
#if !DISABLE_REACTIVE_COMPONENTS
56
using System.Collections.Generic;
67
using Unity.Entities;
78
using Improbable.Gdk.Core;
@@ -232,3 +233,4 @@ private void LogInvalidAuthorityTransition(Authority newAuthority, Authority exp
232233
}
233234
}
234235
}
236+
#endif

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// DO NOT EDIT - this file is automatically regenerated.
33
// ===========
44

5+
#if !DISABLE_REACTIVE_COMPONENTS
56
using System;
67
using System.Collections.Generic;
78
using UnityEngine;
@@ -159,3 +160,4 @@ public override void AcknowledgeAuthorityLoss(NativeArray<ArchetypeChunk> chunkA
159160
}
160161
}
161162
}
163+
#endif

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// DO NOT EDIT - this file is automatically regenerated.
33
// ===========
44

5+
#if !DISABLE_REACTIVE_COMPONENTS
56
using System.Collections.Generic;
67
using Unity.Entities;
78
using Improbable.Gdk.Core;
@@ -232,3 +233,4 @@ private void LogInvalidAuthorityTransition(Authority newAuthority, Authority exp
232233
}
233234
}
234235
}
236+
#endif

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// DO NOT EDIT - this file is automatically regenerated.
33
// ===========
44

5+
#if !DISABLE_REACTIVE_COMPONENTS
56
using System;
67
using System.Collections.Generic;
78
using UnityEngine;
@@ -159,3 +160,4 @@ public override void AcknowledgeAuthorityLoss(NativeArray<ArchetypeChunk> chunkA
159160
}
160161
}
161162
}
163+
#endif

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// DO NOT EDIT - this file is automatically regenerated.
33
// ===========
44

5+
#if !DISABLE_REACTIVE_COMPONENTS
56
using System.Collections.Generic;
67
using Unity.Entities;
78
using Improbable.Gdk.Core;
@@ -232,3 +233,4 @@ private void LogInvalidAuthorityTransition(Authority newAuthority, Authority exp
232233
}
233234
}
234235
}
236+
#endif

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// DO NOT EDIT - this file is automatically regenerated.
33
// ===========
44

5+
#if !DISABLE_REACTIVE_COMPONENTS
56
using System;
67
using System.Collections.Generic;
78
using UnityEngine;
@@ -159,3 +160,4 @@ public override void AcknowledgeAuthorityLoss(NativeArray<ArchetypeChunk> chunkA
159160
}
160161
}
161162
}
163+
#endif

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// DO NOT EDIT - this file is automatically regenerated.
33
// ===========
44

5+
#if !DISABLE_REACTIVE_COMPONENTS
56
using System.Collections.Generic;
67
using Unity.Entities;
78
using Improbable.Gdk.Core;
@@ -232,3 +233,4 @@ private void LogInvalidAuthorityTransition(Authority newAuthority, Authority exp
232233
}
233234
}
234235
}
236+
#endif

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// DO NOT EDIT - this file is automatically regenerated.
33
// ===========
44

5+
#if !DISABLE_REACTIVE_COMPONENTS
56
using System;
67
using System.Collections.Generic;
78
using UnityEngine;
@@ -159,3 +160,4 @@ public override void AcknowledgeAuthorityLoss(NativeArray<ArchetypeChunk> chunkA
159160
}
160161
}
161162
}
163+
#endif

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// DO NOT EDIT - this file is automatically regenerated.
33
// ===========
44

5+
#if !DISABLE_REACTIVE_COMPONENTS
56
using System.Collections.Generic;
67
using Unity.Entities;
78
using Improbable.Gdk.Core;
@@ -232,3 +233,4 @@ private void LogInvalidAuthorityTransition(Authority newAuthority, Authority exp
232233
}
233234
}
234235
}
236+
#endif

0 commit comments

Comments
 (0)