File tree Expand file tree Collapse file tree
com.unity.netcode.gameobjects/Runtime/Components/Helpers
dotnet-tools/netcode.standards Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 } "
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments