Skip to content

Commit 6c45d2a

Browse files
Merge develop-3.x.x into fix/csharp14-contains-ambiguity-universalrpctests
2 parents 40fc8fd + 72a7a0e commit 6c45d2a

4 files changed

Lines changed: 18 additions & 6 deletions

File tree

‎com.unity.netcode.gameobjects/Runtime/Components/Helpers/UnifiedBootstrap.cs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ internal class UnifiedBootstrap : ClientServerBootstrap
2929

3030
// Every ClientServerBootstrap constructor clears N4E's ServerWorlds and ClientWorlds, and each NetworkManager
3131
// creates its own bootstrap, so the worlds created for other NetworkManagers are registered again.
32-
private static readonly List<NetcodeWorld> s_CreatedWorlds = new List<NetcodeWorld>();
32+
private static readonly List<NetcodeWorld> k_CreatedWorlds = new List<NetcodeWorld>();
3333

3434
private static void RegisterCreatedWorlds()
3535
{
36-
for (int i = s_CreatedWorlds.Count - 1; i >= 0; i--)
36+
for (int i = k_CreatedWorlds.Count - 1; i >= 0; i--)
3737
{
38-
var world = s_CreatedWorlds[i];
38+
var world = k_CreatedWorlds[i];
3939
if (!world.IsCreated)
4040
{
41-
s_CreatedWorlds.RemoveAt(i);
41+
k_CreatedWorlds.RemoveAt(i);
4242
continue;
4343
}
4444
// A single world host is registered as both a server and a client world, the same as N4E does.
@@ -94,7 +94,7 @@ public override bool Initialize(string defaultWorldName)
9494
}
9595

9696
networkManager.NetcodeWorld = (NetcodeWorld)world;
97-
s_CreatedWorlds.Add(networkManager.NetcodeWorld);
97+
k_CreatedWorlds.Add(networkManager.NetcodeWorld);
9898
}
9999
else
100100
{
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
<!-- dotnet format: skip Entities / Netcode for Entities source generators (slow, and they can't resolve the Unity project path outside the Editor) -->
3+
<ItemGroup>
4+
<Analyzer Remove="$(MSBuildProjectDirectory)/Library/PackageCache/com.unity.netcode@*/**/*.dll" />
5+
<Analyzer Remove="$(MSBuildProjectDirectory)/Library/PackageCache/com.unity.entities@*/**/*.dll" />
6+
</ItemGroup>
7+
</Project>

‎dotnet-tools/netcode.standards/Program.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ private static int Main(
3333
foreach (var file in Directory.GetFiles(project, pattern))
3434
{
3535
var procInfo = new ProcessStartInfo("dotnet");
36+
procInfo.Environment["CustomAfterMicrosoftCommonTargets"] = Path.Combine(AppContext.BaseDirectory, "ExcludeGenerators.targets");
3637

3738
procInfo.Arguments = check
3839
? $"format whitespace {file} --no-restore --verify-no-changes --verbosity {verbosity}"

‎dotnet-tools/netcode.standards/netcode.standards.csproj‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
<PackageReference Include="System.CommandLine.DragonFruit" Version="0.3.0-alpha.21216.1" />
1313
</ItemGroup>
1414

15-
</Project>
15+
<ItemGroup>
16+
<None Include="ExcludeGenerators.targets" CopyToOutputDirectory="PreserveNewest" />
17+
</ItemGroup>
18+
19+
</Project>

0 commit comments

Comments
 (0)