Commit 3ded452
committed
fix: reach the moved NetworkTime through an alias as well
The unified job failed to compile with two CS0104 on NetworkManager.LocalTime and ServerTime:
'NetworkTime' is ambiguous between Unity.Netcode.GameObjects.Timing.NetworkTime and
Unity.NetCode.NetworkTime.
This is a second, distinct mechanism from the one 6013f45 addressed, and the stub used there
could not produce it. That stub modelled N4E after its casing correction, where the colliding
names are members of the enclosing Unity.Netcode namespace and therefore win over any import.
The N4E that the pinned editor actually bundles is still Unity.NetCode, so both names arrive as
imports instead - Unity.NetCode alongside Unity.Netcode.GameObjects.Timing - and two imports
offering the same simple name is an ambiguity rather than a silent rebind.
Before the move NGO's own NetworkTime was a member of Unity.Netcode, which is why the two
imports coexisted for as long as they did.
The alias fixes both mechanisms, so this holds whichever casing is installed. NetworkTime and
NetworkTimeSystem are the only two names at risk: they are the sole intersection between
Runtime/Timing/ and what N4E declares, confirmed against the 6000.7.0a5 bundled package.
Only NetworkManager.cs is affected, being the only file that imports both namespaces and names
either type in a type position.1 parent 9022abd commit 3ded452
1 file changed
Lines changed: 9 additions & 6 deletions
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
877 | 880 | | |
878 | 881 | | |
879 | 882 | | |
880 | | - | |
| 883 | + | |
881 | 884 | | |
882 | 885 | | |
883 | 886 | | |
884 | 887 | | |
885 | | - | |
| 888 | + | |
886 | 889 | | |
887 | 890 | | |
888 | 891 | | |
| |||
0 commit comments