Commit d68c986
feat: Add NetworkList getter and redo NetworkList tests (#3690)
## Purpose of this PR
Add setter onto `NetworkList` that allows an update to be "forced" even
if the value was not changed.
fixes: #3657
### Jira ticket
MTT-13366
### Changelog
- Added: A `Set` function onto the `NetworkList` that takes an optional
parameter that will force the update to be processed and will ignore the
equality check.
## Documentation
- No documentation changes or additions were necessary.
## Testing & QA (How your changes can be verified during release
Playtest)
### Functional Testing
- [ ] `Manual testing done`
_Automated tests:_
- [x] `Covered by existing automated tests`
- [x] `Covered by new automated tests`
_Does the change require QA team to:_
- [ ] `Review automated tests`?
- [ ] `Execute manual tests`?
- [ ] `Provide feedback about the PR`?
If any boxes above are checked the QA team will be automatically added
as a PR reviewer.
## Backports
This is a 2.x only change
---------
Co-authored-by: Noel Stephens <[email protected]>1 parent 47ed2dd commit d68c986
File tree
6 files changed
+461
-408
lines changed- com.unity.netcode.gameobjects
- Runtime/NetworkVariable/Collections
- Tests/Runtime/NetworkVariable
6 files changed
+461
-408
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
Lines changed: 45 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
597 | 598 | | |
598 | 599 | | |
599 | 600 | | |
600 | | - | |
| 601 | + | |
601 | 602 | | |
602 | 603 | | |
603 | | - | |
| 604 | + | |
604 | 605 | | |
605 | | - | |
606 | | - | |
607 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
608 | 614 | | |
609 | | - | |
610 | | - | |
| 615 | + | |
| 616 | + | |
611 | 617 | | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
618 | 621 | | |
619 | | - | |
| 622 | + | |
620 | 623 | | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
626 | 629 | | |
627 | | - | |
| 630 | + | |
628 | 631 | | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
636 | 639 | | |
637 | | - | |
638 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
639 | 655 | | |
640 | 656 | | |
641 | 657 | | |
| |||
0 commit comments