Commit 7433a26
test: snapshot unit tests (#1472)
* fix: issue #1151 - client RPCs invoked in OnNetworkSpawn being dropped
* standards.py --fix
* Removed debug log that accidentally got left in.
* Revert "fix: issue #1151 - client RPCs invoked in OnNetworkSpawn being dropped"
This reverts commit d7d7bd7.
# Conflicts:
# com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
# testproject/Assets/Tests/Runtime/MessageOrdering.cs
# testproject/Assets/Tests/Runtime/Support/SpawnRpcDespawn.cs
* New approach to fixing the issue by deferring things that are received before the object is spawned.
* Address review feedback.
* Update com.unity.netcode.gameobjects/Runtime/Spawning/NetworkSpawnManager.cs
Co-authored-by: M. Fatih MAR <mfatihmar@gmail.com>
* Fix bad merge.
* Another merge error
* wip
* wip
* wip, refactored SnapshotSystem to allow unit-testing, without SDK going snapshot-enabled
* bit further, adding NativeList to test assembly, testing that one spawn is received
* test: having the sent snapshot immediately applied locally. Currently causes exception
* refactor: made SnapshotDataMessage handle systemOwners of different types, NetworkManager or not
* improved coverage: spawns and despawns
* starting on a 'lost messages' test
* Fixed memory deallocation in mock snapshot sendmessage
* improved snapshot test coverage
* post-merge adjustment
* post-merge adjustment
* style: applying standards.py
* chore: update PR template to include checklist and info about backports (#1315)
* chore: update PR template to include checklist and info about backports
* Update pull_request_template.md
* test: add checking for ServerRPCParams (#1319)
* chore: adding dry-run promotion job (#1321)
* style: renaming SnapshotRTT to SnapshotRtt (#1252)
* revert unnecessary changes
Co-authored-by: Jaedyn Draper <jaedyn.draper@unity3d.com>
Co-authored-by: Jaedyn Draper <284434+ShadauxCat@users.noreply.github.com>
Co-authored-by: Jeffrey Rainy <jeffrey.rainy@unity3d.com>
Co-authored-by: Andrew Spiering <andrews@unity3d.com>
Co-authored-by: Matt Walsh <69258106+mattwalsh-unity@users.noreply.github.com>1 parent 387ebf3 commit 7433a26
File tree
13 files changed
+624
-319
lines changed- com.unity.netcode.gameobjects
- Runtime
- Configuration
- Core
- Messaging/Messages
- Tests
- Editor
- Runtime
13 files changed
+624
-319
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
558 | | - | |
559 | 557 | | |
560 | 558 | | |
561 | 559 | | |
| |||
568 | 566 | | |
569 | 567 | | |
570 | 568 | | |
| 569 | + | |
| 570 | + | |
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| |||
Lines changed: 211 additions & 146 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
| |||
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | | - | |
| 144 | + | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
149 | | - | |
| 148 | + | |
150 | 149 | | |
151 | | - | |
152 | | - | |
| 150 | + | |
153 | 151 | | |
154 | | - | |
155 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
156 | 159 | | |
157 | | - | |
158 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
159 | 170 | | |
160 | 171 | | |
161 | 172 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments